00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef _y2changes_h
00013 #define _y2changes_h
00014
00015 #include <string>
00016 #include <stdio.h>
00017
00018 using std::string;
00019
00020
00021
00022 enum logcategory_t {
00023 CHANGES_ITEM = 0,
00024 CHANGES_NOTE = 1,
00025 };
00026
00027
00028 void y2changes_function (logcategory_t category, const char *format, ...) __attribute__ ((format (printf, 2, 3)));
00029
00030 #define y2useritem(format, args...) y2changes_function(CHANGES_ITEM, format,##args)
00031 #define y2usernote(format, args...) y2changes_function(CHANGES_NOTE, format,##args)
00032
00033 #endif