diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2024-11-24 10:23:10 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2024-11-24 10:23:10 (GMT) |
commit | f58a0e41b2c7266f5e6b521485a9d62246efbb6d (patch) | |
tree | c19e18b83f08930b0262387c02150c79dbda320d /src | |
parent | d7aa3b671b83640006e00e853a439937c0c34dc0 (diff) |
Rename the function used to find section range by name.
Diffstat (limited to 'src')
-rw-r--r-- | src/format/program-int.h | 4 | ||||
-rw-r--r-- | src/format/program.c | 6 | ||||
-rw-r--r-- | src/format/program.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/format/program-int.h b/src/format/program-int.h index 1549a0a..8464fe4 100644 --- a/src/format/program-int.h +++ b/src/format/program-int.h @@ -36,7 +36,7 @@ typedef SourceEndian (* program_get_endian_fc) (const GProgramFormat *); /* Fournit l'emplacement d'une section donnée. */ -typedef bool (* get_range_by_name_fc) (const GProgramFormat *, const char *, mrange_t *); +typedef bool (* find_range_by_name_fc) (const GProgramFormat *, const char *, mrange_t *); /* Format de programme générique (instance) */ @@ -52,7 +52,7 @@ struct _GProgramFormatClass GKnownFormatClass parent; /* A laisser en premier */ program_get_endian_fc get_endian; /* Boutisme employé */ - get_range_by_name_fc get_range_by_name; /* Emplacement de sections */ + find_range_by_name_fc find_range_by_name; /* Emplacement de sections */ }; diff --git a/src/format/program.c b/src/format/program.c index d44f988..9b9df81 100644 --- a/src/format/program.c +++ b/src/format/program.c @@ -480,18 +480,18 @@ SourceEndian g_program_format_get_endianness(const GProgramFormat *format) * * ******************************************************************************/ -bool g_program_format_get_section_range_by_name(const GProgramFormat *format, const char *name, mrange_t *range) +bool g_program_format_find_section_range_by_name(const GProgramFormat *format, const char *name, mrange_t *range) { bool result; /* Bilan à retourner */ GProgramFormatClass *class; /* Classe de l'instance */ class = G_PROGRAM_FORMAT_GET_CLASS(format); - if (class->get_range_by_name == NULL) + if (class->find_range_by_name == NULL) result = false; else - result = class->get_range_by_name(format, name, range); + result = class->find_range_by_name(format, name, range); return result; diff --git a/src/format/program.h b/src/format/program.h index 0eb26ae..12b095c 100644 --- a/src/format/program.h +++ b/src/format/program.h @@ -43,7 +43,7 @@ DECLARE_GTYPE(GProgramFormat, g_program_format, G, PROGRAM_FORMAT); SourceEndian g_program_format_get_endianness(const GProgramFormat *); /* Fournit l'emplacement d'une section donnée. */ -bool g_program_format_get_section_range_by_name(const GProgramFormat *, const char *, mrange_t *); +bool g_program_format_find_section_range_by_name(const GProgramFormat *, const char *, mrange_t *); |