2013-11-15 02:37:17 +00:00
|
|
|
#define _TSMPIPE_VERSION "1.5.4"
|
2013-11-05 05:11:45 +00:00
|
|
|
|
2013-11-07 04:10:18 +00:00
|
|
|
#define ACTION_INFO 1
|
|
|
|
#define ACTION_CREATE 2
|
|
|
|
#define ACTION_EXTRACT 3
|
|
|
|
#define ACTION_DELETE 4
|
|
|
|
#define ACTION_LIST 5
|
|
|
|
|
2013-11-07 07:06:56 +00:00
|
|
|
// If you want to use MD5/SHA1 calculations as the data goes in here, ensure this is defined.
|
|
|
|
#define USE_DIGEST
|
|
|
|
|
2013-07-18 13:59:14 +00:00
|
|
|
typedef int (*tsm_query_callback)(dsmQueryType, DataBlk *, void *);
|
|
|
|
|
|
|
|
struct matchone_cb_data { int numfound; dsStruct64_t objId; dsUint32_t copyGroup; };
|
2013-11-05 05:11:45 +00:00
|
|
|
|
|
|
|
extern void tsm_printerr (dsUint32_t dsmHandle, dsInt16_t rc, char *str);
|
2013-11-07 04:10:18 +00:00
|
|
|
extern void debugLog(int level, _IO_FILE *output, char *message, int die);
|
2013-11-05 05:11:45 +00:00
|
|
|
|
2013-11-07 04:10:18 +00:00
|
|
|
extern dsmDate dsmStrToDate(char *s);
|
|
|
|
extern dsmObjName dsmNameToObjname(char *fsname, char *filename);
|
|
|
|
extern dsInt16_t tsm_queryfile(dsUint32_t sesshandle, dsmQueryType qType, tsm_query_callback usercb, void *userdata, qryArchiveData qaData, qryBackupData qbData);
|
2013-11-05 05:11:45 +00:00
|
|
|
extern dsUint32_t tsm_initsess(char *options);
|
|
|
|
extern dsBool_t compressEnabled;
|
|
|
|
|
2013-11-07 04:10:18 +00:00
|
|
|
extern int tsm_deletefile (dsUint32_t dsmHandle, dsmQueryType qType, qryArchiveData qaData, qryBackupData qbData);
|
|
|
|
extern int tsm_listfile (dsUint32_t dsmHandle, dsmQueryType qType, qryArchiveData qaData, qryBackupData qbData);
|
|
|
|
extern int tsm_restorefile(dsUint32_t dsmHandle, dsmQueryType qType, qryArchiveData qaData, qryBackupData qbData);
|
2013-11-07 07:06:56 +00:00
|
|
|
#ifdef USE_DIGEST
|
|
|
|
extern int tsm_sendfile (dsUint32_t dsmHandle, char *fsname, char *filename, long long length, char *description, dsmSendType sendtype, char *digest);
|
|
|
|
#else
|
2013-11-07 04:10:18 +00:00
|
|
|
extern int tsm_sendfile (dsUint32_t dsmHandle, char *fsname, char *filename, long long length, char *description, dsmSendType sendtype);
|
2013-11-07 07:06:56 +00:00
|
|
|
#endif
|
2013-11-07 04:10:18 +00:00
|
|
|
extern int tsm_sessioninfo(dsUint32_t dsmHandle);
|
2013-11-05 05:11:45 +00:00
|
|
|
|
|
|
|
extern char *dsmDateToStr(dsmDate date);
|
|
|
|
extern char *dsmObjnameToStr(dsmObjName objName);
|
|
|
|
|
|
|
|
extern double dsmSizeToNum(dsStruct64_t dsStruct64);
|