Changeset 182 for trunk/include
- Timestamp:
- 03/17/10 02:41:17 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/regfi.h
r180 r182 81 81 82 82 /* regfi library error message types */ 83 #define REGFI_MSG_INFO 0x0001 84 #define REGFI_MSG_WARN 0x0004 85 #define REGFI_MSG_ERROR 0x0010 83 #define REGFI_LOG_INFO 0x0001 84 #define REGFI_LOG_WARN 0x0004 85 #define REGFI_LOG_ERROR 0x0010 86 87 /* For internal use */ 88 pthread_key_t REGFI_LOG_KEY; 86 89 87 90 typedef uint8_t REGFI_ENCODING; … … 240 243 241 244 245 typedef struct _regfi_log 246 { 247 /* Error/warning/info messages returned by lower layer functions */ 248 char* messages; 249 250 /* Mask for error message types that will be stored. */ 251 uint16_t msg_mask; 252 253 } REGFI_LOG; 254 255 242 256 /** HBIN block information 243 257 * @ingroup regfiMiddleLayer … … 695 709 pthread_mutex_t* sk_lock; 696 710 697 /* Error/warning/info messages returned by lower layer functions */698 char* last_message;699 700 /* Mask for error message types that will be stored. */701 uint16_t msg_mask;702 703 704 711 /* Data parsed from file header */ 705 712 /********************************/ … … 849 856 850 857 858 /** Enables regfi library logging for the current thread. 859 * 860 * XXX: finish documenting 861 * 862 * @ingroup regfiBase 863 */ 864 void regfi_log_start(uint16_t mask); 865 866 851 867 /** Get errors, warnings, and/or verbose information relating to processing of 852 868 * the given registry file. 853 869 * 854 * @param file the structure for the registry file855 *856 870 * @return A newly allocated char* which must be free()d by the caller. 857 871 * 858 872 * @ingroup regfiBase 859 873 */ 860 char* regfi_get_messages(REGFI_FILE* file);874 char* regfi_log_get_str(); 861 875 862 876 … … 865 879 * 866 880 * This may be called at any time and will take effect immediately. 867 *868 * @param file the structure for the registry file869 881 * 870 882 * @param mask an integer representing the types of messages desired. … … 883 895 * @ingroup regfiBase 884 896 */ 885 void regfi_set_message_mask(REGFI_FILE* file, uint16_t mask); 897 void regfi_log_set_mask(uint16_t mask); 898 899 900 /** Disables regfi library logging for the current thread. 901 * 902 * XXX: finish documenting 903 * 904 * @ingroup regfiBase 905 */ 906 void regfi_log_stop(); 886 907 887 908
Note: See TracChangeset
for help on using the changeset viewer.