Changeset 157 for trunk/include
- Timestamp:
- 11/22/09 19:47:22 (15 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/regfi.h
r152 r157 105 105 #define REGFI_SK_MIN_LENGTH 0x14 106 106 #define REGFI_SUBKEY_LIST_MIN_LEN 0x4 107 #define REGFI_BIG_DATA_MIN_LENGTH 0xC 107 108 108 109 … … 444 445 445 446 447 448 446 449 /******************************************************************************/ 447 450 /* Main iterator API */ … … 468 471 bool regfi_iterator_to_root(REGFI_ITERATOR* i); 469 472 470 bool regfi_iterator_find_subkey(REGFI_ITERATOR* i,471 const char* subkey_name);472 473 bool regfi_iterator_walk_path(REGFI_ITERATOR* i, 473 474 const char** path); … … 478 479 REGFI_NK_REC* regfi_iterator_cur_subkey(REGFI_ITERATOR* i); 479 480 REGFI_NK_REC* regfi_iterator_next_subkey(REGFI_ITERATOR* i); 480 481 bool regfi_iterator_find_value(REGFI_ITERATOR* i, 482 const char* value_name); 481 bool regfi_iterator_find_subkey(REGFI_ITERATOR* i, 482 const char* subkey_name); 483 483 484 REGFI_VK_REC* regfi_iterator_first_value(REGFI_ITERATOR* i); 484 485 REGFI_VK_REC* regfi_iterator_cur_value(REGFI_ITERATOR* i); 485 486 REGFI_VK_REC* regfi_iterator_next_value(REGFI_ITERATOR* i); 487 bool regfi_iterator_find_value(REGFI_ITERATOR* i, 488 const char* value_name); 489 490 REGFI_DATA* regfi_iterator_cur_data(REGFI_ITERATOR* i); 486 491 487 492 … … 500 505 bool strict); 501 506 507 REGFI_BUFFER regfi_load_data(REGFI_FILE* file, uint32 voffset, 508 uint32 length, bool data_in_offset, 509 bool strict); 510 511 REGFI_BUFFER regfi_load_big_data(REGFI_FILE* file, uint32 offset, 512 uint32 data_length,uint32 cell_length, 513 range_list* used_ranges, 514 bool strict); 515 502 516 /* These are cached so return values don't need to be freed. */ 503 517 const REGFI_SK_REC* regfi_load_sk(REGFI_FILE* file, uint32 offset, 504 518 bool strict); 505 const REGFI_HBIN* regfi_lookup_hbin(REGFI_FILE* file, uint32 voffset); 506 519 const REGFI_HBIN* regfi_lookup_hbin(REGFI_FILE* file, uint32 offset); 507 520 508 521 … … 535 548 uint32 max_size, bool strict); 536 549 537 REGFI_BUFFER regfi_load_data(REGFI_FILE* file,538 uint32 data_type, uint32 offset,539 uint32 length, uint32 max_size,540 bool data_in_offset, bool strict);541 542 REGFI_BUFFER regfi_load_big_data(REGFI_FILE* file,543 uint32 offset, uint32 data_length,544 uint32 cell_length, bool strict);545 546 550 REGFI_SK_REC* regfi_parse_sk(REGFI_FILE* file, uint32 offset, 547 551 uint32 max_size, bool strict); … … 556 560 uint16* name_length, 557 561 uint32 max_size, bool strict); 562 563 REGFI_BUFFER regfi_parse_data(REGFI_FILE* file, uint32 offset, 564 uint32 length, bool strict); 565 566 REGFI_BUFFER regfi_parse_little_data(REGFI_FILE* file, uint32 voffset, 567 uint32 length, bool strict); 568 558 569 559 570 /* Dispose of previously parsed records */ … … 588 599 REGFI_NK_REC* regfi_copy_nk(const REGFI_NK_REC* nk); 589 600 REGFI_VK_REC* regfi_copy_vk(const REGFI_VK_REC* vk); 601 int32 regfi_calc_maxsize(REGFI_FILE* file, uint32 offset); 590 602 591 603 #endif /* _REGFI_H */ -
trunk/include/smb_deps.h
r134 r157 40 40 #include "byteorder.h" 41 41 42 #define DEBUG(lvl,body) 043 44 void* zalloc(size_t size);45 void* zcalloc(size_t size, unsigned int count);46 47 42 /* From includes.h */ 48 43 44 /* XXX: convert all code to use the more standard "*_t" types */ 49 45 #define uint8 uint8_t 50 46 #define int16 int8_t … … 52 48 #define int32 int32_t 53 49 #define uint32 uint32_t 50 #define int64 int64_t 51 #define uint64 uint64_t 54 52 55 53 #define MIN(a,b) ((a)<(b)?(a):(b)) 56 54 #define MAX(a,b) ((a)>(b)?(a):(b)) 57 58 extern int DEBUGLEVEL;59 55 60 56 /* End of stuff from includes.h */
Note: See TracChangeset
for help on using the changeset viewer.