diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-05-11 23:42:48 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-05-11 23:42:48 (GMT) |
commit | 96cb6971ee3ca529958b8cb1e8e55a6eb4e60eae (patch) | |
tree | 68e49f325de3e93ef186d3e078da8ddc473aedf7 /src/format/java/pool.h | |
parent | 80dc0ac97987ad9246bee7c47458a015339453bf (diff) |
Reorganized the way the program is built again and added partial support for the JVM.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@63 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/java/pool.h')
-rwxr-xr-x | src/format/java/pool.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/format/java/pool.h b/src/format/java/pool.h index 49d66a7..62d8a84 100755 --- a/src/format/java/pool.h +++ b/src/format/java/pool.h @@ -29,14 +29,28 @@ +/* Types de référence Java */ +typedef enum _JavaRefType +{ + JRT_FIELD, /* Champ */ + JRT_METHOD, /* Méthode */ + JRT_INTERFACE_METHOD /* Méthode d'interface */ + +} JavaRefType; + + /* Charge le réservoir de constantes d'un binaire Java. xs*/ bool load_java_pool(java_format *, off_t *); /* Décharge le réservoir de constantes d'un binaire Java. */ void unload_java_pool(java_format *); +/* Construit une version humaine de référence. */ +char *build_reference_from_java_pool(const java_format *, uint16_t, JavaRefType); + /* Recherche une chaîne de caractères dans le réservoir. */ -bool get_java_pool_ut8_string(java_format *, uint16_t, const char **); +bool get_java_pool_ut8_string(const java_format *, uint16_t, const char **); + #endif /* _FORMAT_JAVA_POOL_H */ |