diff options
Diffstat (limited to 'src/analysis/content-int.h')
-rw-r--r-- | src/analysis/content-int.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/analysis/content-int.h b/src/analysis/content-int.h index 3475b3f..36c95e7 100644 --- a/src/analysis/content-int.h +++ b/src/analysis/content-int.h @@ -26,16 +26,16 @@ #include "content.h" -#include "storage/serialize-int.h" - +//#include "storage/serialize-int.h" // FIXME +#if 0 // FIXME /* Associe un ensemble d'attributs au contenu binaire. */ typedef void (* set_content_attributes) (GBinContent *, GContentAttributes *); /* Fournit l'ensemble des attributs associés à un contenu. */ typedef GContentAttributes * (* get_content_attributes) (const GBinContent *); - +#endif /* Donne l'origine d'un contenu binaire. */ typedef GBinContent * (* get_content_root_fc) (GBinContent *); @@ -43,16 +43,16 @@ typedef GBinContent * (* get_content_root_fc) (GBinContent *); typedef char * (* describe_content_fc) (const GBinContent *, bool); /* Calcule une empreinte unique (SHA256) pour les données. */ -typedef void (* compute_checksum_fc) (GBinContent *, GChecksum *); +typedef void (* compute_checksum_fc) (const GBinContent *, GChecksum *); /* Détermine le nombre d'octets lisibles. */ typedef phys_t (* compute_size_fc) (const GBinContent *); /* Détermine la position initiale d'un contenu. */ -typedef void (* compute_start_pos_fc) (const GBinContent *, vmpa2t *); +typedef bool (* compute_start_pos_fc) (const GBinContent *, vmpa2t *); /* Détermine la position finale d'un contenu. */ -typedef void (* compute_end_pos_fc) (const GBinContent *, vmpa2t *); +typedef bool (* compute_end_pos_fc) (const GBinContent *, vmpa2t *); /* Avance la tête de lecture d'une certaine quantité de données. */ typedef bool (* seek_fc) (const GBinContent *, vmpa2t *, phys_t); @@ -83,13 +83,13 @@ typedef bool (* read_uleb128_fc) (const GBinContent *, vmpa2t *, uleb128_t *); /* Lit un nombre signé encodé au format LEB128. */ typedef bool (* read_leb128_fc) (const GBinContent *, vmpa2t *, leb128_t *); - +#if 0 // FIXME /* Charge un objet depuis une mémoire tampon. */ typedef bool (* load_content_cb) (GBinContent *, GObjectStorage *, packed_buffer_t *); /* Sauvegarde un objet dans une mémoire tampon. */ typedef bool (* store_content_cb) (const GBinContent *, GObjectStorage *, packed_buffer_t *); - +#endif /* Accès à un contenu binaire quelconque (instance) */ struct _GBinContent @@ -103,8 +103,10 @@ struct _GBinContentClass { GObjectClass parent; /* A laisser en premier */ +#if 0 // FIXME set_content_attributes set_attribs; /* Enregistrement d'attributs */ get_content_attributes get_attribs; /* Fourniture d'attributs */ +#endif get_content_root_fc get_root; /* Renvoie à l'origine */ @@ -130,8 +132,10 @@ struct _GBinContentClass read_uleb128_fc read_uleb128; /* Lecture d'un LEB non signé */ read_leb128_fc read_leb128; /* Lecture d'un LEB signé */ +#if 0 // FIXME load_content_cb load; /* Chargement */ store_content_cb store; /* Enregistrement */ +#endif }; |