00001 /********************************************************************* 00002 * rawapitd.h 00003 * ADSM definitions from dsmapitd.h, needed also for clients 00004 * if a new ADSM API version is introduced, the following definitions 00005 * must be updated according to those in the new dsmapitd.h 00006 * okay for v216 and v315 00007 * 00008 * created 19.10.98, Horst Goeringer 00009 ********************************************************************* 00010 * 22. 7.2002, H.G.: okay for version 5.1 00011 ********************************************************************* 00012 */ 00013 00014 #define DSM_MAX_DESCR_LENGTH 255 /* archive description */ 00015 #define DSM_MAX_OWNER_LENGTH 64 /* object owner name */ 00016 #define DSM_MAX_FSNAME_LENGTH 1024 /* filespace name */ 00017 #define DSM_MAX_HL_LENGTH 1024 /* object high level name */ 00018 #define DSM_MAX_LL_LENGTH 256 /* object low level name */ 00019 00020 #define MEDIA_FIXED 0x10 00021 #define MEDIA_LIBRARY 0x20 00022 #define MEDIA_NETWORK 0x30 00023 #define MEDIA_SHELF 0x40 00024 #define MEDIA_OFFSITE 0x50 00025 #define MEDIA_UNAVAILABLE 0xF0 00026 00027 00028 typedef enum 00029 { 00030 bFalse = 0x00, 00031 bTrue = 0x01 00032 } bool_t; 00033 00034 typedef char dsInt8_t; /* v315 and higher */ 00035 typedef unsigned char dsUint8_t; /* v315 and higher */ 00036 00037 typedef signed char int8 ; /* v216 and below */ 00038 typedef unsigned char uint8 ; /* v216 and below */ 00039 00040 00041 /*-------------------------------------------------------------------------+ 00042 | Type definition for object name used on BindMC, Send, Delete, Query | 00043 +-------------------------------------------------------------------------*/ 00044 typedef struct S_dsmObjName 00045 { 00046 char fs[DSM_MAX_FSNAME_LENGTH + 1] ; /* Filespace name */ 00047 char hl[DSM_MAX_HL_LENGTH + 1] ; /* High level name */ 00048 char ll[DSM_MAX_LL_LENGTH + 1] ; /* Low level name */ 00049 uint8 objType; /* for object type values, see defines above */ 00050 } dsmObjName; 00051 00052