diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/format/known-int.h | 6 | ||||
| -rw-r--r-- | src/format/known.c | 20 | ||||
| -rw-r--r-- | src/format/known.h | 4 | 
3 files changed, 15 insertions, 15 deletions
diff --git a/src/format/known-int.h b/src/format/known-int.h index e4d3bd6..7b79e50 100644 --- a/src/format/known-int.h +++ b/src/format/known-int.h @@ -30,10 +30,10 @@  /* Indique la désignation interne du format. */ -typedef const char * (* known_get_name_fc) (const GKnownFormat *); +typedef char * (* known_get_key_fc) (const GKnownFormat *);  /* Fournit une description humaine du format. */ -typedef const char * (* known_get_desc_fc) (const GKnownFormat *); +typedef char * (* known_get_desc_fc) (const GKnownFormat *);  /*Assure l'interprétation d'un format en différé. */  typedef bool (* known_analyze_fc) (GKnownFormat *, wgroup_id_t, GtkStatusStack *); @@ -53,7 +53,7 @@ struct _GKnownFormatClass  {      GObjectClass parent;                    /* A laisser en premier        */ -    known_get_name_fc get_name;             /* Désignation interne         */ +    known_get_key_fc get_key;               /* Désignation interne         */      known_get_desc_fc get_desc;             /* Désignation humaine         */      known_analyze_fc analyze;               /* Interprétation du format    */ diff --git a/src/format/known.c b/src/format/known.c index 9a3eef6..c1850bc 100644 --- a/src/format/known.c +++ b/src/format/known.c @@ -135,7 +135,7 @@ static void g_known_format_finalize(GKnownFormat *format)  /******************************************************************************  *                                                                             * -*  Paramètres  : format  = description de l'exécutable à consulter.           * +*  Paramètres  : format = description du format connu à consulter.            *  *                content = contenu binaire à parcourir.                       *  *                                                                             *  *  Description : Définit le contenu binaire à analyser.                       * @@ -159,7 +159,7 @@ void g_known_format_set_content(GKnownFormat *format, GBinContent *content)  /******************************************************************************  *                                                                             * -*  Paramètres  : format = description de l'exécutable à consulter.            * +*  Paramètres  : format = description du format connu à consulter.            *  *                                                                             *  *  Description : Fournit une référence vers le contenu binaire analysé.       *  *                                                                             * @@ -184,21 +184,21 @@ GBinContent *g_known_format_get_content(const GKnownFormat *format)  /******************************************************************************  *                                                                             * -*  Paramètres  : format = description de l'exécutable à consulter.            * +*  Paramètres  : format = description du format connu à consulter.            *  *                                                                             *  *  Description : Indique la désignation interne du format.                    *  *                                                                             * -*  Retour      : Description du format.                                       * +*  Retour      : Désignation du format.                                       *  *                                                                             *  *  Remarques   : -                                                            *  *                                                                             *  ******************************************************************************/ -const char *g_known_format_get_name(const GKnownFormat *format) +char *g_known_format_get_key(const GKnownFormat *format)  { -    const char *result;                     /* Désignation à retourner     */ +    char *result;                           /* Désignation à retourner     */ -    result = G_KNOWN_FORMAT_GET_CLASS(format)->get_name(format); +    result = G_KNOWN_FORMAT_GET_CLASS(format)->get_key(format);      return result; @@ -207,7 +207,7 @@ const char *g_known_format_get_name(const GKnownFormat *format)  /******************************************************************************  *                                                                             * -*  Paramètres  : format = description de l'exécutable à consulter.            * +*  Paramètres  : format = description du format connu à consulter.            *  *                                                                             *  *  Description : Fournit une description humaine du format.                   *  *                                                                             * @@ -217,9 +217,9 @@ const char *g_known_format_get_name(const GKnownFormat *format)  *                                                                             *  ******************************************************************************/ -const char *g_known_format_get_description(const GKnownFormat *format) +char *g_known_format_get_description(const GKnownFormat *format)  { -    const char *result;                     /* Désignation à retourner     */ +    char *result;                           /* Description à retourner     */      result = G_KNOWN_FORMAT_GET_CLASS(format)->get_desc(format); diff --git a/src/format/known.h b/src/format/known.h index c89ba4a..2d30147 100644 --- a/src/format/known.h +++ b/src/format/known.h @@ -59,10 +59,10 @@ void g_known_format_set_content(GKnownFormat *, GBinContent *);  GBinContent *g_known_format_get_content(const GKnownFormat *);  /* Indique la désignation interne du format. */ -const char *g_known_format_get_name(const GKnownFormat *); +char *g_known_format_get_key(const GKnownFormat *);  /* Fournit une description humaine du format. */ -const char *g_known_format_get_description(const GKnownFormat *); +char *g_known_format_get_description(const GKnownFormat *);  /* Assure l'interprétation d'un format en différé. */  bool g_known_format_analyze(GKnownFormat *, wgroup_id_t, GtkStatusStack *);  | 
