2010-01-26 00:18:02 +01:00
|
|
|
/* Part of libhgfs - (c) 2009, D.C. van Moolenbroek */
|
|
|
|
|
|
|
|
#include "inc.h"
|
|
|
|
|
|
|
|
/*===========================================================================*
|
|
|
|
* hgfs_init *
|
|
|
|
*===========================================================================*/
|
2012-03-25 20:25:53 +02:00
|
|
|
int hgfs_init()
|
2010-01-26 00:18:02 +01:00
|
|
|
{
|
|
|
|
/* Initialize the library. Return OK on success, or a negative error code
|
2012-04-09 17:17:42 +02:00
|
|
|
* otherwise. If EAGAIN is returned, shared folders are disabled.
|
2010-01-26 00:18:02 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
time_init();
|
|
|
|
|
|
|
|
return rpc_open();
|
|
|
|
}
|
|
|
|
|
|
|
|
/*===========================================================================*
|
|
|
|
* hgfs_cleanup *
|
|
|
|
*===========================================================================*/
|
2012-03-25 20:25:53 +02:00
|
|
|
void hgfs_cleanup()
|
2010-01-26 00:18:02 +01:00
|
|
|
{
|
|
|
|
/* Clean up state.
|
|
|
|
*/
|
|
|
|
|
|
|
|
rpc_close();
|
|
|
|
}
|