diff options
Diffstat (limited to 'src/format/dex/dex-int.h')
-rwxr-xr-x | src/format/dex/dex-int.h | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/src/format/dex/dex-int.h b/src/format/dex/dex-int.h index 1803e05..28aadd5 100755 --- a/src/format/dex/dex-int.h +++ b/src/format/dex/dex-int.h @@ -41,12 +41,11 @@ struct _GDexFormat dex_header header; /* En-tête du programme */ - - + GDataType **types; /* Types partagés pour Dalvik */ + GBinVariable **fields; /* Champs de données partagés */ + GBinRoutine **prototypes; /* Routines vierges à décorer */ + GDexMethod **methods; /* Méthodes retrouvées */ GDexClass **classes; /* Classes retrouvées */ - size_t classes_count; /* Nombre de ces classes */ - - }; @@ -72,7 +71,7 @@ GDexClass *g_dex_format_get_class(const GDexFormat *, size_t); /* Procède à la lecture d'une en-tête de programme DEX. */ -bool read_dex_header(const GDexFormat *, off_t *, dex_header *); +bool read_dex_header(const GDexFormat *, vmpa2t *, dex_header *); @@ -80,25 +79,25 @@ bool read_dex_header(const GDexFormat *, off_t *, dex_header *); /* Procède à la lecture d'un identifiant de chaîne DEX. */ -bool read_dex_string_id_item(const GDexFormat *, off_t *, string_id_item *); +bool read_dex_string_id_item(const GDexFormat *, vmpa2t *, string_id_item *); /* Procède à la lecture de proriétés de chaîne DEX. */ -bool read_dex_string_data_item(const GDexFormat *, off_t *, string_data_item *); +bool read_dex_string_data_item(const GDexFormat *, vmpa2t *, string_data_item *); /* Procède à la lecture d'un identifiant de type DEX. */ -bool read_dex_type_id_item(const GDexFormat *, off_t *, type_id_item *); +bool read_dex_type_id_item(const GDexFormat *, vmpa2t *, type_id_item *); /* Procède à la lecture d'une description de prototype. */ -bool read_dex_proto_id_item(const GDexFormat *, off_t *, proto_id_item *); +bool read_dex_proto_id_item(const GDexFormat *, vmpa2t *, proto_id_item *); /* Procède à la lecture d'une description de champ. */ -bool read_dex_field_id_item(const GDexFormat *, off_t *, field_id_item *); +bool read_dex_field_id_item(const GDexFormat *, vmpa2t *, field_id_item *); /* Procède à la lecture d'une description de méthode. */ -bool read_dex_method_id_item(const GDexFormat *, off_t *, method_id_item *); +bool read_dex_method_id_item(const GDexFormat *, vmpa2t *, method_id_item *); /* Procède à la lecture des propriétés d'une classe DEX. */ -bool read_dex_class_def_item(const GDexFormat *, off_t *, class_def_item *); +bool read_dex_class_def_item(const GDexFormat *, vmpa2t *, class_def_item *); @@ -106,19 +105,19 @@ bool read_dex_class_def_item(const GDexFormat *, off_t *, class_def_item *); /* Procède à la lecture d'un champ quelconque DEX. */ -bool read_dex_encoded_field(const GDexFormat *, off_t *, encoded_field *); +bool read_dex_encoded_field(const GDexFormat *, vmpa2t *, encoded_field *); /* Procède à la lecture d'une méthode quelconque DEX. */ -bool read_dex_encoded_method(const GDexFormat *, off_t *, encoded_method *); +bool read_dex_encoded_method(const GDexFormat *, vmpa2t *, encoded_method *); /* Procède à la lecture d'un type DEX. */ -bool read_dex_type_item(const GDexFormat *, off_t *, type_item *); +bool read_dex_type_item(const GDexFormat *, vmpa2t *, type_item *); /* Procède à la lecture d'une liste de types DEX. */ -bool read_dex_type_list(const GDexFormat *, off_t *, type_list *); +bool read_dex_type_list(const GDexFormat *, vmpa2t *, type_list *); /* Procède à la lecture d'un contenu de classe DEX. */ -bool read_dex_class_data_item(const GDexFormat *, off_t *, class_data_item *); +bool read_dex_class_data_item(const GDexFormat *, vmpa2t *, class_data_item *); /* Supprime tous les éléments chargés en mémoire à la lecture. */ void reset_dex_class_data_item(class_data_item *); @@ -129,25 +128,25 @@ void reset_dex_class_data_item(class_data_item *); /* Procède à la lecture d'une association exception <-> code. */ -bool read_dex_encoded_type_addr_pair(const GDexFormat *, off_t *, encoded_type_addr_pair *); +bool read_dex_encoded_type_addr_pair(const GDexFormat *, vmpa2t *, encoded_type_addr_pair *); /* Procède à la lecture d'une association exception <-> code. */ -bool read_dex_encoded_catch_handler(const GDexFormat *, off_t *, encoded_catch_handler *); +bool read_dex_encoded_catch_handler(const GDexFormat *, vmpa2t *, encoded_catch_handler *); /* Supprime tous les éléments chargés en mémoire à la lecture. */ void reset_dex_encoded_catch_handler(encoded_catch_handler *); /* Procède à la lecture d'une association exception <-> code. */ -bool read_dex_encoded_catch_handler_list(const GDexFormat *, off_t *, encoded_catch_handler_list *); +bool read_dex_encoded_catch_handler_list(const GDexFormat *, vmpa2t *, encoded_catch_handler_list *); /* Supprime tous les éléments chargés en mémoire à la lecture. */ void reset_dex_encoded_catch_handler_list(encoded_catch_handler_list *); /* Procède à la lecture d'une association exception <-> code. */ -bool read_dex_try_item(const GDexFormat *, off_t *, try_item *); +bool read_dex_try_item(const GDexFormat *, vmpa2t *, try_item *); /* Procède à la lecture d'une portion de code DEX. */ -bool read_dex_code_item(const GDexFormat *, off_t *, code_item *); +bool read_dex_code_item(const GDexFormat *, vmpa2t *, code_item *); /* Supprime tous les éléments chargés en mémoire à la lecture. */ void reset_dex_code_item(code_item *); @@ -158,19 +157,19 @@ void reset_dex_code_item(code_item *); /* Procède à la lecture d'un contenu d'aiguillage compact. */ -bool read_dex_packed_switch(const GDexFormat *, off_t *, packed_switch *); +bool read_dex_packed_switch(const GDexFormat *, vmpa2t *, packed_switch *); /* Supprime tous les éléments chargés en mémoire à la lecture. */ void reset_dex_packed_switch(packed_switch *); /* Procède à la lecture d'un contenu d'aiguillage dispersé. */ -bool read_dex_sparse_switch(const GDexFormat *, off_t *, sparse_switch *); +bool read_dex_sparse_switch(const GDexFormat *, vmpa2t *, sparse_switch *); /* Supprime tous les éléments chargés en mémoire à la lecture. */ void reset_dex_sparse_switch(sparse_switch *); /* Procède à la lecture d'un contenu d'aiguillage Dex interne. */ -bool read_dex_switch(const GDexFormat *, off_t *, dex_switch *); +bool read_dex_switch(const GDexFormat *, vmpa2t *, dex_switch *); /* Supprime tous les éléments chargés en mémoire à la lecture. */ void reset_dex_switch(dex_switch *); |