1 /* Part of libhgfs - (c) 2009, D.C. van Moolenbroek */
5 struct sffs_table hgfs_table
= {
11 .t_readbuf
= hgfs_readbuf
,
12 .t_writebuf
= hgfs_writebuf
,
14 .t_opendir
= hgfs_opendir
,
15 .t_readdir
= hgfs_readdir
,
16 .t_closedir
= hgfs_closedir
,
18 .t_getattr
= hgfs_getattr
,
19 .t_setattr
= hgfs_setattr
,
21 .t_mkdir
= hgfs_mkdir
,
22 .t_unlink
= hgfs_unlink
,
23 .t_rmdir
= hgfs_rmdir
,
24 .t_rename
= hgfs_rename
,
26 .t_queryvol
= hgfs_queryvol
,
29 /*===========================================================================*
31 *===========================================================================*/
32 int hgfs_init(const struct sffs_table
**tablep
)
34 /* Initialize the library. Return OK on success, or a negative error code
35 * otherwise. If EAGAIN is returned, shared folders are disabled.
44 *tablep
= &hgfs_table
;
49 /*===========================================================================*
51 *===========================================================================*/