summaryrefslogtreecommitdiff
path: root/pgsql.h
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-04-14 18:05:17 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-04-14 18:05:17 +0200
commit3c3a241c374e42206ad0b9f67f66e6b80ff73d1b (patch)
tree209366a289a0aa0cce7788f44ae857b4549cb60f /pgsql.h
parent556900b8356db38a2dc1347bbf042236052b4ba9 (diff)
downloadpgfuse-3c3a241c374e42206ad0b9f67f66e6b80ff73d1b.tar.gz
pgfuse-3c3a241c374e42206ad0b9f67f66e6b80ff73d1b.tar.bz2
mode, uid and gid are stored now
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 5cd2d7e..53474a8 100644
--- a/pgsql.h
+++ b/pgsql.h
@@ -28,19 +28,21 @@
typedef struct PgMeta {
size_t size; /* the size of the file */
mode_t mode; /* type and permissions of file/directory */
+ uid_t uid; /* owner of the file/directory */
+ gid_t gid; /* group owner of the file/directory */
} PgMeta;
int psql_get_meta( PGconn *conn, const char *path, PgMeta *meta );
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, const mode_t mode );
+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_readdir( PGconn *conn, const int 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, const mode_t mode );
+int psql_create_dir( PGconn *conn, const int parent_id, const char *path, const char *new_dir, PgMeta meta );
int psql_delete_dir( PGconn *conn, const int id, const char *path );