diff options
author | Radek Novacek <rnovacek@redhat.com> | 2013-04-08 11:09:53 +0200 |
---|---|---|
committer | Radek Novacek <rnovacek@redhat.com> | 2013-04-17 12:31:25 +0200 |
commit | c14bd833b7b1b3b1283d116a87b6f293377f129b (patch) | |
tree | 09e297a582294bfe137ef4e2fc0927bbdd33784c /src/globals.h | |
parent | 1b8ac75de453d41f5cc78695cb7f5cec476cf674 (diff) | |
download | openlmi-providers-c14bd833b7b1b3b1283d116a87b6f293377f129b.tar.gz openlmi-providers-c14bd833b7b1b3b1283d116a87b6f293377f129b.tar.xz openlmi-providers-c14bd833b7b1b3b1283d116a87b6f293377f129b.zip |
Support for using libopenlmicommon by external providers
* add FindOpenLMI.cmake module
* add pkgconfig for OpenLMI
* add openlmi.c/h with exported functions
* add symlink with major version to openlmicommon library
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=948948
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/globals.h b/src/globals.h index a1cb18c..094602f 100644 --- a/src/globals.h +++ b/src/globals.h @@ -21,19 +21,16 @@ #ifndef GLOBALS_H #define GLOBALS_H -const char *get_system_name(); +#include "openlmi.h" -const char *get_system_creation_class_name(); - -int log_level(void); -void set_log_level(int level); - -enum { NONE=0, ERROR, WARN, DEBUG }; -void _debug(int level, const char *file, int line, const char *format, ...); -#define debug(...) _debug(DEBUG, __FILE__, __LINE__, __VA_ARGS__) -#define warn(...) _debug(WARN, __FILE__, __LINE__, __VA_ARGS__) -#define error(...) _debug(ERROR, __FILE__, __LINE__, __VA_ARGS__) +// Shortcuts for functions and macros from openlmicommon library +#define get_system_creation_class_name lmi_get_system_creation_class_name +#define get_system_name lmi_get_system_name +#define debug lmi_debug +#define warn lmi_warn +#define error lmi_error #define ORGID "LMI" + #endif |