| author | Tero Marttila <terom@fixme.fi> |
| Sat, 13 Dec 2008 20:58:27 +0200 | |
| branch | new-evsql |
| changeset 55 | 0b92d553400a |
| parent 3 | 10b53719659c |
| permissions | -rw-r--r-- |
| terom@0 | 1 |
#ifndef EVFUSE_H |
| terom@0 | 2 |
#define EVFUSE_H |
| terom@0 | 3 |
|
| terom@1 | 4 |
#define FUSE_USE_VERSION 26 |
| terom@1 | 5 |
|
| terom@0 | 6 |
#include <event2/event.h> |
| terom@1 | 7 |
#include <fuse/fuse_lowlevel.h> |
| terom@0 | 8 |
|
| terom@0 | 9 |
/* |
| terom@0 | 10 |
* A wrapper for the fuse + libevent context |
| terom@0 | 11 |
*/ |
| terom@0 | 12 |
struct evfuse; |
| terom@0 | 13 |
|
| terom@0 | 14 |
/* |
| terom@0 | 15 |
* Create a new new evfuse context. |
| terom@0 | 16 |
*/ |
| terom@0 | 17 |
struct evfuse *evfuse_new (struct event_base *evbase, struct fuse_args *args, struct fuse_lowlevel_ops *llops, void *cb_data); |
| terom@0 | 18 |
|
| terom@3 | 19 |
/* |
| terom@27 | 20 |
* Close and free evfuse context. |
| terom@27 | 21 |
* |
| terom@27 | 22 |
* Safe to call after errors/llops.destroy |
| terom@3 | 23 |
*/ |
| terom@27 | 24 |
void evfuse_free (struct evfuse *ctx); |
| terom@3 | 25 |
|
| terom@1 | 26 |
#endif /* EVFUSE_H */ |
| terom@3 | 27 |