00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00028 #ifndef __SQLFS__H__
00029 #define __SQLFS__H__
00030
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034
00035
00036 #include <stdint.h>
00037 #include <sys/types.h>
00038 #include <sys/stat.h>
00039 #include <sys/statvfs.h>
00040 #include <unistd.h>
00041 #include <fcntl.h>
00042 #include <errno.h>
00043 #include <utime.h>
00044
00045
00046
00047 #ifndef FUSE
00048
00049
00050
00051
00052
00053
00054
00055
00056
00062 struct fuse_file_info {
00064 int flags;
00065
00067 unsigned long fh_old;
00068
00071 int writepage;
00072
00075 unsigned int direct_io : 1;
00076
00079 unsigned int keep_cache : 1;
00080
00082 unsigned int padding : 30;
00083
00086 uint64_t fh;
00087 };
00088
00089
00098 typedef int (*fuse_fill_dir_t) (void *buf, const char *name,
00099 const struct stat *stbuf, off_t off);
00100
00101
00102 #else
00103
00104 #include "fuse.h"
00105
00106 #endif
00107
00108 #include "sqlfs_internal.h"
00109
00110 int sqlfs_init(const char *);
00111
00112 #ifdef FUSE
00113 int sqlfs_fuse_main(int argc, char **argv);
00114 #endif
00115
00116
00117
00118 #ifdef __cplusplus
00119 }
00120 #endif
00121
00122 #endif
00123
00124
00125
00126
00127