Changeset 252 for trunk/include


Ignore:
Timestamp:
05/08/11 13:33:49 (13 years ago)
Author:
tim
Message:

updated pyregfi to work with regfi changes
renamed some functions for more clarity
fixed some issues related to talloc_reference

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/regfi.h

    r251 r252  
    10131013 * Adds an extra internal reference to specified record, making it necessary to
    10141014 * call regfi_free_record on it an additional time before it is freed.  This is
    1015  * useful in cases where multiple threads/structures need access to a record,
     1015 * useful in cases where multiple threads/structures need access to a shared record,
    10161016 * without requiring them to be in sync with when it is freed.
    10171017 *
     
    10221022 *        REGFI_SK, REGFI_DATA, and REGFI_CLASSNAME records.
    10231023 *
    1024  * @return true on success, false otherwise
    1025  *
    1026  * @ingroup regfiBase
    1027  */
    1028 _EXPORT()
    1029 bool regfi_reference_record(REGFI_FILE* file, const void* record);
     1024 * @return Updated record pointer on success, NULL otherwise
     1025 *
     1026 * @note Be sure to use the returned record for further access to the structure
     1027 *       instead of the previous version of the pointer.  E.g.:
     1028 *       @code
     1029 *       myKey = (const REGFI_NK*)regfi_reference_record(myFile, myKey);
     1030 *       @endcode
     1031 *
     1032 * @ingroup regfiBase
     1033 */
     1034_EXPORT()
     1035const void* regfi_reference_record(REGFI_FILE* file, const void* record);
    10301036
    10311037
     
    12891295 */
    12901296_EXPORT()
    1291 bool regfi_iterator_walk_path(REGFI_ITERATOR* i, const char** path);
     1297bool regfi_iterator_descend(REGFI_ITERATOR* i, const char** path);
    12921298
    12931299
     
    14131419
    14141420
    1415 /** Returns the full path where the iterator is currently located as a list
    1416  *  of NK records
     1421/** Returns the current key and all parent keys as a list of NK records
    14171422 *
    14181423 * @param i     the iterator
     
    14201425 * @return An array of NK record pointers terminated by a NULL pointer. 
    14211426 *         This array may be passed directly to regfi_free_record to free
    1422  *         the entire array. 
     1427 *         the entire array.
    14231428 *
    14241429 * @note In order to use an element of the array independently from the
     
    14301435 */
    14311436_EXPORT()
    1432 const REGFI_NK** regfi_iterator_cur_path(REGFI_ITERATOR* i);
     1437const REGFI_NK** regfi_iterator_ancestry(REGFI_ITERATOR* i);
    14331438
    14341439
Note: See TracChangeset for help on using the changeset viewer.