summaryrefslogtreecommitdiff
path: root/pgsql.h
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-05-01 08:59:49 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-05-01 08:59:49 +0200
commit769032ebbbc2bf8f72dbfce13b39cf0e450f17c7 (patch)
treec1a08840b5d9245654846484031afc30ae7bfba5 /pgsql.h
parent6297d437585be15616a47802c84f592447ed5cdd (diff)
downloadpgfuse-769032ebbbc2bf8f72dbfce13b39cf0e450f17c7.tar.gz
pgfuse-769032ebbbc2bf8f72dbfce13b39cf0e450f17c7.tar.bz2
ids and block numbers are bigints too now
fixed a UMR in psql_read_buf
Diffstat (limited to 'pgsql.h')
-rw-r--r--pgsql.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/pgsql.h b/pgsql.h
index 46a3bab..e12e4a6 100644
--- a/pgsql.h
+++ b/pgsql.h
@@ -72,28 +72,28 @@ int psql_rollback( PGconn *conn );
int psql_path_to_id( PGconn *conn, const char *path );
-int psql_read_meta( PGconn *conn, const int id, const char *path, PgMeta *meta );
+int psql_read_meta( PGconn *conn, const int64_t id, const char *path, PgMeta *meta );
int psql_read_meta_from_path( PGconn *conn, const char *path, PgMeta *meta );
-int psql_write_meta( PGconn *conn, const int id, const char *path, PgMeta meta );
+int psql_write_meta( PGconn *conn, const int64_t id, const char *path, PgMeta meta );
-int psql_create_file( PGconn *conn, const int parent_id, const char *path, const char *new_file, PgMeta meta );
+int psql_create_file( PGconn *conn, const int64_t parent_id, const char *path, const char *new_file, PgMeta meta );
-int psql_read_buf( PGconn *conn, const int id, const char *path, char *buf, const off_t offset, const size_t len, int verbose );
+int psql_read_buf( PGconn *conn, const int64_t id, const char *path, char *buf, const off_t offset, const size_t len, int verbose );
-int psql_readdir( PGconn *conn, const int parent_id, void *buf, fuse_fill_dir_t filler );
+int psql_readdir( PGconn *conn, const int64_t parent_id, void *buf, fuse_fill_dir_t filler );
-int psql_create_dir( PGconn *conn, const int parent_id, const char *path, const char *new_dir, PgMeta meta );
+int psql_create_dir( PGconn *conn, const int64_t parent_id, const char *path, const char *new_dir, PgMeta meta );
-int psql_delete_dir( PGconn *conn, const int id, const char *path );
+int psql_delete_dir( PGconn *conn, const int64_t id, const char *path );
-int psql_delete_file( PGconn *conn, const int id, const char *path );
+int psql_delete_file( PGconn *conn, const int64_t id, const char *path );
-int psql_write_buf( PGconn *conn, const int id, const char *path, const char *buf, const off_t offset, const size_t len, int verbose );
+int psql_write_buf( PGconn *conn, const int64_t id, const char *path, const char *buf, const off_t offset, const size_t len, int verbose );
-int psql_truncate( PGconn *conn, const int id, const char *path, const off_t offset );
+int psql_truncate( PGconn *conn, const int64_t id, const char *path, const off_t offset );
-int psql_rename( PGconn *conn, const int from_id, const int from_parent_id, const int to_parent_id, const char *rename_to, const char *from, const char *to );
+int psql_rename( PGconn *conn, const int64_t from_id, const int64_t from_parent_id, const int64_t to_parent_id, const char *rename_to, const char *from, const char *to );
#endif