summaryrefslogtreecommitdiff
path: root/src/format/dex/method.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-10-01 15:55:39 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-10-01 15:55:39 (GMT)
commitd51fef170f00602744e55a8fdb21a3c7d196696a (patch)
tree5f51c1cdb09669da974c1b99d280a4e7078aab7f /src/format/dex/method.h
parent9aa5b354e83825e2d9843aea742aa62221a2130b (diff)
Rewritten the whole support of DEX file format.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@581 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/dex/method.h')
-rw-r--r--src/format/dex/method.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/format/dex/method.h b/src/format/dex/method.h
index 79e3077..dee33cb 100644
--- a/src/format/dex/method.h
+++ b/src/format/dex/method.h
@@ -67,7 +67,10 @@ typedef enum _DexVariableIndex
GType g_dex_method_get_type(void);
/* Crée une nouvelle représentation de methode issue de code. */
-GDexMethod *g_dex_method_new(const GDexFormat *, const encoded_method *, uleb128_t *);
+GDexMethod *g_dex_method_new(GDexFormat *, const encoded_method *, uleb128_t *);
+
+/* Crée une nouvelle représentation de methode vide. */
+GDexMethod *g_dex_method_new_empty(const GDexFormat *, const method_id_item *);
/* Fournit les indications Dex concernant la méthode. */
const encoded_method *g_dex_method_get_dex_info(const GDexMethod *);
@@ -78,8 +81,8 @@ const code_item *g_dex_method_get_dex_body(const GDexMethod *);
/* Fournit la routine OpenIDA correspondant à la méthode. */
GBinRoutine *g_dex_method_get_routine(const GDexMethod *);
-/* Fournit la zone binaire correspondant à la méthode. */
-//GBinPart *g_dex_method_as_part(const GDexMethod *);
+/* Intègre la méthode en tant que portion de code. */
+void g_dex_method_include_as_portion(const GDexMethod *, GBinPortion *);
/* Indique la position de la méthode au sein du binaire. */
off_t g_dex_method_get_offset(const GDexMethod *);