Changeset 146 for trunk/include
- Timestamp:
- 02/18/09 23:46:37 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/regfi.h
r145 r146 158 158 159 159 160 161 160 /* HBIN block */ 162 161 typedef struct _regfi_hbin … … 258 257 WINSEC_DESC* sec_desc; 259 258 uint32 hbin_off; /* offset from beginning of this hbin block */ 260 261 uint32 sk_off; /* offset parsed from NK record used as a key262 * to lookup reference to this SK record263 */264 259 265 260 uint32 prev_sk_off; … … 330 325 /* Metadata about hbins */ 331 326 range_list* hbins; 327 328 /* SK record cached since they're repeatedly reused */ 329 lru_cache* sk_cache; 332 330 333 331 /* Error/warning/info messages returned by lower layer functions */ … … 375 373 REGFI_FILE* f; 376 374 void_stack* key_positions; 377 lru_cache* sk_recs;378 375 REGFI_NK_REC* cur_key; 379 376 uint32 cur_subkey; … … 384 381 typedef struct 385 382 { 386 /* XXX: Should probably eliminate the storage of keys here387 * once key caching is implemented.388 */389 383 REGFI_NK_REC* nk; 390 384 uint32 cur_subkey; … … 437 431 438 432 /********************************************************/ 439 /* Middle-layer structure caching, loading, and linking */433 /* Middle-layer structure loading, linking, and caching */ 440 434 /********************************************************/ 441 REGFI_HBIN* regfi_lookup_hbin(REGFI_FILE* file, uint32 voffset);442 435 REGFI_NK_REC* regfi_load_key(REGFI_FILE* file, uint32 offset, 443 436 bool strict); 444 REGFI_SUBKEY_LIST* regfi_load_subkeylist(REGFI_FILE* file, uint32 offset,445 uint32 num_keys, uint32 max_size,446 bool strict);447 437 REGFI_VK_REC* regfi_load_value(REGFI_FILE* file, uint32 offset, 448 438 bool strict); 439 REGFI_SUBKEY_LIST* regfi_load_subkeylist(REGFI_FILE* file, uint32 offset, 440 uint32 num_keys, uint32 max_size, 441 bool strict); 449 442 REGFI_VALUE_LIST* regfi_load_valuelist(REGFI_FILE* file, uint32 offset, 450 uint32 num_values, uint32 max_size, 443 uint32 num_values, uint32 max_size, 451 444 bool strict); 445 446 /* These are cached so return values don't need to be freed. */ 447 const REGFI_SK_REC* regfi_load_sk(REGFI_FILE* file, uint32 offset, 448 bool strict); 449 const REGFI_HBIN* regfi_lookup_hbin(REGFI_FILE* file, uint32 voffset); 450 451 452 452 453 453 /************************************/ … … 522 522 void regfi_add_message(REGFI_FILE* file, uint16 msg_type, 523 523 const char* fmt, ...); 524 REGFI_NK_REC* regfi_copy_nk(const REGFI_NK_REC* nk); 525 REGFI_VK_REC* regfi_copy_vk(const REGFI_VK_REC* vk); 526 524 527 #endif /* _REGFI_H */
Note: See TracChangeset
for help on using the changeset viewer.