libvmtools/vmtoolsInt.h File Reference

#include "vmware/tools/utils.h"
Include dependency graph for vmtoolsInt.h:
This graph shows which files directly or indirectly include this file:

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)
LogHandlerDataVMFileLoggerConfig (const gchar *defaultDomain, const gchar *domain, const gchar *name, GKeyFile *cfg)
LogHandlerDataVMStdLoggerConfig (const gchar *defaultDomain, const gchar *domain, const gchar *name, GKeyFile *cfg)
LogHandlerDataVMSysLoggerConfig (const gchar *defaultDomain, const gchar *domain, const gchar *name, GKeyFile *cfg)

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.

Generated by  doxygen 1.6.2-20100208