ToolsAppCtx Struct Reference
VMware Tools Plugins

`#include <plugin.h>`

## Data Fields

ToolsCoreAPI | version
const gchar * | name
gboolean | isVMware
int | errorCode
GMainLoop * | mainLoop
RpcChannel * | rpc
GKeyFile * | config
int | blockFD
const char ** | envp
gpointer | serviceObj

## Detailed Description

Defines the context of a tools application. This data is provided by the core services to applications when they're loaded.

## Field Documentation

## blockFD

int ToolsAppCtx::blockFD

The FD to access the VMware blocking fs. -1 if no FD available.

## config

GKeyFile* ToolsAppCtx::config

Service configuration from the config file.

## envp

const char** ToolsAppCtx::envp

The native environment (without any VMware modifications).

## errorCode

int ToolsAppCtx::errorCode

Error code to return from the main loop.

## isVMware

gboolean ToolsAppCtx::isVMware

Whether we're running under a VMware hypervisor.

## mainLoop

GMainLoop* ToolsAppCtx::mainLoop

The main loop instance for the service.

## name

const gchar* ToolsAppCtx::name

Name of the application.

## rpc

RpcChannel* ToolsAppCtx::rpc

The RPC channel used to communicate with the VMX.

## serviceObj

gpointer ToolsAppCtx::serviceObj

A GObject instance shared among all plugins. The object itself doesn't provide any functionality; but the service emits a few signals on this object (see the signal name declarations in this header), and plugins can register and emit their own signals using this object.

## version

ToolsCoreAPI ToolsAppCtx::version

Supported API versions. This is a bit-mask.

The documentation for this struct was generated from the following file:

- lib/include/vmware/tools/plugin.h