diff options
Diffstat (limited to 'src/analysis/contents/memory.c')
-rw-r--r-- | src/analysis/contents/memory.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/analysis/contents/memory.c b/src/analysis/contents/memory.c index a7bdbea..beefe89 100644 --- a/src/analysis/contents/memory.c +++ b/src/analysis/contents/memory.c @@ -73,6 +73,9 @@ static void g_memory_content_dispose(GMemoryContent *); /* Procède à la libération totale de la mémoire. */ static void g_memory_content_finalize(GMemoryContent *); +/* Donne l'origine d'un contenu binaire. */ +static GBinContent *g_memory_content_get_root(GMemoryContent *); + /* Fournit le nom associé au contenu binaire. */ static const char *g_memory_content_describe(const GMemoryContent *, bool); @@ -183,6 +186,8 @@ static void g_memory_content_init(GMemoryContent *content) static void g_memory_content_interface_init(GBinContentInterface *iface) { + iface->get_root = (get_content_root_fc)g_memory_content_get_root; + iface->describe = (describe_content_fc)g_memory_content_describe; iface->save = (save_content_fc)g_memory_content_save; @@ -357,6 +362,29 @@ GBinContent *g_memory_content_new_from_xml(xmlXPathContextPtr context, const cha /****************************************************************************** * * * Paramètres : content = contenu binaire à consulter. * +* * +* Description : Donne l'origine d'un contenu binaire. * +* * +* Retour : Contenu à l'origine du contenu courant. * +* * +* Remarques : - * +* * +******************************************************************************/ + +static GBinContent *g_memory_content_get_root(GMemoryContent *content) +{ + GBinContent *result; /* Contenu en place à renvoyer */ + + result = G_BIN_CONTENT(content); + + return result; + +} + + +/****************************************************************************** +* * +* Paramètres : content = contenu binaire à consulter. * * full = précise s'il s'agit d'une version longue ou non. * * * * Description : Fournit le nom associé au contenu binaire. * |