src/dbfs.h
author Tero Marttila <terom@fixme.fi>
Sat, 13 Dec 2008 20:58:27 +0200
branchnew-evsql
changeset 55 0b92d553400a
parent 28 e944453ca924
permissions -rw-r--r--
evsql: more improvements
terom@28
     1
#ifndef DBFS_H
terom@28
     2
#define DBFS_H
terom@28
     3
terom@28
     4
#include "evfuse.h"
terom@28
     5
terom@28
     6
/*
terom@28
     7
 * External interface for dbfs
terom@28
     8
 */
terom@28
     9
terom@28
    10
/*
terom@28
    11
 * Context struct.
terom@28
    12
 */
terom@28
    13
struct dbfs;
terom@28
    14
terom@28
    15
/*
terom@28
    16
 * Create the evsql and evfuse contexts and run the fs
terom@28
    17
 */
terom@30
    18
struct dbfs *dbfs_new (struct event_base *ev_base, struct fuse_args *args, const char *db_conninfo);
terom@28
    19
terom@28
    20
/*
terom@28
    21
 * Release the dbfs's resources and free it
terom@28
    22
 */
terom@30
    23
void dbfs_free (struct dbfs *ctx);
terom@28
    24
terom@28
    25
#endif /* DBFS_H */