summaryrefslogtreecommitdiff
path: root/src/arch/dalvik/helpers.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-02-10 12:09:38 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-02-10 12:09:38 (GMT)
commitdbd5e7fdfd43fba609fce3fafdcd38d704554d99 (patch)
tree5811a602d34993598eeea5ea56b1efc3b93f9c63 /src/arch/dalvik/helpers.h
parent465488d5b231c2552116a305c48b5fcccea55a09 (diff)
Included indications to load the proper pool constants in Dalvik operands.
Diffstat (limited to 'src/arch/dalvik/helpers.h')
-rw-r--r--src/arch/dalvik/helpers.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/arch/dalvik/helpers.h b/src/arch/dalvik/helpers.h
new file mode 100644
index 0000000..1b57d00
--- /dev/null
+++ b/src/arch/dalvik/helpers.h
@@ -0,0 +1,43 @@
+
+/* Chrysalide - Outil d'analyse de fichiers binaires
+ * helpers.h - prototypes pour l'aide à la mise en place des opérandes Dalvik
+ *
+ * Copyright (C) 2016 Cyrille Bagard
+ *
+ * This file is part of Chrysalide.
+ *
+ * OpenIDA is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * OpenIDA is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Foobar. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+#ifndef _ARCH_DALVIK_HELPERS_H
+#define _ARCH_DALVIK_HELPERS_H
+
+
+#include "operand.h"
+
+
+
+/**
+ * Glues purement internes.
+ */
+
+#define DALVIK_OPT_POOL_STRING DALVIK_OP_POOL(DPT_STRING)
+#define DALVIK_OPT_POOL_TYPE DALVIK_OP_POOL(DPT_TYPE)
+#define DALVIK_OPT_POOL_FIELD DALVIK_OP_POOL(DPT_FIELD)
+#define DALVIK_OPT_POOL_METH DALVIK_OP_POOL(DPT_METHOD)
+
+
+
+#endif /* _ARCH_DALVIK_HELPERS_H */