? refuse.diff Index: fuse.h =================================================================== RCS file: /cvsroot/src/lib/librefuse/fuse.h,v retrieving revision 1.21 diff -u -p -r1.21 fuse.h --- fuse.h 1 Aug 2008 15:54:09 -0000 1.21 +++ fuse.h 13 Feb 2011 08:06:39 -0000 @@ -47,7 +47,8 @@ extern "C" { struct fuse; struct fuse_args; /* XXXsupportme */ - +struct fuse_session; + struct fuse_file_info { int32_t flags; uint32_t fh_old; @@ -166,6 +167,10 @@ struct fuse *fuse_setup(int, char **, co size_t, char **, int *, int *); void fuse_teardown(struct fuse *, char *); +int fuse_version(void); +struct fuse_session * fuse_get_session(struct fuse *); +int fuse_set_signal_handlers(struct fuse_session *fuse_se); + #if FUSE_USE_VERSION == 22 #define fuse_unmount fuse_unmount_compat22 #endif Index: refuse.c =================================================================== RCS file: /cvsroot/src/lib/librefuse/refuse.c,v retrieving revision 1.92 diff -u -p -r1.92 refuse.c --- refuse.c 5 Mar 2009 01:21:57 -0000 1.92 +++ refuse.c 13 Feb 2011 08:06:39 -0000 @@ -101,6 +101,10 @@ struct fuse { int intr_installed; }; +struct fuse_session { + int session; +}; + struct puffs_fuse_dirh { void *dbuf; struct dirent *d; @@ -1428,13 +1432,39 @@ fuse_unmount_compat22(const char *mp) return; } -/* The next function "exposes" struct fuse to userland. Not much -* that we can do about this, as we're conforming to a defined -* interface. */ - +/* + * The next function "exposes" struct fuse to userland. Not much + * that we can do about this, as we're conforming to a defined + * interface. + */ void fuse_teardown(struct fuse *fuse, char *mountpoint) { fuse_unmount(mountpoint, fuse->fc); fuse_destroy(fuse); } + +int fuse_version(void); +struct fuse_session* fuse_get_session(struct fuse *); +int fuse_set_signal_handlers(struct fuse_session *); + +int +fuse_version(void) +{ + + return FUSE_VERSION; +} + +struct fuse_session* +fuse_get_session(struct fuse *fuse __unused) +{ + + return NULL; +} + +int +fuse_set_signal_handlers(struct fuse_session *fuse_se __unused) +{ + + return -1; +}