Changeset 215 for trunk/include


Ignore:
Timestamp:
03/27/11 21:46:11 (14 years ago)
Author:
tim
Message:

improvements to smoketest script, additional test case
added a function to get a key's parent in both regfi and pyregfi
bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/regfi.h

    r209 r215  
    666666  uint8_t* name_raw;
    667667
    668   /** Virutal offset of parent key */
     668  /** Virtual offset of parent key */
    669669  uint32_t parent_off;
    670670
    671   /** Virutal offset of classname key */
     671  /** Virtual offset of classname key */
    672672  uint32_t classname_off;
    673673 
     
    952952
    953953
    954 /* Dispose of previously parsed records */
     954/** Fetches a hive's root key.
     955 *
     956 * @return Returns the root key or NULL on failure.  Key must be freed using
     957 *         @ref regfi_free_record.
     958 *
     959 * @ingroup regfiBase
     960 */
     961_EXPORT
     962const REGFI_NK*       regfi_get_rootkey(REGFI_FILE* file);
     963
    955964
    956965/** Frees a record previously returned by one of the API functions.
     
    962971 * convenience.  Since records returned previously must not be modified by users
    963972 * of the API due to internal caching, these are returned as const, so this
    964  * function is const to make passing back in easy.
     973 * function is const to make passing those records back easy.
    965974 *
    966975 * @ingroup regfiBase
     
    11101119                                uint32_t index);
    11111120
     1121
     1122
     1123/** Uses a key's parent_off reference to retrieve it's parent.
     1124 *
     1125 * @param file  the file from which key is derived
     1126 * @param key   the key whose parent is desired
     1127 *
     1128 * @return the requested subkey or NULL on error.
     1129 *
     1130 * @ingroup regfiBase
     1131 */
     1132_EXPORT
     1133const REGFI_NK* regfi_get_parentkey(REGFI_FILE* file, const REGFI_NK* key);
    11121134
    11131135
     
    13451367/******************************************************************************/
    13461368
    1347 /** Loads a key at a given file offset along with associated data structures.
     1369/** Loads a key and associated data structures given a file offset.
    13481370 *
    13491371 * XXX: finish documenting
     
    13531375_EXPORT
    13541376REGFI_NK* regfi_load_key(REGFI_FILE* file, uint32_t offset,
    1355                              REGFI_ENCODING output_encoding,
    1356                              bool strict);
     1377                         REGFI_ENCODING output_encoding,
     1378                         bool strict);
    13571379
    13581380
     
    15841606
    15851607/******************************************************************************/
    1586 /*    Private Functions                                                       */
    1587 /******************************************************************************/
    1588 REGFI_NK*             regfi_rootkey(REGFI_FILE* file);
    1589 
     1608/*    Private (and undocumented) Functions                                    */
     1609/******************************************************************************/
    15901610off_t                 regfi_raw_seek(REGFI_RAW_FILE* self,
    15911611                                     off_t offset, int whence);
Note: See TracChangeset for help on using the changeset viewer.