diff options
Diffstat (limited to 'pgsql.h')
-rw-r--r-- | pgsql.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -26,6 +26,8 @@ #include <libpq-fe.h> /* for Postgresql database access */ +/* --- metadata stored about a file/directory/synlink --- */ + typedef struct PgMeta { size_t size; /* the size of the file */ mode_t mode; /* type and permissions of file/directory */ @@ -37,6 +39,7 @@ typedef struct PgMeta { int ref_count; /* how many open file handles exist for this file */ } PgMeta; +/* --- transaction management and policies --- */ #define PSQL_BEGIN( T ) \ { \ int __res; \ @@ -64,6 +67,8 @@ int psql_commit( PGconn *conn ); int psql_rollback( PGconn *conn ); +/* --- the filesystem functions --- */ + 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 ); |