/*===========================================================================* * hgfs_enabled * *===========================================================================*/ PUBLIC int hgfs_enabled() { /* Check if shared folders are enabled. Return OK if so, EAGAIN if not, and * another negative error code on error. */ return rpc_test(); }
/*===========================================================================* * rpc_open * *===========================================================================*/ int rpc_open(void) { /* Open a HGFS RPC backdoor channel to the VMware host, and make sure that it * is working. Return OK upon success, or a negative error code otherwise; in * particular, return EAGAIN if shared folders are disabled. */ int r; if ((r = channel_open(&rpc_chan, CH_OUT)) != OK) return r; r = rpc_test(); if (r != OK) channel_close(&rpc_chan); return r; }
int main() { return rpc_test(); }