Changeset 224 for trunk/include


Ignore:
Timestamp:
04/03/11 12:53:59 (14 years ago)
Author:
tim
Message:

added new regfi API function to help manage memory better
fixed reference loop problems in pyregfi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/regfi.h

    r221 r224  
    979979
    980980
     981/** Increments reference count on record
     982 *
     983 * Adds an extra internal reference to specified record, making it necessary to
     984 * call regfi_free_record on it an additional time before it is freed.  This is
     985 * useful in cases where multiple threads/structures need access to a record,
     986 * without requiring them to be in sync with when it is freed.
     987 *
     988 * Can be used on REGFI_NK, REGFI_VK, REGFI_SK, REGFI_DATA, and
     989 * REGFI_CLASSNAME records.
     990 *
     991 * @return true on success, false otherwise
     992 *
     993 * @ingroup regfiBase
     994 */
     995_EXPORT
     996bool regfi_reference_record(const void* record);
     997
     998
    981999/** Retrieves number of subkeys referenced by this key.
    9821000 *
Note: See TracChangeset for help on using the changeset viewer.