diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2021-08-01 20:41:42 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2021-08-01 20:41:42 (GMT) | 
| commit | 802e8d68991e6644486ff14882c5c441e44117e6 (patch) | |
| tree | 23c77af2d7c2aa517d994434af12606f510ab048 /src/analysis/db/snapshot.h | |
| parent | 2ea2e6080eec1b06bbd4607203d34f38b75c80f3 (diff) | |
Build archive temporary filenames from one place.
Diffstat (limited to 'src/analysis/db/snapshot.h')
| -rw-r--r-- | src/analysis/db/snapshot.h | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/src/analysis/db/snapshot.h b/src/analysis/db/snapshot.h index 7f8a82a..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 *); @@ -87,7 +88,7 @@ DBError g_db_snapshot_set_desc(const GDbSnapshot *, packed_buffer_t *);  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_t *, bool *); | 
