Main Page | Class List | Directories | File List | Class Members | File Members

ipmi_glib.h File Reference

#include <OpenIPMI/os_handler.h>

Go to the source code of this file.

Functions

os_handler_tipmi_glib_get_os_handler (void)
void ipmi_glib_set_log_handler (void(*hndlr)(const char *domain, const char *pfx, const char *msg))


Function Documentation

os_handler_t* ipmi_glib_get_os_handler void   ) 
 

void ipmi_glib_set_log_handler void(*)(const char *domain, const char *pfx, const char *msg)  hndlr  ) 
 

Definition at line 889 of file glib_os_hnd.c.

References glib_handle_log(), and log_hndlr.

00892 {
00893     log_hndlr = hndlr;
00894     g_log_set_handler("OpenIPMI",
00895                       G_LOG_LEVEL_ERROR
00896                       | G_LOG_LEVEL_CRITICAL
00897                       | G_LOG_LEVEL_WARNING
00898                       | G_LOG_LEVEL_MESSAGE
00899                       | G_LOG_LEVEL_INFO
00900                       | G_LOG_LEVEL_DEBUG
00901                       | G_LOG_FLAG_FATAL,
00902                       glib_handle_log,
00903                       NULL);
00904 }


© sourcejam.com 2005-2008