summaryrefslogtreecommitdiff
path: root/plugins/bootimg
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-05-19 22:38:17 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-05-19 22:38:17 (GMT)
commit5d09d85a5e606e5ac458abd37e72b73ce52541cb (patch)
tree9e9bd0581cc433fc7d8392a137b5a83dc46a9098 /plugins/bootimg
parent93b452d5258aa07d24ec233f2de930343be1d974 (diff)
Improved the use of the known format object.
Diffstat (limited to 'plugins/bootimg')
-rw-r--r--plugins/bootimg/format.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/bootimg/format.c b/plugins/bootimg/format.c
index 99b8f27..feeb9f7 100644
--- a/plugins/bootimg/format.c
+++ b/plugins/bootimg/format.c
@@ -48,10 +48,10 @@ static void g_bootimg_format_dispose(GBootImgFormat *);
static void g_bootimg_format_finalize(GBootImgFormat *);
/* Indique la désignation interne du format. */
-static const char *g_bootimg_format_get_name(const GBootImgFormat *);
+static char *g_bootimg_format_get_key(const GBootImgFormat *);
/* Fournit une description humaine du format. */
-static const char *g_bootimg_format_get_description(const GBootImgFormat *);
+static char *g_bootimg_format_get_description(const GBootImgFormat *);
/* Assure l'interprétation d'un format en différé. */
static bool g_bootimg_format_analyze(GBootImgFormat *, wgroup_id_t, GtkStatusStack *);
@@ -116,7 +116,7 @@ static void g_bootimg_format_class_init(GBootImgFormatClass *klass)
known = G_KNOWN_FORMAT_CLASS(klass);
- known->get_name = (known_get_name_fc)g_bootimg_format_get_name;
+ known->get_key = (known_get_key_fc)g_bootimg_format_get_key;
known->get_desc = (known_get_desc_fc)g_bootimg_format_get_description;
known->analyze = (known_analyze_fc)g_bootimg_format_analyze;
@@ -213,17 +213,17 @@ GBootImgFormat *g_bootimg_format_new(GBinContent *content)
* *
* Description : Indique la désignation interne du format. *
* *
-* Retour : Description du format. *
+* Retour : Désignation du format. *
* *
* Remarques : - *
* *
******************************************************************************/
-static const char *g_bootimg_format_get_name(const GBootImgFormat *format)
+static char *g_bootimg_format_get_key(const GBootImgFormat *format)
{
- const char *result; /* Désignation à retourner */
+ char *result; /* Désignation à retourner */
- result = "bootimg";
+ result = strdup("bootimg");
return result;
@@ -242,11 +242,11 @@ static const char *g_bootimg_format_get_name(const GBootImgFormat *format)
* *
******************************************************************************/
-static const char *g_bootimg_format_get_description(const GBootImgFormat *format)
+static char *g_bootimg_format_get_description(const GBootImgFormat *format)
{
- const char *result; /* Désignation à retourner */
+ char *result; /* Description à retourner */
- result = "Android Boot Image";
+ result = strdup("Android Boot Image");
return result;