Changeset 80 for trunk/include
- Timestamp:
- 01/16/07 20:46:07 (18 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/regfi.h
r79 r80 68 68 /* XXX: Has MS defined a REG_QWORD_BE? */ 69 69 /* Not a real type in the registry */ 70 #define REG_KEY 25570 #define REG_KEY 0xFFFFFFFF 71 71 72 72 … … 258 258 259 259 260 261 260 typedef struct { 262 261 REGF_FILE* f; 263 void_stack* keys; 262 void_stack* key_positions; 263 REGF_NK_REC* cur_key; 264 264 uint32 cur_subkey; 265 265 uint32 cur_value; 266 266 } REGFI_ITERATOR; 267 267 268 269 typedef struct { 270 REGF_NK_REC* nk; 271 uint32 cur_subkey; 272 /* We could store a cur_value here as well, but didn't see 273 * the use in it right now. 274 */ 275 } REGFI_ITER_POSITION; 276 277 268 278 /******************************************************************************/ 269 279 /* Function Declarations */ … … 272 282 int regfi_type_str2val(const char* str); 273 283 274 char* regfi_get_sacl(SEC_DESC *sec_desc); 275 char* regfi_get_dacl(SEC_DESC *sec_desc); 276 char* regfi_get_owner(SEC_DESC *sec_desc); 277 char* regfi_get_group(SEC_DESC *sec_desc); 278 279 REGF_FILE* regfi_open( const char *filename ); 280 int regfi_close( REGF_FILE *r ); 281 282 REGF_NK_REC* regfi_rootkey( REGF_FILE *file ); 283 /* REGF_NK_REC* regfi_fetch_subkey( REGF_FILE *file, REGF_NK_REC *nk ); */ 284 285 REGFI_ITERATOR* regfi_iterator_create(REGF_FILE* fh); 286 bool regfi_iterator_down(REGFI_ITERATOR* i, const char* subkey_name); 284 char* regfi_get_sacl(SEC_DESC* sec_desc); 285 char* regfi_get_dacl(SEC_DESC* sec_desc); 286 char* regfi_get_owner(SEC_DESC* sec_desc); 287 char* regfi_get_group(SEC_DESC* sec_desc); 288 289 REGF_FILE* regfi_open(const char* filename); 290 int regfi_close(REGF_FILE* r); 291 292 REGF_NK_REC* regfi_rootkey( REGF_FILE* file ); 293 /* REGF_NK_REC* regfi_fetch_subkey( REGF_FILE* file, REGF_NK_REC* nk ); */ 294 295 void regfi_key_free(REGF_NK_REC* nk); 296 void regfi_value_free(REGF_VK_REC* vk); 297 298 REGFI_ITERATOR* regfi_iterator_new(REGF_FILE* fh); 299 void regfi_iterator_free(REGFI_ITERATOR* i); 300 bool regfi_iterator_down(REGFI_ITERATOR* i); 287 301 bool regfi_iterator_up(REGFI_ITERATOR* i); 302 bool regfi_iterator_to_root(REGFI_ITERATOR* i); 303 304 bool regfi_iterator_find_subkey(REGFI_ITERATOR* i, const char* subkey_name) 305 bool regfi_iterator_walk_path(REGFI_ITERATOR* i, const char** path); 306 REGF_NK_REC* regfi_iterator_cur_key(REGFI_ITERATOR* i); 307 REGF_NK_REC* regfi_iterator_first_subkey(REGFI_ITERATOR* i); 308 REGF_NK_REC* regfi_iterator_cur_subkey(REGFI_ITERATOR* i); 288 309 REGF_NK_REC* regfi_iterator_next_subkey(REGFI_ITERATOR* i); 310 311 bool regfi_iterator_find_value(REGFI_ITERATOR* i, const char* value_name); 312 REGF_VK_REC* regfi_iterator_first_value(REGFI_ITERATOR* i); 313 REGF_VK_REC* regfi_iterator_cur_value(REGFI_ITERATOR* i); 289 314 REGF_VK_REC* regfi_iterator_next_value(REGFI_ITERATOR* i); 290 REGF_VK_REC* regfi_iterator_fetch_value(REGFI_ITERATOR* i, const char* value_name);291 char* regfi_iterator_curpath(REGFI_ITERATOR* i);292 315 293 316 #endif /* _REGFI_H */ -
trunk/include/void_stack.h
r79 r80 39 39 40 40 41 /* XXX: need to document these interfaces */ 41 42 void_stack* void_stack_new(unsigned short max_size); 42 43 void_stack* void_stack_copy(const void_stack* v); 43 44 void_stack* void_stack_copy_reverse(const void_stack* v); 44 void void_stack_ destroy(void_stack* stack);45 void void_stack_ destroy_deep(void_stack* stack);45 void void_stack_free(void_stack* stack); 46 void void_stack_free_deep(void_stack* stack); 46 47 unsigned short void_stack_size(void_stack* stack); 47 48 void* void_stack_pop(void_stack* stack); … … 49 50 const void* void_stack_cur(void_stack* stack); 50 51 void_stack_iterator* void_stack_iterator_new(void_stack* stack); 51 void void_stack_iterator_ destroy(void_stack_iterator* iter);52 void void_stack_iterator_free(void_stack_iterator* iter); 52 53 const void* void_stack_iterator_next(void_stack_iterator* iter); 53 54
Note: See TracChangeset
for help on using the changeset viewer.