fsd_mysql.h

Go to the documentation of this file.
00001 
00017 #ifndef _FSD_MYSQL_H_
00018 #define _FSD_MYSQL_H_
00019 
00020 
00021 #include <mysql/mysql.h>
00022 #include "fsd_defines.h"
00023 
00024 
00029 char *server =          "localhost";
00030 char *user =            "mysqlfs";
00031 char *password =        "mysqlfs";
00032 char *database =        "mysqlfs";
00040 MYSQL *fsd_db_connect(char *server, char *user, char* password, char *database);
00041 void fsd_db_close(MYSQL *conn);
00049 int fsd_test(MYSQL *conn);
00050 int fsd_create(MYSQL *conn, char *dir, char *filename, char *return_text);
00051 int fsd_mkdir(MYSQL *conn, char *dir, char *dirname, char *return_text);
00052 int fsd_clear_file(MYSQL *conn, char *file, char *return_text);
00053 int fsd_add_block(MYSQL *conn, char *file, int block_size, char *block, char *return_text);
00054 int fsd_replace_block(MYSQL *conn, char *file, char *offset, int block_size, char *block, char *return_text);
00055 int fsd_remove_file(MYSQL *conn, char *file, char *return_text);
00056 int fsd_remove_dir(MYSQL *conn, char *dir, char *return_text);
00057 int fsd_get_block(MYSQL *conn, char *file, char *offset, int *block_size, char *block, char *return_text);
00058 int fsd_lookup(MYSQL *conn, char *dir, char *name, char *return_text);
00059 int fsd_read_inode(MYSQL *conn, char *inode_nr, char *return_text);
00060 int fsd_read_dir(MYSQL *conn, char *dir, rd_item **rd_list, char *return_text);
00061 int fsd_file_info(MYSQL *conn, char *file, char *return_text);
00062 int fsd_dir_info(MYSQL *conn, char *dir, char *return_text);
00063 int fsd_move_file(MYSQL *conn, char *file, char *dir, char *return_text);
00064 int fsd_rename_file(MYSQL *conn, char *file, char *name, char *return_text);
00065 int fsd_rename_dir(MYSQL *conn, char *dir, char *name, char *return_text);
00066 int fsd_truncate_file(MYSQL *conn, char *file, char *offset, char *return_text);
00070 #endif
00071 
00072 

Generated on Mon May 28 13:33:08 2007 for MYSQLFS by  doxygen 1.5.0