diff options
Diffstat (limited to 'src/analysis/db/snapshot.h')
-rw-r--r-- | src/analysis/db/snapshot.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/analysis/db/snapshot.h b/src/analysis/db/snapshot.h index 8737f8c..59a2ba7 100644 --- a/src/analysis/db/snapshot.h +++ b/src/analysis/db/snapshot.h @@ -33,6 +33,7 @@ #include <libxml/xpath.h> +#include "cdb.h" #include "protocol.h" #include "misc/snapshot.h" @@ -57,13 +58,13 @@ typedef struct _GDbSnapshotClass GDbSnapshotClass; GType g_db_snapshot_get_type(void); /* Prépare un gestionnaire d'instantanés de bases de données. */ -GDbSnapshot *g_db_snapshot_new_empty(const char *, const char *, GList *); +GDbSnapshot *g_db_snapshot_new_empty(const GCdbArchive *, GList *); /* Charge un gestionnaire d'instantanés de bases de données. */ -GDbSnapshot *g_db_snapshot_new_from_xml(const char *, const char *, xmlDocPtr, xmlXPathContextPtr); +GDbSnapshot *g_db_snapshot_new_from_xml(const GCdbArchive *, xmlDocPtr, xmlXPathContextPtr); /* Associe une base de données aux instantanés chargés. */ -bool g_db_snapshot_fill(GDbSnapshot *, struct archive *); +bool g_db_snapshot_fill(GDbSnapshot *, struct archive *, const GCdbArchive *); /* Enregistre tous les éléments associés aux instantanés. */ DBError g_db_snapshot_save(const GDbSnapshot *, xmlDocPtr, xmlXPathContextPtr, struct archive *); @@ -75,22 +76,22 @@ bool g_db_snapshot_get_current_id(const GDbSnapshot *, snapshot_id_t *); sqlite3 *g_db_snapshot_get_database(const GDbSnapshot *); /* Collecte les descriptions de l'ensemble des instantanés. */ -bool g_db_snapshot_pack_all(const GDbSnapshot *, packed_buffer *); +bool g_db_snapshot_pack_all(const GDbSnapshot *, packed_buffer_t *); /* Actualise la désignation d'un instantané donné. */ -DBError g_db_snapshot_set_name(const GDbSnapshot *, packed_buffer *); +DBError g_db_snapshot_set_name(const GDbSnapshot *, packed_buffer_t *); /* Actualise la description d'un instantané donné. */ -DBError g_db_snapshot_set_desc(const GDbSnapshot *, packed_buffer *); +DBError g_db_snapshot_set_desc(const GDbSnapshot *, packed_buffer_t *); /* Restaure un instantané de l'arborescence. */ -DBError g_db_snapshot_restore(GDbSnapshot *, packed_buffer *, bool *); +DBError g_db_snapshot_restore(GDbSnapshot *, packed_buffer_t *, bool *); /* Crée un nouvel instantanés dans l'arborescence. */ -DBError g_db_snapshot_create(GDbSnapshot *, sqlite3 *); +DBError g_db_snapshot_create(GDbSnapshot *, sqlite3 *, const GCdbArchive *); /* Supprime un instantané dans l'arborescence. */ -DBError g_db_snapshot_remove(GDbSnapshot *, packed_buffer *, bool *); +DBError g_db_snapshot_remove(GDbSnapshot *, packed_buffer_t *, bool *); |