Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

sqlfs.h

Go to the documentation of this file.
00001 /******************************************************************************
00002 Copyright 2006 Palmsource, Inc (an ACCESS company). 
00003 
00004 This library is free software; you can redistribute it and/or
00005 modify it under the terms of the GNU Lesser General Public
00006 License as published by the Free Software Foundation; either
00007 version 2.1 of the License, or (at your option) any later version.
00008  
00009 This library is distributed in the hope that it will be useful,
00010 but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012 Lesser General Public License for more details.
00013  
00014 You should have received a copy of the GNU Lesser General Public
00015 License along with this library; if not, write to the Free Software
00016 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
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 /* the following struct derived from the FUSE header file 
00050 
00051     FUSE: Filesystem in Userspace
00052     Copyright (C) 2001-2006  Miklos Szeredi <miklos@szeredi.hu>
00053 
00054     This program can be distributed under the terms of the GNU LGPL.
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 }       // extern "C"
00120 #endif
00121 
00122 #endif
00123 
00124                   
00125                   
00126 
00127 

Generated on Sat Dec 16 20:29:47 2006 for hiker-0.9 by  doxygen 1.4.4