src/evfuse.h
author Tero Marttila <terom@fixme.fi>
Sat, 13 Dec 2008 19:55:50 +0200
branchnew-evsql
changeset 53 0d6e07f4c9a1
parent 27 461be4cd34a3
permissions -rw-r--r--
separate evsql documentation
#ifndef EVFUSE_H
#define EVFUSE_H

#define FUSE_USE_VERSION 26

#include <event2/event.h>
#include <fuse/fuse_lowlevel.h>

/*
 * A wrapper for the fuse + libevent context
 */
struct evfuse;

/*
 * Create a new new evfuse context.
 */
struct evfuse *evfuse_new (struct event_base *evbase, struct fuse_args *args, struct fuse_lowlevel_ops *llops, void *cb_data);

/*
 * Close and free evfuse context.
 *
 * Safe to call after errors/llops.destroy
 */
void evfuse_free (struct evfuse *ctx);

#endif /* EVFUSE_H */