summaryrefslogtreecommitdiff
path: root/src/glibext
diff options
context:
space:
mode:
Diffstat (limited to 'src/glibext')
-rw-r--r--src/glibext/gbinarycursor.c25
-rw-r--r--src/glibext/gbinarycursor.h5
-rw-r--r--src/glibext/gbinportion.c2
-rw-r--r--src/glibext/generators/hex.c2
-rw-r--r--src/glibext/generators/prologue.c2
-rw-r--r--src/glibext/generators/rborder.c2
6 files changed, 32 insertions, 6 deletions
diff --git a/src/glibext/gbinarycursor.c b/src/glibext/gbinarycursor.c
index 86f931f..5d4c0f8 100644
--- a/src/glibext/gbinarycursor.c
+++ b/src/glibext/gbinarycursor.c
@@ -416,6 +416,29 @@ void g_binary_cursor_set_raw(GBinaryCursor *cursor, bool raw)
/******************************************************************************
* *
+* Paramètres : cursor = suivi de positions à consulter. *
+* *
+* Description : Indique la représentation de l'emplacement. *
+* *
+* Retour : true so la représentation de l'emplacement est brute. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+bool g_binary_cursor_is_raw(const GBinaryCursor *cursor)
+{
+ bool result; /* Statut à retourner */
+
+ result = cursor->raw;
+
+ return result;
+
+}
+
+
+/******************************************************************************
+* *
* Paramètres : cursor = suivi de positions à mettre à jour. *
* addr = emplacement dans le binaire visé. *
* *
@@ -447,7 +470,7 @@ void g_binary_cursor_update(GBinaryCursor *cursor, const vmpa2t *addr)
* *
******************************************************************************/
-void g_binary_cursor_get_info(const GBinaryCursor *cursor, vmpa2t *addr)
+void g_binary_cursor_retrieve(const GBinaryCursor *cursor, vmpa2t *addr)
{
copy_vmpa(addr, &cursor->addr);
diff --git a/src/glibext/gbinarycursor.h b/src/glibext/gbinarycursor.h
index defcb56..082d80f 100644
--- a/src/glibext/gbinarycursor.h
+++ b/src/glibext/gbinarycursor.h
@@ -57,6 +57,9 @@ GType g_binary_cursor_get_type(void);
/* Crée un nouveau suivi de positions dans un panneau. */
GLineCursor *g_binary_cursor_new(void);
+/* Indique la représentation de l'emplacement. */
+bool g_binary_cursor_is_raw(const GBinaryCursor *);
+
/* Précise la représentation de l'emplacement. */
void g_binary_cursor_set_raw(GBinaryCursor *, bool);
@@ -64,7 +67,7 @@ void g_binary_cursor_set_raw(GBinaryCursor *, bool);
void g_binary_cursor_update(GBinaryCursor *, const vmpa2t *);
/* Transmet la position de suivi dans un panneau de chargement. */
-void g_binary_cursor_get_info(const GBinaryCursor *, vmpa2t *);
+void g_binary_cursor_retrieve(const GBinaryCursor *, vmpa2t *);
diff --git a/src/glibext/gbinportion.c b/src/glibext/gbinportion.c
index 0074713..f7b3832 100644
--- a/src/glibext/gbinportion.c
+++ b/src/glibext/gbinportion.c
@@ -1071,7 +1071,7 @@ static int g_binary_portion_contains_cursor(const GBinPortion *portion, size_t i
assert(G_IS_BINARY_CURSOR(cursor));
- g_binary_cursor_get_info(G_BINARY_CURSOR(cursor), &addr);
+ g_binary_cursor_retrieve(G_BINARY_CURSOR(cursor), &addr);
result = cmp_vmpa(&addr, get_mrange_addr(&portion->range));
diff --git a/src/glibext/generators/hex.c b/src/glibext/generators/hex.c
index 48fc5b3..6a0287d 100644
--- a/src/glibext/generators/hex.c
+++ b/src/glibext/generators/hex.c
@@ -386,7 +386,7 @@ static int g_hex_generator_contains_cursor(const GHexGenerator *generator, size_
assert(G_IS_BINARY_CURSOR(cursor));
- g_binary_cursor_get_info(G_BINARY_CURSOR(cursor), &addr);
+ g_binary_cursor_retrieve(G_BINARY_CURSOR(cursor), &addr);
init_vmpa(&pos, generator->bytes_per_line * index, VMPA_NO_VIRTUAL);
diff --git a/src/glibext/generators/prologue.c b/src/glibext/generators/prologue.c
index 63d326b..133220d 100644
--- a/src/glibext/generators/prologue.c
+++ b/src/glibext/generators/prologue.c
@@ -328,7 +328,7 @@ static int g_intro_generator_contains_cursor(const GIntroGenerator *generator, s
assert(G_IS_BINARY_CURSOR(cursor));
- g_binary_cursor_get_info(G_BINARY_CURSOR(cursor), &addr);
+ g_binary_cursor_retrieve(G_BINARY_CURSOR(cursor), &addr);
result = cmp_vmpa(&addr, &generator->addr);
diff --git a/src/glibext/generators/rborder.c b/src/glibext/generators/rborder.c
index 640fa2d..7d90f79 100644
--- a/src/glibext/generators/rborder.c
+++ b/src/glibext/generators/rborder.c
@@ -305,7 +305,7 @@ static int g_border_generator_contains_cursor(const GBorderGenerator *generator,
assert(G_IS_BINARY_CURSOR(cursor));
- g_binary_cursor_get_info(G_BINARY_CURSOR(cursor), &addr);
+ g_binary_cursor_retrieve(G_BINARY_CURSOR(cursor), &addr);
result = cmp_vmpa(&addr, &generator->addr);