summaryrefslogtreecommitdiff
path: root/pgsql.h
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-04-18 20:49:27 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-04-18 20:49:27 +0200
commit33e10221f515899116faa30f0d79d34b5f0bfff6 (patch)
treeaca87b4870111c70a7b55b72c9abb827998627fc /pgsql.h
parent6e8858e71000ef3c72b7ba1d696f8ea6f39f7202 (diff)
downloadpgfuse-33e10221f515899116faa30f0d79d34b5f0bfff6.tar.gz
pgfuse-33e10221f515899116faa30f0d79d34b5f0bfff6.tar.bz2
got a first working version without a maxsize limit
Diffstat (limited to 'pgsql.h')
-rw-r--r--pgsql.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/pgsql.h b/pgsql.h
index 3e14f5f..04e9376 100644
--- a/pgsql.h
+++ b/pgsql.h
@@ -42,7 +42,7 @@ int psql_write_meta( PGconn *conn, const int 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_read_buf( PGconn *conn, const int id, const char *path, char **buf, const size_t len );
+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_readdir( PGconn *conn, const int parent_id, void *buf, fuse_fill_dir_t filler );
@@ -52,6 +52,8 @@ int psql_delete_dir( PGconn *conn, const int id, const char *path );
int psql_delete_file( PGconn *conn, const int id, const char *path );
-int psql_write_buf( PGconn *conn, const int id, const char *path, const char *buf, const size_t len );
+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_truncate( PGconn *conn, const int id, const char *path, const off_t offset );
#endif