GuestRPC functions

Functions related to reading and writing data on a GuestRPC channel. More...

Data Structures

struct  RpcInData
struct  RpcChannelCallback
struct  RpcChannel

Defines

#define RPCIN_SETRETVALS   RpcChannel_SetRetVals

Typedefs

typedef gboolean(* RpcIn_Callback )(RpcInData *data)
typedef gboolean(* RpcChannelStartFn )(struct RpcChannel *)
typedef void(* RpcChannelStopFn )(struct RpcChannel *)
typedef void(* RpcChannelShutdownFn )(struct RpcChannel *)
typedef gboolean(* RpcChannelSendFn )(struct RpcChannel *, char *data, size_t dataLen, char **result, size_t *resultLen)
typedef void(* RpcChannelResetCb )(struct RpcChannel *chan, gboolean success, gpointer data)

Functions

G_INLINE_FUNC gboolean RpcChannel_Start (RpcChannel *chan)
G_INLINE_FUNC void RpcChannel_Stop (RpcChannel *chan)
G_INLINE_FUNC gboolean RpcChannel_Send (RpcChannel *chan, char *data, size_t dataLen, char **result, size_t *resultLen)
gboolean RpcChannel_BuildXdrCommand (const char *cmd, void *xdrProc, void *xdrData, char **result, size_t *resultLen)
gboolean RpcChannel_Destroy (RpcChannel *chan)
gboolean RpcChannel_Dispatch (RpcInData *data)
void RpcChannel_Setup (RpcChannel *chan, const gchar *appName, GMainContext *mainCtx, gpointer appCtx, RpcChannelResetCb resetCb, gpointer resetData)
void RpcChannel_RegisterCallback (RpcChannel *chan, RpcChannelCallback *rpc)
gboolean RpcChannel_SetRetVals (RpcInData *data, char *result, gboolean retVal)
void RpcChannel_UnregisterCallback (RpcChannel *chan, RpcChannelCallback *rpc)
RpcChannelRpcChannel_NewBackdoorChannel (GMainContext *mainCtx)

Detailed Description

Functions related to reading and writing data on a GuestRPC channel.


Define Documentation

#define RPCIN_SETRETVALS   RpcChannel_SetRetVals

Alias for RpcChannel_SetRetVals.


Typedef Documentation

typedef void(* RpcChannelResetCb)(struct RpcChannel *chan, gboolean success, gpointer data)

Signature for the callback function called after a channel reset.

Parameters:
[in] chan The RPC channel.
[in] success Whether reset was successful.
[in] data Client data.
typedef gboolean(* RpcIn_Callback)(RpcInData *data)

Type for RpcIn callbacks. The callback function is responsible for allocating memory for the result string.


Function Documentation

G_INLINE_FUNC gboolean RpcChannel_Send ( RpcChannel chan,
char *  data,
size_t  dataLen,
char **  result,
size_t *  resultLen 
)

Wrapper for the send function of an RPC channel struct.

Parameters:
[in] chan The RPC channel instance.
[in] data Data to send.
[in] dataLen Number of bytes to send.
[out] result Response from other side.
[out] resultLen Number of bytes in response.
Returns:
The status from the remote end (TRUE if call was successful).
G_INLINE_FUNC gboolean RpcChannel_Start ( RpcChannel chan  ) 

Wrapper for the start function of an RPC channel struct.

Parameters:
[in] chan The RPC channel instance.
Returns:
TRUE on success.
G_INLINE_FUNC void RpcChannel_Stop ( RpcChannel chan  ) 

Wrapper for the stop function of an RPC channel struct.

Parameters:
[in] chan The RPC channel instance.

Generated on 17 Feb 2010 for open-vm-tools 2010.01.19 by  doxygen 1.6.1