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

sqlfs_internal.h File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <sys/statvfs.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <utime.h>
#include "sqlite3.h"

Go to the source code of this file.

Data Structures

struct  sqlfs_t
struct  key_attr
struct  key_value

Defines

#define TYPE_NULL   "null"
#define TYPE_DIR   "dir"
#define TYPE_INT   "int"
#define TYPE_DOUBLE   "double"
#define TYPE_STRING   "string"
#define TYPE_SYM_LINK   "sym link"
#define TYPE_BOOL   "bool"
#define TYPE_LIST   "list"
#define TYPE_BLOB   "blob"

Functions

void clean_attr (key_attr *attr)
void clean_value (key_value *value)
int sqlfs_del_tree (sqlfs_t *sqlfs, const char *key)
int sqlfs_del_tree_with_exclusion (sqlfs_t *sqlfs, const char *key, const char *exclusion_pattern)
int sqlfs_get_value (sqlfs_t *sqlfs, const char *key, key_value *value, size_t begin, size_t end)
int sqlfs_set_value (sqlfs_t *sqlfs, const char *key, const key_value *value, size_t begin, size_t end)
int sqlfs_get_attr (sqlfs_t *sqlfs, const char *key, key_attr *attr)
int sqlfs_set_attr (sqlfs_t *sqlfs, const char *key, const key_attr *attr)
int sqlfs_set_type (sqlfs_t *sqlfs, const char *key, const char *type)
int sqlfs_list_keys (sqlfs_t *, const char *pattern, void *buf, fuse_fill_dir_t filler)
int sqlfs_begin_transaction (sqlfs_t *sqlfs)
int sqlfs_complete_transaction (sqlfs_t *sqlfs, int i)
int sqlfs_break_transaction (sqlfs_t *sqlfs)
int sqlfs_is_dir (sqlfs_t *sqlfs, const char *key)
int sqlfs_proc_getattr (sqlfs_t *, const char *path, struct stat *stbuf)
int sqlfs_proc_access (sqlfs_t *, const char *path, int mask)
int sqlfs_proc_readlink (sqlfs_t *, const char *path, char *buf, size_t size)
int sqlfs_proc_readdir (sqlfs_t *, const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi)
int sqlfs_proc_mknod (sqlfs_t *, const char *path, mode_t mode, dev_t rdev)
int sqlfs_proc_mkdir (sqlfs_t *, const char *path, mode_t mode)
int sqlfs_proc_unlink (sqlfs_t *, const char *path)
int sqlfs_proc_rmdir (sqlfs_t *, const char *path)
int sqlfs_proc_symlink (sqlfs_t *, const char *path, const char *to)
int sqlfs_proc_rename (sqlfs_t *, const char *from, const char *to)
int sqlfs_proc_link (sqlfs_t *, const char *from, const char *to)
int sqlfs_proc_chmod (sqlfs_t *, const char *path, mode_t mode)
int sqlfs_proc_chown (sqlfs_t *, const char *path, uid_t uid, gid_t gid)
int sqlfs_proc_truncate (sqlfs_t *, const char *path, off_t size)
int sqlfs_proc_utime (sqlfs_t *, const char *path, struct utimbuf *buf)
int sqlfs_proc_open (sqlfs_t *, const char *path, struct fuse_file_info *fi)
int sqlfs_proc_read (sqlfs_t *, const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fi)
int sqlfs_proc_write (sqlfs_t *, const char *path, const char *buf, size_t size, off_t offset, struct fuse_file_info *fi)
int sqlfs_proc_statfs (sqlfs_t *, const char *path, struct statvfs *stbuf)
int sqlfs_proc_release (sqlfs_t *, const char *path, struct fuse_file_info *fi)
int sqlfs_proc_fsync (sqlfs_t *, const char *path, int isfdatasync, struct fuse_file_info *fi)
int sqlfs_proc_setxattr (sqlfs_t *, const char *path, const char *name, const char *value, size_t size, int flags)
int sqlfs_proc_getxattr (sqlfs_t *, const char *path, const char *name, char *value, size_t size)
int sqlfs_proc_listxattr (sqlfs_t *, const char *path, char *list, size_t size)
int sqlfs_proc_removexattr (sqlfs_t *, const char *path, const char *name)
int sqlfs_open (const char *, sqlfs_t **)
int sqlfs_close (sqlfs_t *)


Define Documentation

#define TYPE_BLOB   "blob"
 

#define TYPE_BOOL   "bool"
 

#define TYPE_DIR   "dir"
 

#define TYPE_DOUBLE   "double"
 

