#include "vmware.h"
#include "vmware/tools/utils.h"
#include "vmware.h"
Go to the source code of this file.
Data Structures |
struct | LogHandlerData |
Defines |
#define | LOGGING_GROUP "logging" |
Typedefs |
typedef void(* | LogErrorFn )(const gchar *domain, GLogLevelFlags level, const gchar *fmt,...) |
typedef gboolean(* | VMToolsLogFn )(const gchar *domain, GLogLevelFlags level, const gchar *message, struct LogHandlerData *data, LogErrorFn errfn) |
typedef void(* | LogHandlerDestroyFn )(struct LogHandlerData *data) |
typedef void(* | LogHandlerCopyFn )(struct LogHandlerData *current, struct LogHandlerData *old) |
typedef struct LogHandlerData | LogHandlerData |
Functions |
void | VMToolsMsgCleanup (void) |
LogHandlerData * | VMFileLoggerConfig (const gchar *defaultDomain, const gchar *domain, const gchar *name, GKeyFile *cfg) |
LogHandlerData * | VMStdLoggerConfig (const gchar *defaultDomain, const gchar *domain, const gchar *name, GKeyFile *cfg) |
LogHandlerData * | VMSysLoggerConfig (const gchar *defaultDomain, const gchar *domain, const gchar *name, GKeyFile *cfg) |
LogHandlerData * | VMXLoggerConfig (const gchar *defaultDomain, const gchar *domain, const gchar *name, GKeyFile *cfg) |
gint | VMToolsAsprintf (gchar **string, gchar const *format,...) PRINTF_DECL(2 |
Detailed Description
Internal definitions used by the vmtools library.
Function Documentation
LogHandlerData* VMFileLoggerConfig |
( |
const gchar * |
defaultDomain, |
|
|
const gchar * |
domain, |
|
|
const gchar * |
name, |
|
|
GKeyFile * |
cfg | |
|
) |
| | |
Configures a new file logger based on the given configuration.
- Parameters:
-
[in] | defaultDomain | Unused. |
[in] | domain | Name of log domain. |
[in] | name | Name of log handler. |
[in] | cfg | Configuration data. |
- Returns:
- The file logger data, or NULL on failure.
LogHandlerData* VMStdLoggerConfig |
( |
const gchar * |
defaultDomain, |
|
|
const gchar * |
domain, |
|
|
const gchar * |
name, |
|
|
GKeyFile * |
cfg | |
|
) |
| | |
Configures a new std logger.
- Parameters:
-
[in] | defaultDomain | Unused. |
[in] | domain | Name of log domain. |
[in] | name | Name of log handler. |
[in] | cfg | Configuration data. |
- Returns:
- The std logger data.
LogHandlerData* VMSysLoggerConfig |
( |
const gchar * |
defaultDomain, |
|
|
const gchar * |
domain, |
|
|
const gchar * |
name, |
|
|
GKeyFile * |
cfg | |
|
) |
| | |
Initializes syslog if it hasn't been done yet.
Since syslog is shared, it's not recommended to change the default domain during the lifetime of the application, since that may not reflect on the syslogs (and, when it does, it might be confusing).
- Parameters:
-
[in] | defaultDomain | Application name, used as the syslog identity. |
[in] | domain | Name of log domain. |
[in] | name | Name of log handler. |
[in] | cfg | Configuration data. |
- Returns:
- Syslog logger data.
void VMToolsMsgCleanup |
( |
void |
|
) |
|
Cleanup internal state, freeing up any used memory. After calling this function, it's not safe to call any of the API exposed by this file, so this is only called internally when the library is being unloaded.
LogHandlerData* VMXLoggerConfig |
( |
const gchar * |
defaultDomain, |
|
|
const gchar * |
domain, |
|
|
const gchar * |
name, |
|
|
GKeyFile * |
cfg | |
|
) |
| | |
Configures a new VMX logger.
- Parameters:
-
[in] | defaultDomain | Unused. |
[in] | domain | Unused. |
[in] | name | Unused. |
[in] | cfg | Unused. |
- Returns:
- The VMX logger data.