19#ifndef _VMWARE_TOOLS_GUESTRPC_H_
20#define _VMWARE_TOOLS_GUESTRPC_H_
45#define RPCIN_SETRETVALS RpcChannel_SetRetVals
46#define RPCIN_SETRETVALSF RpcChannel_SetRetValsF
48typedef struct _RpcChannel RpcChannel;
79typedef enum RpcChannelType {
80 RPCCHANNEL_TYPE_INACTIVE,
81 RPCCHANNEL_TYPE_BKDOOR,
82 RPCCHANNEL_TYPE_PRIV_VSOCK,
83 RPCCHANNEL_TYPE_UNPRIV_VSOCK
138RpcChannel_Start(RpcChannel *chan);
141RpcChannel_Stop(RpcChannel *chan);
144RpcChannel_GetType(RpcChannel *chan);
147RpcChannel_Send(RpcChannel *chan,
154RpcChannel_Free(
void *ptr);
156#if !defined(USE_RPCI_ONLY)
158RpcChannel_BuildXdrCommand(
const char *cmd,
167RpcChannel_Setup(RpcChannel *chan,
168 const gchar *appName,
169 GMainContext *mainCtx,
177RpcChannel_RegisterCallback(RpcChannel *chan,
181RpcChannel_UnregisterCallback(RpcChannel *chan,
186RpcChannel_Create(
void);
189RpcChannel_Shutdown(RpcChannel *chan);
192RpcChannel_Destroy(RpcChannel *chan);
205RpcChannel_SendOneRaw(
const char *data,
211RpcChannel_SendOne(
char **reply,
220RpcChannel_SetBackdoorOnly(
void);
Definition: guestrpc.h:94
size_t xdrInSize
Definition: guestrpc.h:114
gpointer clientData
Definition: guestrpc.h:100
gpointer xdrIn
Definition: guestrpc.h:102
const char * name
Definition: guestrpc.h:96
gpointer xdrOut
Definition: guestrpc.h:109
RpcIn_Callback callback
Definition: guestrpc.h:98
Definition: guestrpc.h:51
const char * name
Definition: guestrpc.h:53
gboolean freeResult
Definition: guestrpc.h:72
char * result
Definition: guestrpc.h:65
size_t argsSize
Definition: guestrpc.h:60
const char * args
Definition: guestrpc.h:58
void * appCtx
Definition: guestrpc.h:74
void * clientData
Definition: guestrpc.h:76
size_t resultLen
Definition: guestrpc.h:67