Changeset 78 for trunk/include


Ignore:
Timestamp:
01/15/07 10:22:47 (18 years ago)
Author:
tim
Message:

beginning process of rewriting regfio interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/regfio.h

    r77 r78  
    3131 ***********************************************************/
    3232
    33 #ifndef _REGFIO_H
    34 #define _REGFIO_H
     33#ifndef _REGFI_H
     34#define _REGFI_H
    3535
    3636#include <stdlib.h>
     
    4747
    4848#include "smb_deps.h"
     49#include "void_stack.h"
    4950
    5051/******************************************************************************/
     
    7273#define REGF_BLOCKSIZE          0x1000
    7374#define REGF_ALLOC_BLOCK        0x1000
     75#define REGF_MAX_DEPTH          512
    7476
    7577/* header sizes for various records */
     
    188190                         */
    189191  uint32 hbin_off;      /* offset from beginning of this hbin block */
    190   uint32 subkey_index;  /* index to next subkey record to return */
     192  /*uint32 subkey_index;*/      /* index to next subkey record to return */
    191193  uint32 rec_size;      /* ((start_offset - end_offset) & 0xfffffff8) */
    192194 
     
    246248                                 */
    247249 
    248   /* unknowns used to simply writing */
     250  /* unknowns */
    249251  uint32 unknown1;
    250252  uint32 unknown2;
     
    256258
    257259
     260
     261typedef struct {
     262  REGF_FILE* f;
     263  void_stack* keys;
     264  uint32 cur_subkey;
     265  uint32 cur_value;
     266} REGFI_ITERATOR;
     267
    258268/******************************************************************************/
    259269/* Function Declarations */
    260270
    261 const char*   regfio_type_val2str(unsigned int val);
    262 int           regfio_type_str2val(const char* str);
    263 
    264 char*         regfio_get_sacl(SEC_DESC *sec_desc);
    265 char*         regfio_get_dacl(SEC_DESC *sec_desc);
    266 char*         regfio_get_owner(SEC_DESC *sec_desc);
    267 char*         regfio_get_group(SEC_DESC *sec_desc);
    268 
    269 REGF_FILE*    regfio_open( const char *filename );
    270 int           regfio_close( REGF_FILE *r );
    271 
    272 REGF_NK_REC*  regfio_rootkey( REGF_FILE *file );
    273 REGF_NK_REC*  regfio_fetch_subkey( REGF_FILE *file, REGF_NK_REC *nk );
    274 
    275 #endif  /* _REGFIO_H */
     271const char*   regfi_type_val2str(unsigned int val);
     272int           regfi_type_str2val(const char* str);
     273
     274char*         regfi_get_sacl(SEC_DESC *sec_desc);
     275char*         regfi_get_dacl(SEC_DESC *sec_desc);
     276char*         regfi_get_owner(SEC_DESC *sec_desc);
     277char*         regfi_get_group(SEC_DESC *sec_desc);
     278
     279REGF_FILE*    regfi_open( const char *filename );
     280int           regfi_close( REGF_FILE *r );
     281
     282REGF_NK_REC*  regfi_rootkey( REGF_FILE *file );
     283/* REGF_NK_REC*  regfi_fetch_subkey( REGF_FILE *file, REGF_NK_REC *nk ); */
     284
     285REGFI_ITERATOR* regfi_iterator_create(REGF_FILE* fh);
     286bool            regfi_iterator_down(REGFI_ITERATOR* i, const char* subkey_name);
     287bool            regfi_iterator_up(REGFI_ITERATOR* i);
     288REGF_NK_REC*    regfi_iterator_next_subkey(REGFI_ITERATOR* i);
     289REGF_VK_REC*    regfi_iterator_next_value(REGFI_ITERATOR* i);
     290REGF_VK_REC*    regfi_iterator_fetch_value(REGFI_ITERATOR* i, const char* value_name);
     291char*           regfi_iterator_curpath(REGFI_ITERATOR* i);
     292
     293#endif  /* _REGFI_H */
Note: See TracChangeset for help on using the changeset viewer.