diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-04-21 22:00:00 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-04-21 22:00:00 (GMT) |
commit | 8eb95d316f7b6fbad0ff798abfe7f70f89e812d2 (patch) | |
tree | 4f310c7ffdb94d48fff236e63c7e6f0ed9f1dee1 /src/analysis/contents/encapsulated.c | |
parent | 315146a49b5570294ca20beca720c4e3f74a86bd (diff) |
Improved the way file formats are detected and loaded.
Diffstat (limited to 'src/analysis/contents/encapsulated.c')
-rw-r--r-- | src/analysis/contents/encapsulated.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/analysis/contents/encapsulated.c b/src/analysis/contents/encapsulated.c index 1fd4203..e307e6b 100644 --- a/src/analysis/contents/encapsulated.c +++ b/src/analysis/contents/encapsulated.c @@ -70,6 +70,9 @@ static void g_encaps_content_dispose(GEncapsContent *); /* Procède à la libération totale de la mémoire. */ static void g_encaps_content_finalize(GEncapsContent *); +/* Donne l'origine d'un contenu binaire. */ +static GBinContent *g_encaps_content_get_root(GEncapsContent *); + /* Fournit le nom associé au contenu binaire. */ static const char *g_encaps_content_describe(const GEncapsContent *, bool); @@ -181,6 +184,8 @@ static void g_encaps_content_init(GEncapsContent *content) static void g_encaps_content_interface_init(GBinContentInterface *iface) { + iface->get_root = (get_content_root_fc)g_encaps_content_get_root; + iface->describe = (describe_content_fc)g_encaps_content_describe; iface->save = (save_content_fc)g_encaps_content_save; @@ -367,6 +372,29 @@ GBinContent *g_encaps_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_encaps_content_get_root(GEncapsContent *content) +{ + GBinContent *result; /* Contenu en place à renvoyer */ + + result = g_binary_content_get_root(content->base); + + 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. * |