summaryrefslogtreecommitdiff
path: root/pgsql.h
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-04-24 15:37:09 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-04-24 15:37:09 +0200
commitc401cd5b5b571712cccc3ebd6e0978c269484703 (patch)
treef87d37951c569f6183265d2ae9b7d6ef1c6a6180 /pgsql.h
parent6fa1446a6d90479751f86d8c6ec449b8e70ddd30 (diff)
downloadpgfuse-c401cd5b5b571712cccc3ebd6e0978c269484703.tar.gz
pgfuse-c401cd5b5b571712cccc3ebd6e0978c269484703.tar.bz2
split get_meta function in two, one working with path, one with id
Diffstat (limited to 'pgsql.h')
-rw-r--r--pgsql.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/pgsql.h b/pgsql.h
index 0214ea4..8ed461d 100644
--- a/pgsql.h
+++ b/pgsql.h
@@ -68,7 +68,11 @@ int psql_rollback( PGconn *conn );
/* --- the filesystem functions --- */
-int psql_get_meta( PGconn *conn, const char *path, PgMeta *meta );
+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_from_path( PGconn *conn, const char *path, PgMeta *meta );
int psql_write_meta( PGconn *conn, const int id, const char *path, PgMeta meta );