diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-04-18 20:49:27 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-04-18 20:49:27 +0200 |
commit | 33e10221f515899116faa30f0d79d34b5f0bfff6 (patch) | |
tree | aca87b4870111c70a7b55b72c9abb827998627fc /pgsql.h | |
parent | 6e8858e71000ef3c72b7ba1d696f8ea6f39f7202 (diff) | |
download | pgfuse-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.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |