- Timestamp:
- Feb 10, 2012, 1:54:34 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/Ohana/src/photdbc/include/dvodist.h
r33223 r33240 5 5 # include <unistd.h> // needed? 6 6 7 # define myAssert(LOGIC,MSG) { if (!(LOGIC)) { fprintf (stderr, "%s\n", MSG); abort(); } }8 9 7 // used by the md5 stuff 10 8 # define NDIGEST 16 11 12 typedef enum {13 MODE_NONE = 0,14 MODE_OUT = 1,15 MODE_IN = 2,16 } ModeType;17 18 typedef struct {19 char *hostname;20 char *pathname;21 int hostID;22 } HostInfo;23 24 typedef struct {25 int Nhosts;26 HostInfo *hosts;27 unsigned short *index;28 } HostTable;29 30 // these should be moved to dvo.h?31 # define DATA_ON_TGT 0x0132 # define DATA_COPY_FAILURE 0x0233 9 34 10 /* global variables */ … … 42 18 43 19 void LockDatabase (char *catdir); 44 HostTable *HostTableLoad (char *catdir, char *rootname);45 20 int CheckHostsAndPaths (HostTable *table); 46 21 … … 54 29 void SetProtect (int mode); 55 30 int SetSignals (void); 56 int rconnect (char *command, char *hostname, char *shell, int *stdio);57 31 58 int write_fmt (int fd, char *format, ...);59 char *memstr (char *m1, char *m2, int n);60 32 int get_md5_with_copy (char *input, char *output, md5_byte_t *digest);
Note:
See TracChangeset
for help on using the changeset viewer.
