Changeset 294 for trunk/include
- Timestamp:
- Oct 31, 2010, 10:26:42 AM (14 years ago)
- Location:
- trunk/include
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/sh_cat.h
r279 r294 173 173 MSG_LOGMON_MARK, 174 174 MSG_LOGMON_BURST, 175 #endif 176 177 #ifdef USE_REGISTRY_CHECK 178 MSG_REG_MISS, 179 MSG_REG_NEW, 180 MSG_REG_CHANGE, 175 181 #endif 176 182 -
trunk/include/sh_extern.h
r275 r294 41 41 */ 42 42 int sh_ext_popen_init (sh_tas_t * task, char * command); 43 44 /* 45 * -- Execute command, return first line of output 46 */ 47 int sh_ext_system (char * command); 43 48 44 49 /* -
trunk/include/sh_files.h
r256 r294 21 21 #define SH_FILES_H 22 22 23 void sh_audit_mark (char * file); 24 void sh_audit_delete_all (); 25 char * sh_audit_fetch (char * file, time_t time, char * result, size_t rsize); 26 23 27 struct sh_dirent { 24 28 char * sh_d_name; 25 29 struct sh_dirent * next; 26 30 }; 31 27 32 28 33 /* free a directory listing -
trunk/include/sh_hash.h
r205 r294 70 70 /* Check whether a file is present in the database. 71 71 */ 72 int sh_hash_have_it (c har * newname);72 int sh_hash_have_it (const char * newname); 73 73 74 74 /* Get a file if it is present in the database. 75 * If fileHash != NULL also return checksum. 75 76 */ 76 int sh_hash_get_it (c har * newname, file_type * tmpFile);77 int sh_hash_get_it (const char * newname, file_type * tmpFile, char * fileHash); 77 78 78 79 /* Delete the database from memory. … … 113 114 void sh_hash_unvisited (ShErrLevel level); 114 115 116 /* Search for unvisited entries in the database, custom error handler. 117 */ 118 void sh_hash_unvisited_custom (char prefix, void(*handler)(const char * key)); 119 115 120 /* Set a file's status to 'visited'. This is required for 116 121 * files that should be ignored, and may be present in the … … 135 140 int hash_full_tree (void); 136 141 137 /* Insert data 142 /* Insert data. 143 * 'key' -> path 144 * 'str' -> binary with size 'size' 138 145 */ 139 void sh_hash_push2db (char * key, unsigned long val1, 140 unsigned long val2, unsigned long val3, 141 unsigned char * str, int size); 146 struct store2db { 147 UINT64 val0; 148 UINT64 val1; 149 UINT64 val2; 150 UINT64 val3; 151 char checksum[KEY_LEN+1]; 152 unsigned char * str; 153 int size; 154 }; 155 156 void sh_hash_push2db (const char * key, struct store2db * save); 157 142 158 143 159 /* Retrieve data 144 160 */ 145 char * sh_hash_db2pop (char * key, unsigned long * val1, 146 unsigned long * val2, unsigned long * val3, 147 int * size); 161 char * sh_hash_db2pop (const char * key, struct store2db * get); 162 148 163 149 164 /* Write out database -
trunk/include/sh_unix.h
r265 r294 90 90 /* use prelink */ 91 91 #define MODI_PREL (1 << 13) 92 92 93 /* get content */ 93 94 #define MODI_TXT ((1 << 14)|MODI_CHK) 94 95 95 #define MODI_TXT_ENABLED(a) (((a)&(1 << 14))!=0) 96 97 /* get audit record */ 98 #define MODI_AUDIT (1 << 15) 99 #define MODI_AUDIT_ENABLED(a) (((a)&(1 << 15))!=0) 100 96 101 97 102 #define SH_TXT_MAX 9200
Note:
See TracChangeset
for help on using the changeset viewer.