yast2-core
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
liby2util-r
src
include
y2util
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
22
enum
logcategory_t
{
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 */
Generated on a sunny day for yast2-core by
1.8.2