yast2-core
y2changes.h
Go to the documentation of this file.
1 /* y2changes.h
2  *
3  * YaST2: Core system
4  *
5  * YaST2 user-level logging implementation
6  *
7  * Authors: Mathias Kettner <kettner@suse.de>
8  * Michal Svec <msvec@suse.cz>
9  * Stanislav Visnovsky <visnov@suse.cz>
10  */
11 
12 #ifndef _y2changes_h
13 #define _y2changes_h
14 
15 #include <string>
16 #include <stdio.h>
17 
18 using std::string;
19 
20 /* Logging functions */
21 
23  CHANGES_ITEM = 0, // system view, typically execution of a file
24  CHANGES_NOTE = 1, // additional information for the user, e.g. start of a module
25 };
26 
27 // Implements y2changes_function
28 void y2changes_function (logcategory_t category, const char *format, ...) __attribute__ ((format (printf, 2, 3)));
29 
30 #define y2useritem(format, args...) y2changes_function(CHANGES_ITEM, format,##args)
31 #define y2usernote(format, args...) y2changes_function(CHANGES_NOTE, format,##args)
32 
33 #endif /* _y2changes_h */
Definition: y2changes.h:24
void y2changes_function(logcategory_t category, const char *format,...) __attribute__((format(printf
logcategory_t
Definition: y2changes.h:22
Definition: y2changes.h:23
std::string format(const char *format,...)
Definition: IniParser.cc:1027

Generated on a sunny day for yast2-core by doxygen 1.8.8