- Timestamp:
- 04/28/11 23:28:16 (14 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/regfi.h
r232 r233 79 79 #include <range_list.h> 80 80 #include <lru_cache.h> 81 82 /* Library version can be overridden at build time */83 #ifndef REGFI_VERSION84 #define REGFI_VERSION "trunk"85 #endif86 81 87 82 /* GCC-specific macro for library exports */ … … 884 879 /******************************************************************************/ 885 880 881 882 /** Returns the current regfi library version 883 * 884 * @return A string indicating the version. 885 * 886 * @ingroup regfiBase 887 */ 888 _EXPORT 889 const char* regfi_version(); 890 891 886 892 /** Parses file headers of an already open registry hive file and 887 893 * allocates related structures for further parsing. -
trunk/lib/regfi.c
r228 r233 34 34 #include "regfi.h" 35 35 36 /* Library version can be overridden at build time */ 37 #ifndef REGFI_VERSION 38 #define REGFI_VERSION "trunk" 39 #endif 40 36 41 37 42 /* Registry types mapping */ … … 48 53 static pthread_once_t regfi_init_once = PTHREAD_ONCE_INIT; 49 54 55 56 /****************************************************************************** 57 ******************************************************************************/ 58 const char* regfi_version() 59 { 60 return REGFI_VERSION; 61 } 50 62 51 63 -
trunk/python/pyregfi/__init__.py
r232 r233 182 182 183 183 184 ## Returns the (py)regfi library version 185 # 186 # @return A string indicating the version 187 def getVersion(): 188 return regfi.regfi_version() 189 190 184 191 ## Retrieves messages produced by regfi during parsing and interpretation 185 192 # -
trunk/python/pyregfi/structures.py
r228 r233 228 228 229 229 # Define function prototypes 230 regfi.regfi_version.argtypes = [] 231 regfi.regfi_version.restype = c_char_p 232 230 233 regfi.regfi_alloc.argtypes = [c_int, REGFI_ENCODING] 231 234 regfi.regfi_alloc.restype = POINTER(REGFI_FILE) -
trunk/src/reglookup-recover.c
r232 r233 336 336 { 337 337 fprintf(stderr, "Usage: reglookup-recover [options] <REGISTRY_FILE>\n"); 338 fprintf(stderr, "Version: %s\n", REGFI_VERSION);338 fprintf(stderr, "Version: %s\n", regfi_version()); 339 339 fprintf(stderr, "Options:\n"); 340 340 fprintf(stderr, "\t-v\t sets verbose mode.\n"); -
trunk/src/reglookup.c
r232 r233 551 551 " [-p <PATH_FILTER>] [-t <TYPE_FILTER>]" 552 552 " <REGISTRY_FILE>\n"); 553 fprintf(stderr, "Version: %s\n", REGFI_VERSION);553 fprintf(stderr, "Version: %s\n", regfi_version()); 554 554 fprintf(stderr, "Options:\n"); 555 555 fprintf(stderr, "\t-v\t sets verbose mode.\n");
Note: See TracChangeset
for help on using the changeset viewer.