src/evfuse.h
changeset 56 9dfc861273e5
parent 42 40a3b13ffc9d
child 57 527d23bf6441
equal deleted inserted replaced
42:40a3b13ffc9d 56:9dfc861273e5
     1 #ifndef EVFUSE_H
       
     2 #define EVFUSE_H
       
     3 
       
     4 #define FUSE_USE_VERSION 26
       
     5 
       
     6 #include <event2/event.h>
       
     7 #include <fuse/fuse_lowlevel.h>
       
     8 
       
     9 /*
       
    10  * A wrapper for the fuse + libevent context
       
    11  */
       
    12 struct evfuse;
       
    13 
       
    14 /*
       
    15  * Create a new new evfuse context.
       
    16  */
       
    17 struct evfuse *evfuse_new (struct event_base *evbase, struct fuse_args *args, struct fuse_lowlevel_ops *llops, void *cb_data);
       
    18 
       
    19 /*
       
    20  * Close and free evfuse context.
       
    21  *
       
    22  * Safe to call after errors/llops.destroy
       
    23  */
       
    24 void evfuse_free (struct evfuse *ctx);
       
    25 
       
    26 #endif /* EVFUSE_H */
       
    27