src/dbfs.h
author Tero Marttila <terom@fixme.fi>
Wed, 22 Oct 2008 18:14:24 +0300
changeset 38 1fd4da071575
parent 30 d8fabd347a8e
permissions -rw-r--r--
rework/hack parent to be a FOREIGN KEY (add a dir_ino col), implement dbfs_link
#ifndef DBFS_H
#define DBFS_H

#include "evfuse.h"

/*
 * External interface for dbfs
 */

/*
 * Context struct.
 */
struct dbfs;

/*
 * Create the evsql and evfuse contexts and run the fs
 */
struct dbfs *dbfs_new (struct event_base *ev_base, struct fuse_args *args, const char *db_conninfo);

/*
 * Release the dbfs's resources and free it
 */
void dbfs_free (struct dbfs *ctx);

#endif /* DBFS_H */