libvmtools/vmtoolsConfig.c File Reference

#include "vmware/tools/utils.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gstdio.h>
#include "vm_assert.h"
#include "dictll.h"
#include "conf.h"
#include "err.h"
#include "guestApp.h"
#include "str.h"
#include "strutil.h"
#include "util.h"

Typedefs

typedef void(* CfgCallback )(GKeyFile *cfg, const ConfigEntry *, const char *)

Enumerations

enum  ConfigType { CFG_BOOLEAN, CFG_INTEGER, CFG_STRING, CFG_CALLBACK }

Functions

gboolean VMTools_LoadConfig (const gchar *path, GKeyFileFlags flags, GKeyFile **config, time_t *mtime)
gboolean VMTools_WriteConfig (const gchar *path, GKeyFile *config, GError **err)
gboolean VMTools_ConfigGetBoolean (GKeyFile *config, const gchar *section, const gchar *key, gboolean defValue)
gint VMTools_ConfigGetInteger (GKeyFile *config, const gchar *section, const gchar *key, gint defValue)
gchar * VMTools_ConfigGetString (GKeyFile *config, const gchar *section, const gchar *key, gchar *defValue)

Detailed Description

Convenience functions for loading tools configuration files, and automatically migrating from old-style tools configuration files.


Enumeration Type Documentation

enum ConfigType

Data types supported for translation.


Generated on 4 Apr 2017 for open-vm-tools 10.1.5 by  doxygen 1.6.1