#define TYPE_INT   "int"
 

#define TYPE_LIST   "list"
 

#define TYPE_NULL   "null"
 

#define TYPE_STRING   "string"
 

#define TYPE_SYM_LINK   "sym link"
 


Function Documentation

void clean_attr key_attr attr  ) 
 

void clean_value key_value value  ) 
 

int sqlfs_begin_transaction sqlfs_t sqlfs  ) 
 

int sqlfs_break_transaction sqlfs_t sqlfs  ) 
 

int sqlfs_close sqlfs_t  ) 
 

int sqlfs_complete_transaction sqlfs_t sqlfs,
int  i
 

int sqlfs_del_tree sqlfs_t sqlfs,
const char *  key
 

int sqlfs_del_tree_with_exclusion sqlfs_t sqlfs,
const char *  key,
const char *  exclusion_pattern
 

int sqlfs_get_attr sqlfs_t sqlfs,
const char *  key,
key_attr attr
 

int sqlfs_get_value sqlfs_t sqlfs,
const char *  key,
key_value value,
size_t  begin,
size_t  end
 

int sqlfs_is_dir sqlfs_t sqlfs,
const char *  key
 

int sqlfs_list_keys sqlfs_t ,
const char *  pattern,
void *  buf,
fuse_fill_dir_t  filler
 

int sqlfs_open const char *  ,
sqlfs_t ** 
 

int sqlfs_proc_access sqlfs_t ,
const char *  path,
int  mask
 

int sqlfs_proc_chmod sqlfs_t ,
const char *  path,
mode_t  mode
 

int sqlfs_proc_chown sqlfs_t ,
const char *  path,
uid_t  uid,
gid_t  gid
 

int sqlfs_proc_fsync sqlfs_t ,
const char *  path,
int  isfdatasync,
struct fuse_file_info fi
 

int sqlfs_proc_getattr sqlfs_t ,
const char *  path,
struct stat *  stbuf
 

int sqlfs_proc_getxattr sqlfs_t ,
const char *  path,
const char *  name,
char *  value,
size_t  size
 

int sqlfs_proc_link sqlfs_t ,
const char *  from,
const char *  to
 

int sqlfs_proc_listxattr sqlfs_t ,
const char *  path,
char *  list,
size_t  size
 

int sqlfs_proc_mkdir sqlfs_t ,
const char *  path,
mode_t  mode
 

int sqlfs_proc_mknod sqlfs_t ,
const char *  path,
mode_t  mode,
dev_t  rdev
 

int sqlfs_proc_open sqlfs_t ,
const char *  path,
struct fuse_file_info fi
 

int sqlfs_proc_read sqlfs_t ,
const char *  path,
char *  buf,
size_t  size,
off_t  offset,
struct fuse_file_info fi
 

int sqlfs_proc_readdir sqlfs_t ,
const char *  path,
void *  buf,
fuse_fill_dir_t  filler,
off_t  offset,
struct fuse_file_info fi
 

int sqlfs_proc_readlink sqlfs_t ,
const char *  path,
char *  buf,
size_t  size
 

int sqlfs_proc_release sqlfs_t ,
const char *  path,
struct fuse_file_info fi
 

int sqlfs_proc_removexattr sqlfs_t ,
const char *  path,
const char *  name
 

int sqlfs_proc_rename sqlfs_t ,
const char *  from,
const char *  to
 

int sqlfs_proc_rmdir sqlfs_t ,
const char *  path
 

int sqlfs_proc_setxattr sqlfs_t ,
const char *  path,
const char *  name,
const char *  value,
size_t  size,
int  flags
 

int sqlfs_proc_statfs sqlfs_t ,
const char *  path,
struct statvfs *  stbuf
 

int sqlfs_proc_symlink sqlfs_t ,
const char *  path,
const char *  to
 

int sqlfs_proc_truncate sqlfs_t ,
const char *  path,
off_t  size
 

int sqlfs_proc_unlink sqlfs_t ,
const char *  path
 

int sqlfs_proc_utime sqlfs_t ,
const char *  path,
struct utimbuf *  buf
 

int sqlfs_proc_write sqlfs_t ,
const char *  path,
const char *  buf,
size_t  size,
off_t  offset,
struct fuse_file_info fi
 

int sqlfs_set_attr sqlfs_t sqlfs,
const char *  key,
const key_attr attr
 

int sqlfs_set_type sqlfs_t sqlfs,
const char *  key,
const char *  type
 

int sqlfs_set_value sqlfs_t sqlfs,
const char *  key,
const key_value value,
size_t  begin,
size_t  end
 


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