19#ifndef _VMWARE_TOOLS_GUESTRPC_H_
20#define _VMWARE_TOOLS_GUESTRPC_H_
57#define RPCIN_SETRETVALS RpcChannel_SetRetVals
58#define RPCIN_SETRETVALSF RpcChannel_SetRetValsF
62#define RPCCHANNEL_SEND_PERMISSION_DENIED "Permission denied"
64typedef struct _RpcChannel RpcChannel;
95typedef enum RpcChannelType {
96 RPCCHANNEL_TYPE_INACTIVE,
97 RPCCHANNEL_TYPE_BKDOOR,
98 RPCCHANNEL_TYPE_PRIV_VSOCK,
99 RPCCHANNEL_TYPE_UNPRIV_VSOCK
154RpcChannel_Start(RpcChannel *chan);
157RpcChannel_Stop(RpcChannel *chan);
160RpcChannel_GetType(RpcChannel *chan);
163RpcChannel_Send(RpcChannel *chan,
170RpcChannel_Free(
void *ptr);
172#if !defined(USE_RPCI_ONLY)
174RpcChannel_BuildXdrCommand(
const char *cmd,
183RpcChannel_Setup(RpcChannel *chan,
184 const gchar *appName,
185 GMainContext *mainCtx,