Changeset 228 for trunk/include
- Timestamp:
- 04/18/11 16:25:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/regfi.h
r226 r228 821 821 pthread_mutex_t sk_lock; 822 822 823 /* Needed to protect various talloc calls */ 824 pthread_mutex_t mem_lock; 825 823 826 } REGFI_FILE; 824 827 … … 971 974 /** Frees a record previously returned by one of the API functions. 972 975 * 973 * Can be used to free REGFI_NK, REGFI_VK, REGFI_SK, REGFI_DATA, and 974 * REGFI_CLASSNAME records. 975 * 976 * @note The "const" in the data type is a bit misleading and is there just for 976 * @param file The file from which the record originated. 977 * (This is needed for memory management reasons.) 978 * 979 * @param record Any of the following record types: REGFI_NK, REGFI_VK, 980 * REGFI_SK, REGFI_DATA, and REGFI_CLASSNAME records. 981 * 982 * @note The "const" in the record data type is a bit misleading and is there just for 977 983 * convenience. Since records returned previously must not be modified by users 978 984 * of the API due to internal caching, these are returned as const, so this … … 982 988 */ 983 989 _EXPORT 984 void regfi_free_record( const void* record);990 void regfi_free_record(REGFI_FILE* file, const void* record); 985 991 986 992 … … 992 998 * without requiring them to be in sync with when it is freed. 993 999 * 994 * Can be used on REGFI_NK, REGFI_VK, REGFI_SK, REGFI_DATA, and 995 * REGFI_CLASSNAME records. 1000 * @param file The file from which the record originated. 1001 * (This is needed for memory management reasons.) 1002 * 1003 * @param record Any of the following record types: REGFI_NK, REGFI_VK, 1004 * REGFI_SK, REGFI_DATA, and REGFI_CLASSNAME records. 996 1005 * 997 1006 * @return true on success, false otherwise … … 1000 1009 */ 1001 1010 _EXPORT 1002 bool regfi_reference_record( const void* record);1011 bool regfi_reference_record(REGFI_FILE* file, const void* record); 1003 1012 1004 1013
Note: See TracChangeset
for help on using the changeset viewer.