GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
rawapitd.h
Go to the documentation of this file.
1 /*********************************************************************
2  * rawapitd.h
3  * ADSM definitions from dsmapitd.h, needed also for clients
4  * if a new ADSM API version is introduced, the following definitions
5  * must be updated according to those in the new dsmapitd.h
6  * okay for v216 and v315
7  *
8  * created 19.10.98, Horst Goeringer
9  *********************************************************************
10  * 22. 7.2002, H.G.: okay for version 5.1
11  *********************************************************************
12  */
13 
14 #define DSM_MAX_DESCR_LENGTH 255 /* archive description */
15 #define DSM_MAX_OWNER_LENGTH 64 /* object owner name */
16 #define DSM_MAX_FSNAME_LENGTH 1024 /* filespace name */
17 #define DSM_MAX_HL_LENGTH 1024 /* object high level name */
18 #define DSM_MAX_LL_LENGTH 256 /* object low level name */
19 
20 #define MEDIA_FIXED 0x10
21 #define MEDIA_LIBRARY 0x20
22 #define MEDIA_NETWORK 0x30
23 #define MEDIA_SHELF 0x40
24 #define MEDIA_OFFSITE 0x50
25 #define MEDIA_UNAVAILABLE 0xF0
26 
27 
28 typedef enum
29 {
30  bFalse = 0x00,
31  bTrue = 0x01
32 } bool_t;
33 
34 typedef char dsInt8_t; /* v315 and higher */
35 typedef unsigned char dsUint8_t; /* v315 and higher */
36 
37 typedef signed char int8 ; /* v216 and below */
38 typedef unsigned char uint8 ; /* v216 and below */
39 
40 
41 /*-------------------------------------------------------------------------+
42 | Type definition for object name used on BindMC, Send, Delete, Query |
43 +-------------------------------------------------------------------------*/
44 typedef struct S_dsmObjName
45 {
46  char fs[DSM_MAX_FSNAME_LENGTH + 1] ; /* Filespace name */
47  char hl[DSM_MAX_HL_LENGTH + 1] ; /* High level name */
48  char ll[DSM_MAX_LL_LENGTH + 1] ; /* Low level name */
49  uint8 objType; /* for object type values, see defines above */
50 } dsmObjName;
51 
52 
unsigned char dsUint8_t
Definition: rawapitd.h:35
Definition: rawapitd.h:31
char fs[DSM_MAX_FSNAME_LENGTH+1]
Definition: rawapitd.h:46
#define DSM_MAX_HL_LENGTH
Definition: rawapitd.h:17
signed char int8
Definition: rawapitd.h:37
unsigned char uint8
Definition: rawapitd.h:38
char hl[DSM_MAX_HL_LENGTH+1]
Definition: rawapitd.h:47
char dsInt8_t
Definition: rawapitd.h:34
uint8 objType
Definition: rawapitd.h:49
struct S_dsmObjName dsmObjName
#define DSM_MAX_LL_LENGTH
Definition: rawapitd.h:18
char ll[DSM_MAX_LL_LENGTH+1]
Definition: rawapitd.h:48
bool_t
Definition: rawapitd.h:28
#define DSM_MAX_FSNAME_LENGTH
Definition: rawapitd.h:16