2014-08-25 14:21:53 +00:00
|
|
|
#define _TSMPIPE_VERSION "1.6.1"
|
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
|
2014-06-20 12:51:18 +00:00
|
|
|
#define ACTION_UPDATE 6
|
|
|
|
#define ACTION_CREATE_UPDATE 7
|
2013-11-07 04:10:18 +00:00
|
|
|
|
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
|
|
|
|
|
2014-06-20 12:51:18 +00:00
|
|
|
#ifdef USE_DIGEST
|
|
|
|
#include <openssl/evp.h>
|
|
|
|
#endif
|
|
|
|
|
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
|
2014-08-25 14:21:53 +00:00
|
|
|
extern double tsm_sendfile (dsUint32_t dsmHandle, char *fsname, char *filename, long long length, char *description, dsmSendType sendtype, dsBool_t startstop, dsBool_t summary, char *digest);
|
2013-11-07 07:06:56 +00:00
|
|
|
#else
|
2014-08-25 14:21:53 +00:00
|
|
|
extern double tsm_sendfile (dsUint32_t dsmHandle, char *fsname, char *filename, long long length, char *description, dsmSendType sendtype, dsBool_t startstop, dsBoot_t summary);
|
2013-11-07 07:06:56 +00:00
|
|
|
#endif
|
2013-11-07 04:10:18 +00:00
|
|
|
extern int tsm_sessioninfo(dsUint32_t dsmHandle);
|
2014-06-20 12:51:18 +00:00
|
|
|
extern int tsm_updatefs(dsUint32_t dsmHandle, char *fsname, long long size);
|
2014-08-25 14:21:53 +00:00
|
|
|
extern int tsm_datefs(dsUint32_t dsmHandle, char *fsname, int startstop);
|
2013-11-05 05:11:45 +00:00
|
|
|
|
|
|
|
extern char *dsmDateToStr(dsmDate date);
|
|
|
|
extern char *dsmObjnameToStr(dsmObjName objName);
|
|
|
|
|
2014-06-20 12:51:18 +00:00
|
|
|
extern double dsmSizeToNum(dsStruct64_t dsStruct64,dsBool_t inMB);
|