summaryrefslogtreecommitdiff
path: root/src/glibext/gbinarycursor.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-11-11 18:47:15 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-11-11 18:47:15 (GMT)
commit04f9aebee5249624ccd4173989354cd93474376f (patch)
tree90c23774e2898be78a372650a6d6d219104196fb /src/glibext/gbinarycursor.c
parent77c68b54d4b2970a749eb4a658c32d2a16deacf6 (diff)
Extended the Python bindings.
Diffstat (limited to 'src/glibext/gbinarycursor.c')
-rw-r--r--src/glibext/gbinarycursor.c25
1 files changed, 24 insertions, 1 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);