yast2-core

y2changes.h

Go to the documentation of this file.
00001 /* y2changes.h
00002  *
00003  * YaST2: Core system
00004  *
00005  * YaST2 user-level logging implementation
00006  *
00007  * Authors: Mathias Kettner <kettner@suse.de>
00008  *          Michal Svec <msvec@suse.cz>
00009  *          Stanislav Visnovsky <visnov@suse.cz>
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 /* Logging functions */
00021 
00022 enum logcategory_t {
00023     CHANGES_ITEM = 0,           //      system view, typically execution of a file
00024     CHANGES_NOTE = 1,           //      additional information for the user, e.g. start of a module
00025 };
00026 
00027 // Implements y2changes_function
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 /* _y2changes_h */

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