Changeset 150 for trunk/include


Ignore:
Timestamp:
03/01/09 21:17:46 (16 years ago)
Author:
tim
Message:

integrated talloc into most of the rest of the regfi library
fixed a length validation issue

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/regfi.h

    r149 r150  
    224224
    225225
    226 /* Key Value */
     226/* Value record */
    227227typedef struct
    228228{
     
    230230  uint32 cell_size;     /* ((start_offset - end_offset) & 0xfffffff8) */
    231231
    232   REGFI_HBIN* hbin;     /* pointer to HBIN record (in memory) containing
    233                          * this nk record
    234                          */
    235232  uint8* data;
     233  char*  valuename;
    236234  uint16 name_length;
    237   char*  valuename;
    238235  uint32 hbin_off;      /* offset from beginning of this hbin block */
    239236 
     
    420417const REGFI_NK_REC*   regfi_iterator_cur_key(REGFI_ITERATOR* i);
    421418const REGFI_SK_REC*   regfi_iterator_cur_sk(REGFI_ITERATOR* i);
    422 const REGFI_NK_REC*   regfi_iterator_first_subkey(REGFI_ITERATOR* i);
    423 const REGFI_NK_REC*   regfi_iterator_cur_subkey(REGFI_ITERATOR* i);
    424 const REGFI_NK_REC*   regfi_iterator_next_subkey(REGFI_ITERATOR* i);
     419
     420REGFI_NK_REC*         regfi_iterator_first_subkey(REGFI_ITERATOR* i);
     421REGFI_NK_REC*         regfi_iterator_cur_subkey(REGFI_ITERATOR* i);
     422REGFI_NK_REC*         regfi_iterator_next_subkey(REGFI_ITERATOR* i);
    425423
    426424bool                  regfi_iterator_find_value(REGFI_ITERATOR* i,
    427425                                                const char* value_name);
    428 const REGFI_VK_REC*   regfi_iterator_first_value(REGFI_ITERATOR* i);
    429 const REGFI_VK_REC*   regfi_iterator_cur_value(REGFI_ITERATOR* i);
    430 const REGFI_VK_REC*   regfi_iterator_next_value(REGFI_ITERATOR* i);
     426REGFI_VK_REC*         regfi_iterator_first_value(REGFI_ITERATOR* i);
     427REGFI_VK_REC*         regfi_iterator_cur_value(REGFI_ITERATOR* i);
     428REGFI_VK_REC*         regfi_iterator_next_value(REGFI_ITERATOR* i);
    431429
    432430
     
    471469 *   A newly allocated NK record structure, or NULL on failure.
    472470 */
    473 REGFI_NK_REC*         regfi_parse_nk(REGFI_FILE* file, uint32 offset, 
     471REGFI_NK_REC*         regfi_parse_nk(REGFI_FILE* file, uint32 offset,
    474472                                     uint32 max_size, bool strict);
    475473
     
    498496                                            uint32 max_size, bool strict);
    499497
     498/* Dispose of previously parsed records */
     499void                  regfi_free_key(REGFI_NK_REC* nk);
     500void                  regfi_free_value(REGFI_VK_REC* vk);
     501
     502
    500503
    501504/************************************/
     
    503506/************************************/
    504507REGFI_NK_REC*         regfi_rootkey(REGFI_FILE* file);
    505 void                  regfi_key_free(REGFI_NK_REC* nk);
    506508void                  regfi_subkeylist_free(REGFI_SUBKEY_LIST* list);
    507509uint32                regfi_read(int fd, uint8* buf, uint32* length);
  • trunk/include/void_stack.h

    r111 r150  
    11/*
    2  * Copyright (C) 2005,2007 Timothy D. Morgan
     2 * Copyright (C) 2005,2007,2009 Timothy D. Morgan
    33 *
    44 * This program is free software; you can redistribute it and/or modify
     
    1818 */
    1919
     20#ifndef _VOID_STACK_H
     21#define _VOID_STACK_H
     22
    2023#include <stdlib.h>
    2124#include <stdbool.h>
    2225#include <string.h>
    23 
    24 #ifndef _VOID_STACK_H
    25 #define _VOID_STACK_H
     26#include "talloc.h"
    2627
    2728typedef struct _void_stack
Note: See TracChangeset for help on using the changeset viewer.