diff options
Diffstat (limited to 'src/analysis/db/analyst.h')
-rw-r--r-- | src/analysis/db/analyst.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/src/analysis/db/analyst.h b/src/analysis/db/analyst.h index d9e90c6..ff189ba 100644 --- a/src/analysis/db/analyst.h +++ b/src/analysis/db/analyst.h @@ -33,9 +33,26 @@ #include "client.h" #include "collection.h" #include "misc/snapshot.h" +#include "../content.h" +#include "../loaded.h" + +/* ------------------------------- GLUES POUR LA GLIB ------------------------------- */ + + +#define G_TYPE_LOADING_STATUS_HINT g_loading_status_hint_type() + + +/* Définit un type GLib pour l'énumération "LoadingStatusHint". */ +GType g_loading_status_hint_type(void); + + + +/* ----------------------- DEFINITION D'ANALYSTE COMME CLIENT ----------------------- */ + + #define G_TYPE_ANALYST_CLIENT g_analyst_client_get_type() #define G_ANALYST_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_ANALYST_CLIENT, GAnalystClient)) #define G_IS_ANALYST_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_ANALYST_CLIENT)) @@ -54,8 +71,11 @@ typedef struct _GAnalystClientClass GAnalystClientClass; /* Indique le type défini pour une description de client à l'écoute. */ GType g_analyst_client_get_type(void); -/* Prépare un client pour une connexion à une BD. */ -GAnalystClient *g_analyst_client_new(const char *, GList *); +/* Met en place un client pour une connexion à une BD. */ +GAnalystClient *g_analyst_client_new(const char *, const char *, GList *, GLoadedContent *); + +/* Envoie un contenu binaire pour conservation côté serveur. */ +bool g_analyst_client_send_content(GAnalystClient *, GBinContent *); /* Effectue une demande de sauvegarde de l'état courant. */ bool g_analyst_client_save(GAnalystClient *); |