summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2021-06-01 22:32:50 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2021-06-01 22:32:50 (GMT)
commit9eab0a0903303d3c93872e7e4b6b1cb774b69b03 (patch)
treeae8594cae830118ca3a92ee60242490e58c14a9e /src
parent1865cce4d51b9c7a6fb718f4e2c034a57365ad1b (diff)
Improve the code quality by renaming the type for packed buffers.
Diffstat (limited to 'src')
-rw-r--r--src/analysis/db/admin.c10
-rw-r--r--src/analysis/db/analyst.c30
-rw-r--r--src/analysis/db/cdb.c22
-rw-r--r--src/analysis/db/client.c4
-rw-r--r--src/analysis/db/collection.c16
-rw-r--r--src/analysis/db/collection.h16
-rw-r--r--src/analysis/db/item-int.h4
-rw-r--r--src/analysis/db/item.c12
-rw-r--r--src/analysis/db/item.h4
-rw-r--r--src/analysis/db/items/bookmark.c8
-rw-r--r--src/analysis/db/items/comment.c8
-rw-r--r--src/analysis/db/items/move.c8
-rw-r--r--src/analysis/db/items/switcher.c8
-rw-r--r--src/analysis/db/misc/rlestr.c4
-rw-r--r--src/analysis/db/misc/rlestr.h4
-rw-r--r--src/analysis/db/misc/snapshot.c8
-rw-r--r--src/analysis/db/misc/snapshot.h8
-rw-r--r--src/analysis/db/misc/timestamp.c4
-rw-r--r--src/analysis/db/misc/timestamp.h4
-rw-r--r--src/analysis/db/server.c12
-rw-r--r--src/analysis/db/snapshot.c14
-rw-r--r--src/analysis/db/snapshot.h10
-rw-r--r--src/analysis/storage/serialize-int.h4
-rw-r--r--src/analysis/storage/serialize.c4
-rw-r--r--src/analysis/storage/serialize.h4
-rw-r--r--src/analysis/storage/storage.c8
-rw-r--r--src/analysis/storage/storage.h4
-rw-r--r--src/analysis/storage/tpmem.c8
-rw-r--r--src/analysis/storage/tpmem.h4
-rw-r--r--src/analysis/type-int.h4
-rw-r--r--src/analysis/type.c16
-rw-r--r--src/analysis/types/array.c8
-rw-r--r--src/analysis/types/basic.c8
-rw-r--r--src/analysis/types/cse.c8
-rw-r--r--src/analysis/types/encaps.c8
-rw-r--r--src/analysis/types/expr.c8
-rw-r--r--src/analysis/types/literal.c8
-rw-r--r--src/analysis/types/override.c8
-rw-r--r--src/analysis/types/proto.c8
-rw-r--r--src/analysis/types/template.c8
-rw-r--r--src/arch/instruction-int.h4
-rw-r--r--src/arch/instruction.c18
-rw-r--r--src/arch/instruction.h4
-rw-r--r--src/arch/instructions/raw.c8
-rw-r--r--src/arch/instructions/undefined.c8
-rw-r--r--src/arch/meta.c8
-rw-r--r--src/arch/operand-int.h4
-rw-r--r--src/arch/operand.c12
-rw-r--r--src/arch/operand.h4
-rw-r--r--src/arch/operands/feeder-int.h4
-rw-r--r--src/arch/operands/feeder.c4
-rw-r--r--src/arch/operands/feeder.h4
-rw-r--r--src/arch/operands/immediate.c16
-rw-r--r--src/arch/operands/proxy.c8
-rw-r--r--src/arch/operands/register.c12
-rw-r--r--src/arch/operands/target.c8
-rw-r--r--src/arch/register-int.h4
-rw-r--r--src/arch/register.c12
-rw-r--r--src/arch/register.h4
-rw-r--r--src/arch/storage.c18
-rw-r--r--src/arch/storage.h10
-rw-r--r--src/arch/vmpa.c8
-rw-r--r--src/arch/vmpa.h8
-rw-r--r--src/common/packed.h3
-rw-r--r--src/format/strsym.c8
-rw-r--r--src/glibext/gbinarycursor.c8
-rw-r--r--src/glibext/glinecursor-int.h4
-rw-r--r--src/glibext/glinecursor.c4
-rw-r--r--src/glibext/glinecursor.h4
69 files changed, 282 insertions, 285 deletions
diff --git a/src/analysis/db/admin.c b/src/analysis/db/admin.c
index 771a912..024cbed 100644
--- a/src/analysis/db/admin.c
+++ b/src/analysis/db/admin.c
@@ -75,7 +75,7 @@ static void g_admin_client_finalize(GAdminClient *);
static void *g_admin_client_update(GAdminClient *);
/* Met à jour la liste des binaires existants. */
-static bool g_admin_client_update_existing_binaries(GAdminClient *, packed_buffer *);
+static bool g_admin_client_update_existing_binaries(GAdminClient *, packed_buffer_t *);
@@ -234,11 +234,11 @@ static void *g_admin_client_update(GAdminClient *client)
{
GHubClient *base; /* Base de l'instance */
struct pollfd fds[2]; /* Surveillance des flux */
- packed_buffer in_pbuf; /* Tampon de réception */
+ packed_buffer_t in_pbuf; /* Tampon de réception */
int ret; /* Bilan d'un appel */
bool status; /* Bilan d'une opération */
uint32_t command; /* Commande de la requête */
- //packed_buffer out_pbuf; /* Tampon d'émission */
+ //packed_buffer_t out_pbuf; /* Tampon d'émission */
char *msg; /* Message d'erreur à imprimer */
base = G_HUB_CLIENT(client);
@@ -350,7 +350,7 @@ static void *g_admin_client_update(GAdminClient *client)
bool g_admin_client_request_existing_binaries(GAdminClient *client)
{
bool result; /* Bilan partiel à remonter */
- packed_buffer out_pbuf; /* Tampon d'émission */
+ packed_buffer_t out_pbuf; /* Tampon d'émission */
SSL *tls_fd; /* Canal de communication SSL */
init_packed_buffer(&out_pbuf);
@@ -391,7 +391,7 @@ bool g_admin_client_request_existing_binaries(GAdminClient *client)
* *
******************************************************************************/
-static bool g_admin_client_update_existing_binaries(GAdminClient *client, packed_buffer *pbuf)
+static bool g_admin_client_update_existing_binaries(GAdminClient *client, packed_buffer_t *pbuf)
{
bool result; /* Validité à retourner */
size_t i; /* Boucle de parcours */
diff --git a/src/analysis/db/analyst.c b/src/analysis/db/analyst.c
index a828c11..87a60d3 100644
--- a/src/analysis/db/analyst.c
+++ b/src/analysis/db/analyst.c
@@ -82,10 +82,10 @@ static void g_analyst_client_finalize(GAnalystClient *);
static void *g_analyst_client_update(GAnalystClient *);
/* Met à jour la liste des instantanés courants. */
-static bool g_analyst_client_update_snapshots(GAnalystClient *, packed_buffer *);
+static bool g_analyst_client_update_snapshots(GAnalystClient *, packed_buffer_t *);
/* Met à jour l'identifiant de l'instantané courant. */
-static bool g_analyst_client_update_current_snapshot(GAnalystClient *, packed_buffer *);
+static bool g_analyst_client_update_current_snapshot(GAnalystClient *, packed_buffer_t *);
@@ -268,10 +268,10 @@ GAnalystClient *g_analyst_client_new(const char *hash, GList *collections)
static void *g_analyst_client_update(GAnalystClient *client)
{
GHubClient *base; /* Base de l'instance */
- packed_buffer out_pbuf; /* Tampon d'émission */
+ packed_buffer_t out_pbuf; /* Tampon d'émission */
bool status; /* Bilan d'une opération */
struct pollfd fds[2]; /* Surveillance des flux */
- packed_buffer in_pbuf; /* Tampon de réception */
+ packed_buffer_t in_pbuf; /* Tampon de réception */
int ret; /* Bilan d'un appel */
uint32_t tmp32; /* Valeur sur 32 bits */
uint32_t command; /* Commande de la requête */
@@ -499,7 +499,7 @@ static void *g_analyst_client_update(GAnalystClient *client)
* *
******************************************************************************/
-static bool g_analyst_client_update_snapshots(GAnalystClient *client, packed_buffer *pbuf)
+static bool g_analyst_client_update_snapshots(GAnalystClient *client, packed_buffer_t *pbuf)
{
bool result; /* Validité à retourner */
size_t i; /* Boucle de parcours */
@@ -578,7 +578,7 @@ static bool g_analyst_client_update_snapshots(GAnalystClient *client, packed_buf
* *
******************************************************************************/
-static bool g_analyst_client_update_current_snapshot(GAnalystClient *client, packed_buffer *pbuf)
+static bool g_analyst_client_update_current_snapshot(GAnalystClient *client, packed_buffer_t *pbuf)
{
bool result; /* Validité à retourner */
snapshot_id_t id; /* Identifiant d'instantané */
@@ -620,7 +620,7 @@ static bool g_analyst_client_update_current_snapshot(GAnalystClient *client, pac
bool g_analyst_client_save(GAnalystClient *client)
{
bool result; /* Bilan partiel à remonter */
- packed_buffer out_pbuf; /* Tampon d'émission */
+ packed_buffer_t out_pbuf; /* Tampon d'émission */
SSL *tls_fd; /* Canal de communication SSL */
init_packed_buffer(&out_pbuf);
@@ -664,7 +664,7 @@ bool g_analyst_client_save(GAnalystClient *client)
bool g_analyst_client_add_item(GAnalystClient *client, const GDbItem *item)
{
bool result; /* Bilan partiel à remonter */
- packed_buffer out_pbuf; /* Tampon d'émission */
+ packed_buffer_t out_pbuf; /* Tampon d'émission */
SSL *tls_fd; /* Canal de communication SSL */
DBFeatures feature; /* Domaine de fonctionnalité */
GDbCollection *collec; /* Collection visée au final */
@@ -721,7 +721,7 @@ bool g_analyst_client_add_item(GAnalystClient *client, const GDbItem *item)
bool g_analyst_client_set_last_active(GAnalystClient *client, timestamp_t timestamp)
{
bool result; /* Bilan partiel à remonter */
- packed_buffer out_pbuf; /* Tampon d'émission */
+ packed_buffer_t out_pbuf; /* Tampon d'émission */
SSL *tls_fd; /* Canal de communication SSL */
init_packed_buffer(&out_pbuf);
@@ -846,7 +846,7 @@ bool g_analyst_client_get_current_snapshot(GAnalystClient *client, snapshot_id_t
bool g_analyst_client_set_current_snapshot(GAnalystClient *client, const snapshot_id_t *id)
{
bool result; /* Bilan partiel à remonter */
- packed_buffer out_pbuf; /* Tampon d'émission */
+ packed_buffer_t out_pbuf; /* Tampon d'émission */
SSL *tls_fd; /* Canal de communication SSL */
init_packed_buffer(&out_pbuf);
@@ -894,7 +894,7 @@ bool g_analyst_client_set_current_snapshot(GAnalystClient *client, const snapsho
bool g_analyst_client_set_snapshot_name(GAnalystClient *client, const snapshot_id_t *id, const char *name)
{
bool result; /* Bilan partiel à remonter */
- packed_buffer out_pbuf; /* Tampon d'émission */
+ packed_buffer_t out_pbuf; /* Tampon d'émission */
SSL *tls_fd; /* Canal de communication SSL */
rle_string string; /* Chaîne à transmettre */
@@ -953,7 +953,7 @@ bool g_analyst_client_set_snapshot_name(GAnalystClient *client, const snapshot_i
bool g_analyst_client_set_snapshot_desc(GAnalystClient *client, const snapshot_id_t *id, const char *desc)
{
bool result; /* Bilan partiel à remonter */
- packed_buffer out_pbuf; /* Tampon d'émission */
+ packed_buffer_t out_pbuf; /* Tampon d'émission */
SSL *tls_fd; /* Canal de communication SSL */
rle_string string; /* Chaîne à transmettre */
@@ -1011,7 +1011,7 @@ bool g_analyst_client_set_snapshot_desc(GAnalystClient *client, const snapshot_i
bool g_analyst_client_restore_snapshot(GAnalystClient *client, const snapshot_id_t *id)
{
bool result; /* Bilan partiel à remonter */
- packed_buffer out_pbuf; /* Tampon d'émission */
+ packed_buffer_t out_pbuf; /* Tampon d'émission */
SSL *tls_fd; /* Canal de communication SSL */
init_packed_buffer(&out_pbuf);
@@ -1057,7 +1057,7 @@ bool g_analyst_client_restore_snapshot(GAnalystClient *client, const snapshot_id
bool g_analyst_client_create_snapshot(GAnalystClient *client)
{
bool result; /* Bilan partiel à remonter */
- packed_buffer out_pbuf; /* Tampon d'émission */
+ packed_buffer_t out_pbuf; /* Tampon d'émission */
SSL *tls_fd; /* Canal de communication SSL */
init_packed_buffer(&out_pbuf);
@@ -1102,7 +1102,7 @@ bool g_analyst_client_create_snapshot(GAnalystClient *client)
bool g_analyst_client_remove_snapshot(GAnalystClient *client, const snapshot_id_t *id, bool rec)
{
bool result; /* Bilan partiel à remonter */
- packed_buffer out_pbuf; /* Tampon d'émission */
+ packed_buffer_t out_pbuf; /* Tampon d'émission */
SSL *tls_fd; /* Canal de communication SSL */
init_packed_buffer(&out_pbuf);
diff --git a/src/analysis/db/cdb.c b/src/analysis/db/cdb.c
index 8d589b3..d2997c7 100644
--- a/src/analysis/db/cdb.c
+++ b/src/analysis/db/cdb.c
@@ -153,13 +153,13 @@ static void _g_cdb_archive_remove_client(GCdbArchive *, size_t);
static void g_cdb_archive_remove_client(GCdbArchive *, size_t);
/* Envoie un paquet de données constitué à tous les clients. */
-static void g_cdb_archive_send_reply_to_all_clients(GCdbArchive *, packed_buffer *);
+static void g_cdb_archive_send_reply_to_all_clients(GCdbArchive *, packed_buffer_t *);
/* Envoie à tous les clients la nouvelle liste d'instantanés. */
-static bool g_cdb_archive_send_snapshot_update(GCdbArchive *, packed_buffer *);
+static bool g_cdb_archive_send_snapshot_update(GCdbArchive *, packed_buffer_t *);
/* Envoie à tous les clients le nouvel instantané courant. */
-static bool g_cdb_archive_send_snapshot_change(GCdbArchive *, packed_buffer *);
+static bool g_cdb_archive_send_snapshot_change(GCdbArchive *, packed_buffer_t *);
@@ -797,7 +797,7 @@ static void g_cdb_archive_register_signals(GCdbArchive *archive)
static void on_collection_extended(GDbCollection *collec, GDbItem *item, GCdbArchive *archive)
{
- packed_buffer pbuf; /* Tampon d'émission */
+ packed_buffer_t pbuf; /* Tampon d'émission */
size_t i; /* Boucle de parcours */
bool status; /* Bilan d'un envoi de retour */
@@ -842,12 +842,12 @@ static void *g_cdb_archive_process(GCdbArchive *archive)
nfds_t nfds; /* Quantité de ces flux */
nfds_t i; /* Boucle de parcours */
int ret; /* Bilan d'un appel */
- packed_buffer in_pbuf; /* Tampon de réception */
+ packed_buffer_t in_pbuf; /* Tampon de réception */
uint32_t tmp32; /* Valeur sur 32 bits */
bool status; /* Bilan de lecture initiale */
uint32_t command; /* Commande de la requête */
DBError error; /* Bilan d'une opération */
- packed_buffer out_pbuf; /* Tampon d'émission */
+ packed_buffer_t out_pbuf; /* Tampon d'émission */
GDbCollection *collec; /* Collection visée au final */
bool reload; /* Besoin de rechargement */
char *msg; /* Erreur à faire remonter */
@@ -1327,7 +1327,7 @@ static void g_cdb_archive_remove_client(GCdbArchive *archive, size_t index)
* *
******************************************************************************/
-static void g_cdb_archive_send_reply_to_all_clients(GCdbArchive *archive, packed_buffer *pbuf)
+static void g_cdb_archive_send_reply_to_all_clients(GCdbArchive *archive, packed_buffer_t *pbuf)
{
size_t i; /* Boucle de parcours */
bool status; /* Bilan d'une émission */
@@ -1366,11 +1366,11 @@ static void g_cdb_archive_send_reply_to_all_clients(GCdbArchive *archive, packed
* *
******************************************************************************/
-static bool g_cdb_archive_send_snapshot_update(GCdbArchive *archive, packed_buffer *pbuf)
+static bool g_cdb_archive_send_snapshot_update(GCdbArchive *archive, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
bool do_send; /* Réalisation de l'émission */
- packed_buffer out_pbuf; /* Tampon d'émission */
+ packed_buffer_t out_pbuf; /* Tampon d'émission */
do_send = (pbuf == NULL);
@@ -1415,11 +1415,11 @@ static bool g_cdb_archive_send_snapshot_update(GCdbArchive *archive, packed_buff
* *
******************************************************************************/
-static bool g_cdb_archive_send_snapshot_change(GCdbArchive *archive, packed_buffer *pbuf)
+static bool g_cdb_archive_send_snapshot_change(GCdbArchive *archive, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
bool do_send; /* Réalisation de l'émission */
- packed_buffer out_pbuf; /* Tampon d'émission */
+ packed_buffer_t out_pbuf; /* Tampon d'émission */
snapshot_id_t id; /* Identifiant d'instantané */
do_send = (pbuf == NULL);
diff --git a/src/analysis/db/client.c b/src/analysis/db/client.c
index 1f47eea..aa1407c 100644
--- a/src/analysis/db/client.c
+++ b/src/analysis/db/client.c
@@ -393,9 +393,9 @@ static bool g_hub_client_start_common(GHubClient *client, char *desc)
int ret; /* Bilan d'un appel */
char *rootdir; /* Racine pour le client */
GHubClientClass *class; /* Classe du client connecté */
- packed_buffer out_pbuf; /* Tampon d'émission */
+ packed_buffer_t out_pbuf; /* Tampon d'émission */
bool status; /* Bilan d'une opération */
- packed_buffer in_pbuf; /* Tampon de réception */
+ packed_buffer_t in_pbuf; /* Tampon de réception */
uint32_t data; /* Mot de données lues */
DBError error; /* Validation de la connexion */
diff --git a/src/analysis/db/collection.c b/src/analysis/db/collection.c
index dcab73e..52476dd 100644
--- a/src/analysis/db/collection.c
+++ b/src/analysis/db/collection.c
@@ -324,7 +324,7 @@ const char *g_db_collection_get_name(const GDbCollection *collec)
* *
******************************************************************************/
-bool _g_db_collection_unpack(GDbCollection *collec, packed_buffer *pbuf, DBAction *action, GDbItem **dest)
+bool _g_db_collection_unpack(GDbCollection *collec, packed_buffer_t *pbuf, DBAction *action, GDbItem **dest)
{
bool result; /* Bilan à faire remonter */
uint32_t tmp32; /* Valeur sur 32 bits */
@@ -376,7 +376,7 @@ bool _g_db_collection_unpack(GDbCollection *collec, packed_buffer *pbuf, DBActio
* *
******************************************************************************/
-bool g_db_collection_unpack(GDbCollection *collec, packed_buffer *pbuf, sqlite3 *db)
+bool g_db_collection_unpack(GDbCollection *collec, packed_buffer_t *pbuf, sqlite3 *db)
{
bool result; /* Bilan à faire remonter */
DBAction action; /* Commande de la requête */
@@ -460,7 +460,7 @@ bool g_db_collection_unpack(GDbCollection *collec, packed_buffer *pbuf, sqlite3
* *
******************************************************************************/
-bool g_db_collection_pack(GDbCollection *collec, packed_buffer *pbuf, DBAction action, const GDbItem *item)
+bool g_db_collection_pack(GDbCollection *collec, packed_buffer_t *pbuf, DBAction action, const GDbItem *item)
{
bool result; /* Bilan à retourner */
@@ -493,7 +493,7 @@ bool g_db_collection_pack(GDbCollection *collec, packed_buffer *pbuf, DBAction a
* *
******************************************************************************/
-bool g_db_collection_pack_all_updates(GDbCollection *collec, packed_buffer *pbuf)
+bool g_db_collection_pack_all_updates(GDbCollection *collec, packed_buffer_t *pbuf)
{
bool result; /* Bilan à renvoyer */
size_t i; /* Boucle de parcours */
@@ -779,7 +779,7 @@ bool g_db_collection_add_item(GDbCollection *collec, GDbItem *item)
* *
******************************************************************************/
-bool g_db_collection_drop_disabled_items(GDbCollection *collec, packed_buffer *pbuf)
+bool g_db_collection_drop_disabled_items(GDbCollection *collec, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
size_t i; /* Boucle de parcours */
@@ -1021,7 +1021,7 @@ static size_t g_db_collection_find_by_timestamp(GDbCollection *collec, timestamp
* *
******************************************************************************/
-bool g_db_collection_disable_at(GDbCollection *collec, timestamp_t timestamp, sqlite3 *db, packed_buffer *pbuf)
+bool g_db_collection_disable_at(GDbCollection *collec, timestamp_t timestamp, sqlite3 *db, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
size_t start; /* Début de la zone à changer */
@@ -1450,7 +1450,7 @@ void lock_unlock_collections(GList *list, bool write, bool lock)
* *
******************************************************************************/
-bool pack_all_collection_updates(GList *list, packed_buffer *pbuf)
+bool pack_all_collection_updates(GList *list, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GList *iter; /* Boucle de parcours */
@@ -1496,7 +1496,7 @@ bool pack_all_collection_updates(GList *list, packed_buffer *pbuf)
* *
******************************************************************************/
-bool update_activity_in_collections(GList *list, packed_buffer *inbuf, packed_buffer *outbuf, sqlite3 *db)
+bool update_activity_in_collections(GList *list, packed_buffer_t *inbuf, packed_buffer_t *outbuf, sqlite3 *db)
{
bool result; /* Résultat global à renvoyer */
bool status; /* Bilan de lecture initiale */
diff --git a/src/analysis/db/collection.h b/src/analysis/db/collection.h
index 6c14624..6d7b369 100644
--- a/src/analysis/db/collection.h
+++ b/src/analysis/db/collection.h
@@ -69,16 +69,16 @@ const char *g_db_collection_get_name(const GDbCollection *);
/* Réceptionne un élément depuis une requête réseau. */
-bool _g_db_collection_unpack(GDbCollection *, packed_buffer *, DBAction *, GDbItem **);
+bool _g_db_collection_unpack(GDbCollection *, packed_buffer_t *, DBAction *, GDbItem **);
/* Réceptionne et traite une requête réseau pour collection. */
-bool g_db_collection_unpack(GDbCollection *, packed_buffer *, sqlite3 *);
+bool g_db_collection_unpack(GDbCollection *, packed_buffer_t *, sqlite3 *);
/* Envoie pour traitement une requête réseau pour collection. */
-bool g_db_collection_pack(GDbCollection *, packed_buffer *, DBAction, const GDbItem *);
+bool g_db_collection_pack(GDbCollection *, packed_buffer_t *, DBAction, const GDbItem *);
/* Envoie pour mise à jour tous les éléments courants. */
-bool g_db_collection_pack_all_updates(GDbCollection *, packed_buffer *);
+bool g_db_collection_pack_all_updates(GDbCollection *, packed_buffer_t *);
@@ -111,13 +111,13 @@ typedef enum _ActiveItemChange
bool g_db_collection_add_item(GDbCollection *, GDbItem *);
/* Procède au retrait des éléments désactivés de la collection. */
-bool g_db_collection_drop_disabled_items(GDbCollection *, packed_buffer *);
+bool g_db_collection_drop_disabled_items(GDbCollection *, packed_buffer_t *);
/* Procède au retrait d'un élément dans la collection. */
bool g_db_collection_remove_item(GDbCollection *, const GDbItem *);
/* Désactive les éléments en aval d'un horodatage donné. */
-bool g_db_collection_disable_at(GDbCollection *, timestamp_t, sqlite3 *, packed_buffer *);
+bool g_db_collection_disable_at(GDbCollection *, timestamp_t, sqlite3 *, packed_buffer_t *);
/* Prend acte d'un changement d'état d'un élément de collection. */
bool g_db_collection_update_item_state(GDbCollection *, const GDbItem *);
@@ -154,10 +154,10 @@ void lock_unlock_collections(GList *, bool, bool);
#define runlock_collections(lst) lock_unlock_collections(lst, false, false);
/* Collecte les informations utiles pour un nouvel arrivant. */
-bool pack_all_collection_updates(GList *, packed_buffer *);
+bool pack_all_collection_updates(GList *, packed_buffer_t *);
/* Met à jour les statuts d'activité des éléments. */
-bool update_activity_in_collections(GList *, packed_buffer *, packed_buffer *, sqlite3 *);
+bool update_activity_in_collections(GList *, packed_buffer_t *, packed_buffer_t *, sqlite3 *);
diff --git a/src/analysis/db/item-int.h b/src/analysis/db/item-int.h
index 4b37844..871a65e 100644
--- a/src/analysis/db/item-int.h
+++ b/src/analysis/db/item-int.h
@@ -46,10 +46,10 @@ typedef gboolean (* cmp_db_item_key_fc) (const GDbItem *, const GDbItem *);
typedef gint (* cmp_db_item_fc) (const GDbItem *, const GDbItem *);
/* Importe la définition d'une base d'éléments pour collection. */
-typedef bool (* unpack_db_item_fc) (GDbItem *, packed_buffer *);
+typedef bool (* unpack_db_item_fc) (GDbItem *, packed_buffer_t *);
/* Exporte la définition d'une base d'éléments pour collection. */
-typedef bool (* pack_db_item_fc) (const GDbItem *, packed_buffer *);
+typedef bool (* pack_db_item_fc) (const GDbItem *, packed_buffer_t *);
/* Construit la description humaine d'un signet sur un tampon. */
typedef char * (* build_item_label_fc) (const GDbItem *);
diff --git a/src/analysis/db/item.c b/src/analysis/db/item.c
index 16866ab..6ee59a7 100644
--- a/src/analysis/db/item.c
+++ b/src/analysis/db/item.c
@@ -49,10 +49,10 @@ static void g_db_item_dispose(GDbItem *);
static void g_db_item_finalize(GDbItem *);
/* Importe la définition d'une base d'éléments pour collection. */
-static bool _g_db_item_unpack(GDbItem *, packed_buffer *);
+static bool _g_db_item_unpack(GDbItem *, packed_buffer_t *);
/* Exporte la définition d'une base d'éléments pour collection. */
-static bool _g_db_item_pack(const GDbItem *, packed_buffer *);
+static bool _g_db_item_pack(const GDbItem *, packed_buffer_t *);
@@ -376,7 +376,7 @@ gint g_db_item_cmp(const GDbItem *a, const GDbItem *b)
* *
******************************************************************************/
-static bool _g_db_item_unpack(GDbItem *item, packed_buffer *pbuf)
+static bool _g_db_item_unpack(GDbItem *item, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
uint32_t flags; /* Propriétés de l'élément */
@@ -410,7 +410,7 @@ static bool _g_db_item_unpack(GDbItem *item, packed_buffer *pbuf)
* *
******************************************************************************/
-bool g_db_item_unpack(GDbItem *item, packed_buffer *pbuf)
+bool g_db_item_unpack(GDbItem *item, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -434,7 +434,7 @@ bool g_db_item_unpack(GDbItem *item, packed_buffer *pbuf)
* *
******************************************************************************/
-static bool _g_db_item_pack(const GDbItem *item, packed_buffer *pbuf)
+static bool _g_db_item_pack(const GDbItem *item, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
DbItemFlags flags; /* Propriétés de l'élément */
@@ -468,7 +468,7 @@ static bool _g_db_item_pack(const GDbItem *item, packed_buffer *pbuf)
* *
******************************************************************************/
-bool g_db_item_pack(const GDbItem *item, packed_buffer *pbuf)
+bool g_db_item_pack(const GDbItem *item, packed_buffer_t *pbuf)
{
return G_DB_ITEM_GET_CLASS(item)->pack(item, pbuf);
diff --git a/src/analysis/db/item.h b/src/analysis/db/item.h
index a4eaffa..e34523c 100644
--- a/src/analysis/db/item.h
+++ b/src/analysis/db/item.h
@@ -93,10 +93,10 @@ int g_db_item_cmp_with_timestamp(const timestamp_t *, const GDbItem **);
gint g_db_item_cmp(const GDbItem *, const GDbItem *);
/* Importe la définition d'une base d'éléments pour collection. */
-bool g_db_item_unpack(GDbItem *, packed_buffer *);
+bool g_db_item_unpack(GDbItem *, packed_buffer_t *);
/* Exporte la définition d'une base d'éléments pour collection. */
-bool g_db_item_pack(const GDbItem *, packed_buffer *);
+bool g_db_item_pack(const GDbItem *, packed_buffer_t *);
/* Applique un élément de collection sur un binaire. */
bool g_db_item_apply(GDbItem *, GLoadedBinary *);
diff --git a/src/analysis/db/items/bookmark.c b/src/analysis/db/items/bookmark.c
index 0a64c89..3610d96 100644
--- a/src/analysis/db/items/bookmark.c
+++ b/src/analysis/db/items/bookmark.c
@@ -81,10 +81,10 @@ static gboolean g_db_bookmark_cmp_key(const GDbBookmark *, const GDbBookmark *);
static gint g_db_bookmark_cmp(const GDbBookmark *, const GDbBookmark *);
/* Importe la définition d'un signet dans un flux réseau. */
-static bool g_db_bookmark_unpack(GDbBookmark *, packed_buffer *);
+static bool g_db_bookmark_unpack(GDbBookmark *, packed_buffer_t *);
/* Exporte la définition d'un signet dans un flux réseau. */
-static bool g_db_bookmark_pack(const GDbBookmark *, packed_buffer *);
+static bool g_db_bookmark_pack(const GDbBookmark *, packed_buffer_t *);
/* Construit la description humaine d'un signet sur un tampon. */
static char *g_db_bookmark_build_label(const GDbBookmark *);
@@ -412,7 +412,7 @@ static gint g_db_bookmark_cmp(const GDbBookmark *a, const GDbBookmark *b)
* *
******************************************************************************/
-static bool g_db_bookmark_unpack(GDbBookmark *bookmark, packed_buffer *pbuf)
+static bool g_db_bookmark_unpack(GDbBookmark *bookmark, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -442,7 +442,7 @@ static bool g_db_bookmark_unpack(GDbBookmark *bookmark, packed_buffer *pbuf)
* *
******************************************************************************/
-static bool g_db_bookmark_pack(const GDbBookmark *bookmark, packed_buffer *pbuf)
+static bool g_db_bookmark_pack(const GDbBookmark *bookmark, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
diff --git a/src/analysis/db/items/comment.c b/src/analysis/db/items/comment.c
index bdff3a6..da7a4c0 100644
--- a/src/analysis/db/items/comment.c
+++ b/src/analysis/db/items/comment.c
@@ -94,10 +94,10 @@ static gboolean g_db_comment_cmp_key(const GDbComment *, const GDbComment *);
static gint g_db_comment_cmp(const GDbComment *, const GDbComment *);
/* Importe la définition d'un commentaire dans un flux réseau. */
-static bool g_db_comment_unpack(GDbComment *, packed_buffer *);
+static bool g_db_comment_unpack(GDbComment *, packed_buffer_t *);
/* Exporte la définition d'un commentaire dans un flux réseau. */
-static bool g_db_comment_pack(GDbComment *, packed_buffer *);
+static bool g_db_comment_pack(GDbComment *, packed_buffer_t *);
/* Construit la description humaine d'un commentaire. */
static char *g_db_comment_build_label(GDbComment *);
@@ -570,7 +570,7 @@ static gint g_db_comment_cmp(const GDbComment *a, const GDbComment *b)
* *
******************************************************************************/
-static bool g_db_comment_unpack(GDbComment *comment, packed_buffer *pbuf)
+static bool g_db_comment_unpack(GDbComment *comment, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
uint8_t tmp8; /* Valeur sur 8 bits */
@@ -623,7 +623,7 @@ static bool g_db_comment_unpack(GDbComment *comment, packed_buffer *pbuf)
* *
******************************************************************************/
-static bool g_db_comment_pack(GDbComment *comment, packed_buffer *pbuf)
+static bool g_db_comment_pack(GDbComment *comment, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
rle_string text; /* Texte brut récupéré */
diff --git a/src/analysis/db/items/move.c b/src/analysis/db/items/move.c
index f70de6f..af1c8c1 100644
--- a/src/analysis/db/items/move.c
+++ b/src/analysis/db/items/move.c
@@ -78,10 +78,10 @@ static void g_db_move_finalize(GDbMove *);
static gint g_db_move_cmp(const GDbMove *, const GDbMove *);
/* Importe la définition d'un déplacement depuis un flux réseau. */
-static bool g_db_move_unpack(GDbMove *, packed_buffer *);
+static bool g_db_move_unpack(GDbMove *, packed_buffer_t *);
/* Exporte la définition d'un déplacement dans un flux réseau. */
-static bool g_db_move_pack(const GDbMove *, packed_buffer *);
+static bool g_db_move_pack(const GDbMove *, packed_buffer_t *);
/* Construit la description humaine d'un déplacement. */
static char *g_db_move_build_label(GDbMove *);
@@ -314,7 +314,7 @@ static gint g_db_move_cmp(const GDbMove *a, const GDbMove *b)
* *
******************************************************************************/
-static bool g_db_move_unpack(GDbMove *move, packed_buffer *pbuf)
+static bool g_db_move_unpack(GDbMove *move, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -347,7 +347,7 @@ static bool g_db_move_unpack(GDbMove *move, packed_buffer *pbuf)
* *
******************************************************************************/
-static bool g_db_move_pack(const GDbMove *move, packed_buffer *pbuf)
+static bool g_db_move_pack(const GDbMove *move, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
diff --git a/src/analysis/db/items/switcher.c b/src/analysis/db/items/switcher.c
index 090b8ce..885406c 100644
--- a/src/analysis/db/items/switcher.c
+++ b/src/analysis/db/items/switcher.c
@@ -84,10 +84,10 @@ static gboolean g_db_switcher_cmp_key(const GDbSwitcher *, const GDbSwitcher *);
static gint g_db_switcher_cmp(const GDbSwitcher *, const GDbSwitcher *);
/* Importe la définition d'un signet depuis un flux réseau. */
-static bool g_db_switcher_unpack(GDbSwitcher *, packed_buffer *);
+static bool g_db_switcher_unpack(GDbSwitcher *, packed_buffer_t *);
/* Exporte la définition d'un signet dans un flux réseau. */
-static bool g_db_switcher_pack(const GDbSwitcher *, packed_buffer *);
+static bool g_db_switcher_pack(const GDbSwitcher *, packed_buffer_t *);
/* Construit la description humaine d'un signet sur un tampon. */
static char *g_db_switcher_build_label(GDbSwitcher *);
@@ -448,7 +448,7 @@ static gint g_db_switcher_cmp(const GDbSwitcher *a, const GDbSwitcher *b)
* *
******************************************************************************/
-static bool g_db_switcher_unpack(GDbSwitcher *switcher, packed_buffer *pbuf)
+static bool g_db_switcher_unpack(GDbSwitcher *switcher, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
uint32_t tmp32; /* Valeur sur 32 bits */
@@ -489,7 +489,7 @@ static bool g_db_switcher_unpack(GDbSwitcher *switcher, packed_buffer *pbuf)
* *
******************************************************************************/
-static bool g_db_switcher_pack(const GDbSwitcher *switcher, packed_buffer *pbuf)
+static bool g_db_switcher_pack(const GDbSwitcher *switcher, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
diff --git a/src/analysis/db/misc/rlestr.c b/src/analysis/db/misc/rlestr.c
index 7b1e705..bb81b55 100644
--- a/src/analysis/db/misc/rlestr.c
+++ b/src/analysis/db/misc/rlestr.c
@@ -273,7 +273,7 @@ int cmp_rle_string(const rle_string *s1, const rle_string *s2)
* *
******************************************************************************/
-bool unpack_rle_string(rle_string *str, packed_buffer *pbuf)
+bool unpack_rle_string(rle_string *str, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
uint32_t tmp32; /* Valeur sur 32 bits */
@@ -317,7 +317,7 @@ bool unpack_rle_string(rle_string *str, packed_buffer *pbuf)
* *
******************************************************************************/
-bool pack_rle_string(const rle_string *str, packed_buffer *pbuf)
+bool pack_rle_string(const rle_string *str, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
diff --git a/src/analysis/db/misc/rlestr.h b/src/analysis/db/misc/rlestr.h
index 63effda..aa2aa73 100644
--- a/src/analysis/db/misc/rlestr.h
+++ b/src/analysis/db/misc/rlestr.h
@@ -83,10 +83,10 @@ void unset_rle_string(rle_string *);
int cmp_rle_string(const rle_string *, const rle_string *);
/* Importe la définition d'une chaîne de caractères. */
-bool unpack_rle_string(rle_string *, packed_buffer *);
+bool unpack_rle_string(rle_string *, packed_buffer_t *);
/* Exporte la définition d'une chaîne de caractères. */
-bool pack_rle_string(const rle_string *, packed_buffer *);
+bool pack_rle_string(const rle_string *, packed_buffer_t *);
diff --git a/src/analysis/db/misc/snapshot.c b/src/analysis/db/misc/snapshot.c
index 23fe15c..b116b3c 100644
--- a/src/analysis/db/misc/snapshot.c
+++ b/src/analysis/db/misc/snapshot.c
@@ -188,7 +188,7 @@ int cmp_snapshot_id(const snapshot_id_t *id1, const snapshot_id_t *id2)
* *
******************************************************************************/
-bool unpack_snapshot_id(snapshot_id_t *id, packed_buffer *pbuf)
+bool unpack_snapshot_id(snapshot_id_t *id, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -212,7 +212,7 @@ bool unpack_snapshot_id(snapshot_id_t *id, packed_buffer *pbuf)
* *
******************************************************************************/
-bool pack_snapshot_id(const snapshot_id_t *id, packed_buffer *pbuf)
+bool pack_snapshot_id(const snapshot_id_t *id, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -411,7 +411,7 @@ void copy_snapshot_info(snapshot_info_t *dest, const snapshot_info_t *src)
* *
******************************************************************************/
-bool unpack_snapshot_info(snapshot_info_t *info, packed_buffer *pbuf)
+bool unpack_snapshot_info(snapshot_info_t *info, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
rle_string string; /* Chaîne à transmettre */
@@ -473,7 +473,7 @@ bool unpack_snapshot_info(snapshot_info_t *info, packed_buffer *pbuf)
* *
******************************************************************************/
-bool pack_snapshot_info(const snapshot_info_t *info, packed_buffer *pbuf)
+bool pack_snapshot_info(const snapshot_info_t *info, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
rle_string string; /* Chaîne à transmettre */
diff --git a/src/analysis/db/misc/snapshot.h b/src/analysis/db/misc/snapshot.h
index 3f55b50..f6a84f1 100644
--- a/src/analysis/db/misc/snapshot.h
+++ b/src/analysis/db/misc/snapshot.h
@@ -71,10 +71,10 @@ void copy_snapshot_id(snapshot_id_t *, const snapshot_id_t *);
int cmp_snapshot_id(const snapshot_id_t *, const snapshot_id_t *);
/* Importe la définition d'un identifiant d'instantané. */
-bool unpack_snapshot_id(snapshot_id_t *, packed_buffer *);
+bool unpack_snapshot_id(snapshot_id_t *, packed_buffer_t *);
/* Exporte la définition d'un identifiant d'instantané. */
-bool pack_snapshot_id(const snapshot_id_t *, packed_buffer *);
+bool pack_snapshot_id(const snapshot_id_t *, packed_buffer_t *);
@@ -117,10 +117,10 @@ void exit_snapshot_info(snapshot_info_t *);
void copy_snapshot_info(snapshot_info_t *, const snapshot_info_t *);
/* Importe la description d'un identifiant d'instantané. */
-bool unpack_snapshot_info(snapshot_info_t *, packed_buffer *);
+bool unpack_snapshot_info(snapshot_info_t *, packed_buffer_t *);
/* Exporte la description d'un identifiant d'instantané. */
-bool pack_snapshot_info(const snapshot_info_t *, packed_buffer *);
+bool pack_snapshot_info(const snapshot_info_t *, packed_buffer_t *);
/* Change la désignation dans les informations d'un instantané. */
void set_snapshot_info_name(snapshot_info_t *, const char *);
diff --git a/src/analysis/db/misc/timestamp.c b/src/analysis/db/misc/timestamp.c
index 5f49997..1790e2b 100644
--- a/src/analysis/db/misc/timestamp.c
+++ b/src/analysis/db/misc/timestamp.c
@@ -203,7 +203,7 @@ int cmp_timestamp(const timestamp_t *t1, const timestamp_t *t2)
* *
******************************************************************************/
-bool unpack_timestamp(timestamp_t *timestamp, packed_buffer *pbuf)
+bool unpack_timestamp(timestamp_t *timestamp, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -227,7 +227,7 @@ bool unpack_timestamp(timestamp_t *timestamp, packed_buffer *pbuf)
* *
******************************************************************************/
-bool pack_timestamp(const timestamp_t *timestamp, packed_buffer *pbuf)
+bool pack_timestamp(const timestamp_t *timestamp, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
diff --git a/src/analysis/db/misc/timestamp.h b/src/analysis/db/misc/timestamp.h
index f41a529..bdb9d3e 100644
--- a/src/analysis/db/misc/timestamp.h
+++ b/src/analysis/db/misc/timestamp.h
@@ -57,10 +57,10 @@ void copy_timestamp(timestamp_t *, const timestamp_t *);
int cmp_timestamp(const timestamp_t *, const timestamp_t *);
/* Importe la définition d'un horodatage. */
-bool unpack_timestamp(timestamp_t *, packed_buffer *);
+bool unpack_timestamp(timestamp_t *, packed_buffer_t *);
/* Exporte la définition d'un horodatage. */
-bool pack_timestamp(const timestamp_t *, packed_buffer *);
+bool pack_timestamp(const timestamp_t *, packed_buffer_t *);
diff --git a/src/analysis/db/server.c b/src/analysis/db/server.c
index ad7929f..f324c74 100644
--- a/src/analysis/db/server.c
+++ b/src/analysis/db/server.c
@@ -141,10 +141,10 @@ static int g_hub_server_verify(int, X509_STORE_CTX *);
static void *g_hub_server_listener(GHubServer *);
/* Assure l'accueil des nouveaux clients administrateurs. */
-static GServerBackend *g_hub_server_handle_admin(GHubServer *, packed_buffer *, const char *, DBError *, bool *);
+static GServerBackend *g_hub_server_handle_admin(GHubServer *, packed_buffer_t *, const char *, DBError *, bool *);
/* Assure l'accueil des nouveaux clients analystes. */
-static GServerBackend *g_hub_server_handle_analyst(GHubServer *, packed_buffer *, const char *, DBError *, bool *);
+static GServerBackend *g_hub_server_handle_analyst(GHubServer *, packed_buffer_t *, const char *, DBError *, bool *);
/* Enregistre dans une liste interne un support de suivi. */
static void g_hub_server_register_backend(GHubServer *, GServerBackend *);
@@ -752,13 +752,13 @@ static void *g_hub_server_listener(GHubServer *server)
const char *ip; /* Statut de la conversion */
char *peer_name; /* Désignation du correspondant*/
DBError error; /* Validation de la connexion */
- packed_buffer in_pbuf; /* Tampon de réception */
+ packed_buffer_t in_pbuf; /* Tampon de réception */
bool status; /* Bilan d'une opération */
uint32_t cmd; /* Commande initiale lue */
uint32_t version; /* Version du client lue */
uint32_t role; /* Rôle visé par le client */
bool new; /* Besoin d'ajout à une liste */
- packed_buffer out_pbuf; /* Tampon d'émission */
+ packed_buffer_t out_pbuf; /* Tampon d'émission */
fds.fd = server->fd;
fds.events = POLLIN | POLLPRI;
@@ -1021,7 +1021,7 @@ static void *g_hub_server_listener(GHubServer *server)
* *
******************************************************************************/
-static GServerBackend *g_hub_server_handle_admin(GHubServer *server, packed_buffer *in_pbuf, const char *peer_name, DBError *error, bool *new)
+static GServerBackend *g_hub_server_handle_admin(GHubServer *server, packed_buffer_t *in_pbuf, const char *peer_name, DBError *error, bool *new)
{
GCdbController *result; /* Support de suivi à retourner*/
char *basedir; /* Répertoire de stockage */
@@ -1070,7 +1070,7 @@ static GServerBackend *g_hub_server_handle_admin(GHubServer *server, packed_buff
* *
******************************************************************************/
-static GServerBackend *g_hub_server_handle_analyst(GHubServer *server, packed_buffer *in_pbuf, const char *peer_name, DBError *error, bool *new)
+static GServerBackend *g_hub_server_handle_analyst(GHubServer *server, packed_buffer_t *in_pbuf, const char *peer_name, DBError *error, bool *new)
{
GCdbArchive *result; /* Support de suivi à retourner*/
rle_string hash; /* Empreinte du binaire visé */
diff --git a/src/analysis/db/snapshot.c b/src/analysis/db/snapshot.c
index e07129e..1a92a34 100644
--- a/src/analysis/db/snapshot.c
+++ b/src/analysis/db/snapshot.c
@@ -90,7 +90,7 @@ static void add_snapshot_node(snapshot_node_t *, snapshot_node_t *);
static void remove_snapshot_node(snapshot_node_t *, bool);
/* Collecte les descriptions d'une arborescence d'instantanés. */
-static bool pack_snapshot_node(const snapshot_node_t *, packed_buffer *);
+static bool pack_snapshot_node(const snapshot_node_t *, packed_buffer_t *);
@@ -639,7 +639,7 @@ static void remove_snapshot_node(snapshot_node_t *node, bool rec)
* *
******************************************************************************/
-static bool pack_snapshot_node(const snapshot_node_t *node, packed_buffer *pbuf)
+static bool pack_snapshot_node(const snapshot_node_t *node, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
size_t i; /* Boucle de parcours */
@@ -1263,7 +1263,7 @@ sqlite3 *g_db_snapshot_get_database(const GDbSnapshot *snap)
* *
******************************************************************************/
-bool g_db_snapshot_pack_all(const GDbSnapshot *snap, packed_buffer *pbuf)
+bool g_db_snapshot_pack_all(const GDbSnapshot *snap, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -1287,7 +1287,7 @@ bool g_db_snapshot_pack_all(const GDbSnapshot *snap, packed_buffer *pbuf)
* *
******************************************************************************/
-DBError g_db_snapshot_set_name(const GDbSnapshot *snap, packed_buffer *pbuf)
+DBError g_db_snapshot_set_name(const GDbSnapshot *snap, packed_buffer_t *pbuf)
{
DBError result; /* Conclusion à retourner */
snapshot_id_t id; /* Identifiant d'instantané */
@@ -1352,7 +1352,7 @@ DBError g_db_snapshot_set_name(const GDbSnapshot *snap, packed_buffer *pbuf)
* *
******************************************************************************/
-DBError g_db_snapshot_set_desc(const GDbSnapshot *snap, packed_buffer *pbuf)
+DBError g_db_snapshot_set_desc(const GDbSnapshot *snap, packed_buffer_t *pbuf)
{
DBError result; /* Conclusion à retourner */
snapshot_id_t id; /* Identifiant d'instantané */
@@ -1418,7 +1418,7 @@ DBError g_db_snapshot_set_desc(const GDbSnapshot *snap, packed_buffer *pbuf)
* *
******************************************************************************/
-DBError g_db_snapshot_restore(GDbSnapshot *snap, packed_buffer *pbuf, bool *reload)
+DBError g_db_snapshot_restore(GDbSnapshot *snap, packed_buffer_t *pbuf, bool *reload)
{
DBError result; /* Conclusion à retourner */
snapshot_id_t id; /* Identifiant d'instantané */
@@ -1544,7 +1544,7 @@ DBError g_db_snapshot_create(GDbSnapshot *snap, sqlite3 *db)
* *
******************************************************************************/
-DBError g_db_snapshot_remove(GDbSnapshot *snap, packed_buffer *pbuf, bool *changed)
+DBError g_db_snapshot_remove(GDbSnapshot *snap, packed_buffer_t *pbuf, bool *changed)
{
DBError result; /* Conclusion à retourner */
snapshot_id_t id; /* Identifiant d'instantané */
diff --git a/src/analysis/db/snapshot.h b/src/analysis/db/snapshot.h
index 8737f8c..7f8a82a 100644
--- a/src/analysis/db/snapshot.h
+++ b/src/analysis/db/snapshot.h
@@ -75,22 +75,22 @@ bool g_db_snapshot_get_current_id(const GDbSnapshot *, snapshot_id_t *);
sqlite3 *g_db_snapshot_get_database(const GDbSnapshot *);
/* Collecte les descriptions de l'ensemble des instantanés. */
-bool g_db_snapshot_pack_all(const GDbSnapshot *, packed_buffer *);
+bool g_db_snapshot_pack_all(const GDbSnapshot *, packed_buffer_t *);
/* Actualise la désignation d'un instantané donné. */
-DBError g_db_snapshot_set_name(const GDbSnapshot *, packed_buffer *);
+DBError g_db_snapshot_set_name(const GDbSnapshot *, packed_buffer_t *);
/* Actualise la description d'un instantané donné. */
-DBError g_db_snapshot_set_desc(const GDbSnapshot *, packed_buffer *);
+DBError g_db_snapshot_set_desc(const GDbSnapshot *, packed_buffer_t *);
/* Restaure un instantané de l'arborescence. */
-DBError g_db_snapshot_restore(GDbSnapshot *, packed_buffer *, bool *);
+DBError g_db_snapshot_restore(GDbSnapshot *, packed_buffer_t *, bool *);
/* Crée un nouvel instantanés dans l'arborescence. */
DBError g_db_snapshot_create(GDbSnapshot *, sqlite3 *);
/* Supprime un instantané dans l'arborescence. */
-DBError g_db_snapshot_remove(GDbSnapshot *, packed_buffer *, bool *);
+DBError g_db_snapshot_remove(GDbSnapshot *, packed_buffer_t *, bool *);
diff --git a/src/analysis/storage/serialize-int.h b/src/analysis/storage/serialize-int.h
index b4eb815..de8d3e3 100644
--- a/src/analysis/storage/serialize-int.h
+++ b/src/analysis/storage/serialize-int.h
@@ -33,10 +33,10 @@
/* Charge un objet depuis une mémoire tampon. */
-typedef bool (* load_serializable_object_cb) (GSerializableObject *, GObjectStorage *, packed_buffer *);
+typedef bool (* load_serializable_object_cb) (GSerializableObject *, GObjectStorage *, packed_buffer_t *);
/* Sauvegarde un objet dans une mémoire tampon. */
-typedef bool (* store_serializable_object_cb) (const GSerializableObject *, GObjectStorage *, packed_buffer *);
+typedef bool (* store_serializable_object_cb) (const GSerializableObject *, GObjectStorage *, packed_buffer_t *);
/* Intermédiaire pour la mise en cache d'objet (interface) */
diff --git a/src/analysis/storage/serialize.c b/src/analysis/storage/serialize.c
index bee8fe4..312cfce 100644
--- a/src/analysis/storage/serialize.c
+++ b/src/analysis/storage/serialize.c
@@ -69,7 +69,7 @@ static void g_serializable_object_default_init(GSerializableObjectInterface *ifa
* *
******************************************************************************/
-bool g_serializable_object_load(GSerializableObject *object, GObjectStorage *storage, packed_buffer *pbuf)
+bool g_serializable_object_load(GSerializableObject *object, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GSerializableObjectIface *iface; /* Interface utilisée */
@@ -97,7 +97,7 @@ bool g_serializable_object_load(GSerializableObject *object, GObjectStorage *sto
* *
******************************************************************************/
-bool g_serializable_object_store(const GSerializableObject *object, GObjectStorage *storage, packed_buffer *pbuf)
+bool g_serializable_object_store(const GSerializableObject *object, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GSerializableObjectIface *iface; /* Interface utilisée */
diff --git a/src/analysis/storage/serialize.h b/src/analysis/storage/serialize.h
index e218c84..93a4496 100644
--- a/src/analysis/storage/serialize.h
+++ b/src/analysis/storage/serialize.h
@@ -54,10 +54,10 @@ GType g_serializable_object_get_type(void) G_GNUC_CONST;
typedef struct _GObjectStorage GObjectStorage;
/* Charge un objet depuis une mémoire tampon. */
-bool g_serializable_object_load(GSerializableObject *, GObjectStorage *, packed_buffer *);
+bool g_serializable_object_load(GSerializableObject *, GObjectStorage *, packed_buffer_t *);
/* Sauvegarde un objet dans une mémoire tampon. */
-bool g_serializable_object_store(const GSerializableObject *, GObjectStorage *, packed_buffer *);
+bool g_serializable_object_store(const GSerializableObject *, GObjectStorage *, packed_buffer_t *);
diff --git a/src/analysis/storage/storage.c b/src/analysis/storage/storage.c
index bd40353..395d26d 100644
--- a/src/analysis/storage/storage.c
+++ b/src/analysis/storage/storage.c
@@ -324,7 +324,7 @@ GSerializableObject *g_object_storage_load_object(GObjectStorage *storage, const
GSerializableObject *result; /* Instance à retourner */
bool status; /* Bilan d'une opération */
storage_backend_t *backend; /* Informations à consulter */
- packed_buffer pbuf; /* Tampon des données à lire */
+ packed_buffer_t pbuf; /* Tampon des données à lire */
off64_t new; /* Nouvelle position de lecture*/
result = NULL;
@@ -390,7 +390,7 @@ GSerializableObject *g_object_storage_load_object(GObjectStorage *storage, const
* *
******************************************************************************/
-GSerializableObject *g_object_storage_unpack_object(GObjectStorage *storage, const char *name, packed_buffer *pbuf)
+GSerializableObject *g_object_storage_unpack_object(GObjectStorage *storage, const char *name, packed_buffer_t *pbuf)
{
GSerializableObject *result; /* Instance à retourner */
uint64_t pos; /* Localisation des données */
@@ -426,7 +426,7 @@ GSerializableObject *g_object_storage_unpack_object(GObjectStorage *storage, con
bool g_object_storage_store_object(GObjectStorage *storage, const char *name, const GSerializableObject *object, off64_t *pos)
{
bool result; /* Bilan à retourner */
- packed_buffer pbuf; /* Tampon des données à écrire */
+ packed_buffer_t pbuf; /* Tampon des données à écrire */
storage_backend_t *backend; /* Informations à consulter */
off64_t tmp; /* Conservation éphémère */
@@ -487,7 +487,7 @@ bool g_object_storage_store_object(GObjectStorage *storage, const char *name, co
* *
******************************************************************************/
-bool g_object_storage_pack_object(GObjectStorage *storage, const char *name, const GSerializableObject *object, packed_buffer *pbuf)
+bool g_object_storage_pack_object(GObjectStorage *storage, const char *name, const GSerializableObject *object, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
off64_t pos; /* Localisation des données */
diff --git a/src/analysis/storage/storage.h b/src/analysis/storage/storage.h
index c568267..fd5d91f 100644
--- a/src/analysis/storage/storage.h
+++ b/src/analysis/storage/storage.h
@@ -63,13 +63,13 @@ bool g_object_storage_add_backend(GObjectStorage *, const char *, const char *);
GSerializableObject *g_object_storage_load_object(GObjectStorage *, const char *, off64_t);
/* Charge un objet interne à partir de données rassemblées. */
-GSerializableObject *g_object_storage_unpack_object(GObjectStorage *, const char *, packed_buffer *);
+GSerializableObject *g_object_storage_unpack_object(GObjectStorage *, const char *, packed_buffer_t *);
/* Sauvegarde un object sous forme de données rassemblées. */
bool g_object_storage_store_object(GObjectStorage *, const char *, const GSerializableObject *, off64_t *);
/* Sauvegarde un object interne sous forme de données. */
-bool g_object_storage_pack_object(GObjectStorage *, const char *, const GSerializableObject *, packed_buffer *);
+bool g_object_storage_pack_object(GObjectStorage *, const char *, const GSerializableObject *, packed_buffer_t *);
diff --git a/src/analysis/storage/tpmem.c b/src/analysis/storage/tpmem.c
index 64f54d2..58585cd 100644
--- a/src/analysis/storage/tpmem.c
+++ b/src/analysis/storage/tpmem.c
@@ -232,7 +232,7 @@ GTypeMemory *g_type_memory_new(void)
bool g_type_memory_read_types(GTypeMemory *tpmem, int fd)
{
bool result; /* Bilan à enregistrer */
- packed_buffer pbuf; /* Tampon des données à écrire */
+ packed_buffer_t pbuf; /* Tampon des données à écrire */
uint64_t i; /* Boucle de parcours */
unsigned char len; /* Taille d'un nom de type */
char *name; /* Désignation d'un type */
@@ -306,7 +306,7 @@ bool g_type_memory_read_types(GTypeMemory *tpmem, int fd)
* *
******************************************************************************/
-GObject *g_type_memory_create_object(GTypeMemory *tpmem, packed_buffer *pbuf)
+GObject *g_type_memory_create_object(GTypeMemory *tpmem, packed_buffer_t *pbuf)
{
GObject *result; /* Nouvelle instance à renvoyer*/
uint64_t index; /* Indice du point d'insertion */
@@ -346,7 +346,7 @@ GObject *g_type_memory_create_object(GTypeMemory *tpmem, packed_buffer *pbuf)
* *
******************************************************************************/
-bool g_type_memory_store_object_gtype(GTypeMemory *tpmem, GObject *obj, packed_buffer *pbuf)
+bool g_type_memory_store_object_gtype(GTypeMemory *tpmem, GObject *obj, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GType gtype; /* Type à enregistrer */
@@ -412,7 +412,7 @@ bool g_type_memory_store_object_gtype(GTypeMemory *tpmem, GObject *obj, packed_b
bool g_type_memory_write_types(GTypeMemory *tpmem, int fd)
{
bool result; /* Bilan à enregistrer */
- packed_buffer pbuf; /* Tampon des données à écrire */
+ packed_buffer_t pbuf; /* Tampon des données à écrire */
uint64_t i; /* Boucle de parcours */
const gchar *name; /* Désignation d'un type */
size_t len; /* Taille de ce nom */
diff --git a/src/analysis/storage/tpmem.h b/src/analysis/storage/tpmem.h
index 4c82a1f..ff14265 100644
--- a/src/analysis/storage/tpmem.h
+++ b/src/analysis/storage/tpmem.h
@@ -57,10 +57,10 @@ GTypeMemory *g_type_memory_new(void);
bool g_type_memory_read_types(GTypeMemory *, int);
/* Crée une nouvelle instance d'objet à partir de son type. */
-GObject *g_type_memory_create_object(GTypeMemory *, packed_buffer *);
+GObject *g_type_memory_create_object(GTypeMemory *, packed_buffer_t *);
/* Sauvegarde le type d'un objet instancié. */
-bool g_type_memory_store_object_gtype(GTypeMemory *, GObject *, packed_buffer *);
+bool g_type_memory_store_object_gtype(GTypeMemory *, GObject *, packed_buffer_t *);
/* Enregistre tous les types mémorisés dans un flux. */
bool g_type_memory_write_types(GTypeMemory *, int);
diff --git a/src/analysis/type-int.h b/src/analysis/type-int.h
index d6c2588..6c77954 100644
--- a/src/analysis/type-int.h
+++ b/src/analysis/type-int.h
@@ -34,10 +34,10 @@
/* Charge un objet depuis une mémoire tampon. */
-typedef bool (* type_load_fc) (GDataType *, GObjectStorage *, packed_buffer *);
+typedef bool (* type_load_fc) (GDataType *, GObjectStorage *, packed_buffer_t *);
/* Sauvegarde un objet dans une mémoire tampon. */
-typedef bool (* type_store_fc) (const GDataType *, GObjectStorage *, packed_buffer *);
+typedef bool (* type_store_fc) (const GDataType *, GObjectStorage *, packed_buffer_t *);
/* Calcule une empreinte pour un type de données. */
typedef guint (* type_hash_fc) (const GDataType *);
diff --git a/src/analysis/type.c b/src/analysis/type.c
index e2547bd..8a24531 100644
--- a/src/analysis/type.c
+++ b/src/analysis/type.c
@@ -51,16 +51,16 @@ static void g_data_type_dispose(GDataType *);
static void g_data_type_finalize(GDataType *);
/* Charge un objet depuis une mémoire tampon. */
-static bool _g_data_type_load(GDataType *, GObjectStorage *, packed_buffer *);
+static bool _g_data_type_load(GDataType *, GObjectStorage *, packed_buffer_t *);
/* Charge un objet depuis une mémoire tampon. */
-static bool g_data_type_load(GDataType *, GObjectStorage *, packed_buffer *);
+static bool g_data_type_load(GDataType *, GObjectStorage *, packed_buffer_t *);
/* Sauvegarde un objet dans une mémoire tampon. */
-static bool _g_data_type_store(const GDataType *, GObjectStorage *, packed_buffer *);
+static bool _g_data_type_store(const GDataType *, GObjectStorage *, packed_buffer_t *);
/* Sauvegarde un objet dans une mémoire tampon. */
-static bool g_data_type_store(const GDataType *, GObjectStorage *, packed_buffer *);
+static bool g_data_type_store(const GDataType *, GObjectStorage *, packed_buffer_t *);
@@ -193,7 +193,7 @@ static void g_data_type_finalize(GDataType *type)
* *
******************************************************************************/
-static bool _g_data_type_load(GDataType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool _g_data_type_load(GDataType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
uleb128_t value; /* Valeur ULEB128 à charger */
@@ -248,7 +248,7 @@ static bool _g_data_type_load(GDataType *type, GObjectStorage *storage, packed_b
* *
******************************************************************************/
-static bool g_data_type_load(GDataType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_data_type_load(GDataType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GDataTypeClass *class; /* Classe du type */
@@ -276,7 +276,7 @@ static bool g_data_type_load(GDataType *type, GObjectStorage *storage, packed_bu
* *
******************************************************************************/
-static bool _g_data_type_store(const GDataType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool _g_data_type_store(const GDataType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
type_obj_extra *extra; /* Données insérées à modifier */
@@ -328,7 +328,7 @@ static bool _g_data_type_store(const GDataType *type, GObjectStorage *storage, p
* *
******************************************************************************/
-static bool g_data_type_store(const GDataType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_data_type_store(const GDataType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GDataTypeClass *class; /* Classe du type */
diff --git a/src/analysis/types/array.c b/src/analysis/types/array.c
index 5b51d62..bc3382b 100644
--- a/src/analysis/types/array.c
+++ b/src/analysis/types/array.c
@@ -73,10 +73,10 @@ static void g_array_type_dispose(GArrayType *);
static void g_array_type_finalize(GArrayType *);
/* Charge un objet depuis une mémoire tampon. */
-static bool g_array_type_load(GArrayType *, GObjectStorage *, packed_buffer *);
+static bool g_array_type_load(GArrayType *, GObjectStorage *, packed_buffer_t *);
/* Sauvegarde un objet dans une mémoire tampon. */
-static bool g_array_type_store(const GArrayType *, GObjectStorage *, packed_buffer *);
+static bool g_array_type_store(const GArrayType *, GObjectStorage *, packed_buffer_t *);
/* Calcule une empreinte pour un type de données. */
static guint g_array_type_hash(const GArrayType *);
@@ -230,7 +230,7 @@ GDataType *g_array_type_new(GDataType *members)
* *
******************************************************************************/
-static bool g_array_type_load(GArrayType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_array_type_load(GArrayType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
bool numbered; /* Choix de la dimension */
@@ -288,7 +288,7 @@ static bool g_array_type_load(GArrayType *type, GObjectStorage *storage, packed_
* *
******************************************************************************/
-static bool g_array_type_store(const GArrayType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_array_type_store(const GArrayType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
size_t len; /* Taille d'une chaîne */
diff --git a/src/analysis/types/basic.c b/src/analysis/types/basic.c
index 3932ce4..e72ee95 100644
--- a/src/analysis/types/basic.c
+++ b/src/analysis/types/basic.c
@@ -62,10 +62,10 @@ static void g_basic_type_dispose(GBasicType *);
static void g_basic_type_finalize(GBasicType *);
/* Charge un objet depuis une mémoire tampon. */
-static bool g_basic_type_load(GBasicType *, GObjectStorage *, packed_buffer *);
+static bool g_basic_type_load(GBasicType *, GObjectStorage *, packed_buffer_t *);
/* Sauvegarde un objet dans une mémoire tampon. */
-static bool g_basic_type_store(const GBasicType *, GObjectStorage *, packed_buffer *);
+static bool g_basic_type_store(const GBasicType *, GObjectStorage *, packed_buffer_t *);
/* Calcule une empreinte pour un type de données. */
static guint g_basic_type_hash(const GBasicType *);
@@ -212,7 +212,7 @@ GDataType *g_basic_type_new(BaseType type)
* *
******************************************************************************/
-static bool g_basic_type_load(GBasicType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_basic_type_load(GBasicType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
uleb128_t value; /* Valeur ULEB128 à charger */
@@ -244,7 +244,7 @@ static bool g_basic_type_load(GBasicType *type, GObjectStorage *storage, packed_
* *
******************************************************************************/
-static bool g_basic_type_store(const GBasicType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_basic_type_store(const GBasicType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
diff --git a/src/analysis/types/cse.c b/src/analysis/types/cse.c
index 78db252..6f538a5 100644
--- a/src/analysis/types/cse.c
+++ b/src/analysis/types/cse.c
@@ -63,10 +63,10 @@ static void g_class_enum_type_dispose(GClassEnumType *);
static void g_class_enum_type_finalize(GClassEnumType *);
/* Charge un objet depuis une mémoire tampon. */
-static bool g_class_enum_type_load(GClassEnumType *, GObjectStorage *, packed_buffer *);
+static bool g_class_enum_type_load(GClassEnumType *, GObjectStorage *, packed_buffer_t *);
/* Sauvegarde un objet dans une mémoire tampon. */
-static bool g_class_enum_type_store(const GClassEnumType *, GObjectStorage *, packed_buffer *);
+static bool g_class_enum_type_store(const GClassEnumType *, GObjectStorage *, packed_buffer_t *);
/* Calcule une empreinte pour un type de données. */
static guint g_class_enum_type_hash(const GClassEnumType *);
@@ -219,7 +219,7 @@ GDataType *g_class_enum_type_new(ClassEnumKind kind, char *name)
* *
******************************************************************************/
-static bool g_class_enum_type_load(GClassEnumType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_class_enum_type_load(GClassEnumType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
uleb128_t value; /* Valeur ULEB128 à charger */
@@ -259,7 +259,7 @@ static bool g_class_enum_type_load(GClassEnumType *type, GObjectStorage *storage
* *
******************************************************************************/
-static bool g_class_enum_type_store(const GClassEnumType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_class_enum_type_store(const GClassEnumType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
size_t len; /* Taille d'une chaîne */
diff --git a/src/analysis/types/encaps.c b/src/analysis/types/encaps.c
index 8d0d7eb..bde6ba8 100644
--- a/src/analysis/types/encaps.c
+++ b/src/analysis/types/encaps.c
@@ -66,10 +66,10 @@ static void g_encapsulated_type_dispose(GEncapsulatedType *);
static void g_encapsulated_type_finalize(GEncapsulatedType *);
/* Charge un objet depuis une mémoire tampon. */
-static bool g_encapsulated_type_load(GEncapsulatedType *, GObjectStorage *, packed_buffer *);
+static bool g_encapsulated_type_load(GEncapsulatedType *, GObjectStorage *, packed_buffer_t *);
/* Sauvegarde un objet dans une mémoire tampon. */
-static bool g_encapsulated_type_store(const GEncapsulatedType *, GObjectStorage *, packed_buffer *);
+static bool g_encapsulated_type_store(const GEncapsulatedType *, GObjectStorage *, packed_buffer_t *);
/* Calcule une empreinte pour un type de données. */
static guint g_encapsulated_type_hash(const GEncapsulatedType *);
@@ -232,7 +232,7 @@ GDataType *g_encapsulated_type_new(EncapsulationType type, GDataType *child)
* *
******************************************************************************/
-static bool g_encapsulated_type_load(GEncapsulatedType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_encapsulated_type_load(GEncapsulatedType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
uleb128_t value; /* Valeur ULEB128 à charger */
@@ -275,7 +275,7 @@ static bool g_encapsulated_type_load(GEncapsulatedType *type, GObjectStorage *st
* *
******************************************************************************/
-static bool g_encapsulated_type_store(const GEncapsulatedType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_encapsulated_type_store(const GEncapsulatedType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
diff --git a/src/analysis/types/expr.c b/src/analysis/types/expr.c
index a98e039..b6f8168 100644
--- a/src/analysis/types/expr.c
+++ b/src/analysis/types/expr.c
@@ -62,10 +62,10 @@ static void g_expr_type_dispose(GExprType *);
static void g_expr_type_finalize(GExprType *);
/* Charge un objet depuis une mémoire tampon. */
-static bool g_expr_type_load(GExprType *, GObjectStorage *, packed_buffer *);
+static bool g_expr_type_load(GExprType *, GObjectStorage *, packed_buffer_t *);
/* Sauvegarde un objet dans une mémoire tampon. */
-static bool g_expr_type_store(const GExprType *, GObjectStorage *, packed_buffer *);
+static bool g_expr_type_store(const GExprType *, GObjectStorage *, packed_buffer_t *);
/* Calcule une empreinte pour un type de données. */
static guint g_expr_type_hash(const GExprType *);
@@ -215,7 +215,7 @@ GDataType *g_expr_type_new(const char *value)
* *
******************************************************************************/
-static bool g_expr_type_load(GExprType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_expr_type_load(GExprType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
uleb128_t value; /* Valeur ULEB128 à charger */
@@ -250,7 +250,7 @@ static bool g_expr_type_load(GExprType *type, GObjectStorage *storage, packed_bu
* *
******************************************************************************/
-static bool g_expr_type_store(const GExprType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_expr_type_store(const GExprType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
size_t len; /* Taille d'une chaîne */
diff --git a/src/analysis/types/literal.c b/src/analysis/types/literal.c
index 4529411..04b941f 100644
--- a/src/analysis/types/literal.c
+++ b/src/analysis/types/literal.c
@@ -65,10 +65,10 @@ static void g_literal_type_dispose(GLiteralType *);
static void g_literal_type_finalize(GLiteralType *);
/* Charge un objet depuis une mémoire tampon. */
-static bool g_literal_type_load(GLiteralType *, GObjectStorage *, packed_buffer *);
+static bool g_literal_type_load(GLiteralType *, GObjectStorage *, packed_buffer_t *);
/* Sauvegarde un objet dans une mémoire tampon. */
-static bool g_literal_type_store(const GLiteralType *, GObjectStorage *, packed_buffer *);
+static bool g_literal_type_store(const GLiteralType *, GObjectStorage *, packed_buffer_t *);
/* Calcule une empreinte pour un type de données. */
static guint g_literal_type_hash(const GLiteralType *);
@@ -226,7 +226,7 @@ GDataType *g_literal_type_new(GDataType *orig, const literal_value *value)
* *
******************************************************************************/
-static bool g_literal_type_load(GLiteralType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_literal_type_load(GLiteralType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -263,7 +263,7 @@ static bool g_literal_type_load(GLiteralType *type, GObjectStorage *storage, pac
* *
******************************************************************************/
-static bool g_literal_type_store(const GLiteralType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_literal_type_store(const GLiteralType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
diff --git a/src/analysis/types/override.c b/src/analysis/types/override.c
index 6e48af4..17453b6 100644
--- a/src/analysis/types/override.c
+++ b/src/analysis/types/override.c
@@ -66,10 +66,10 @@ static void g_override_type_dispose(GOverrideType *);
static void g_override_type_finalize(GOverrideType *);
/* Charge un objet depuis une mémoire tampon. */
-static bool g_override_type_load(GOverrideType *, GObjectStorage *, packed_buffer *);
+static bool g_override_type_load(GOverrideType *, GObjectStorage *, packed_buffer_t *);
/* Sauvegarde un objet dans une mémoire tampon. */
-static bool g_override_type_store(const GOverrideType *, GObjectStorage *, packed_buffer *);
+static bool g_override_type_store(const GOverrideType *, GObjectStorage *, packed_buffer_t *);
/* Calcule une empreinte pour un type de données. */
static guint g_override_type_hash(const GOverrideType *);
@@ -253,7 +253,7 @@ GDataType *g_override_type_new_with_covariant(GDataType *base, const call_offset
* *
******************************************************************************/
-static bool g_override_type_load(GOverrideType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_override_type_load(GOverrideType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
size_t i; /* Boucle de parcours */
@@ -315,7 +315,7 @@ static bool g_override_type_load(GOverrideType *type, GObjectStorage *storage, p
* *
******************************************************************************/
-static bool g_override_type_store(const GOverrideType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_override_type_store(const GOverrideType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
size_t i; /* Boucle de parcours */
diff --git a/src/analysis/types/proto.c b/src/analysis/types/proto.c
index e851000..d19a104 100644
--- a/src/analysis/types/proto.c
+++ b/src/analysis/types/proto.c
@@ -67,10 +67,10 @@ static void g_proto_type_dispose(GProtoType *);
static void g_proto_type_finalize(GProtoType *);
/* Charge un objet depuis une mémoire tampon. */
-static bool g_proto_type_load(GProtoType *, GObjectStorage *, packed_buffer *);
+static bool g_proto_type_load(GProtoType *, GObjectStorage *, packed_buffer_t *);
/* Sauvegarde un objet dans une mémoire tampon. */
-static bool g_proto_type_store(const GProtoType *, GObjectStorage *, packed_buffer *);
+static bool g_proto_type_store(const GProtoType *, GObjectStorage *, packed_buffer_t *);
/* Calcule une empreinte pour un type de données. */
static guint g_proto_type_hash(const GProtoType *);
@@ -233,7 +233,7 @@ GDataType *g_proto_type_new(void)
* *
******************************************************************************/
-static bool g_proto_type_load(GProtoType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_proto_type_load(GProtoType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
uleb128_t value; /* Valeur ULEB128 à charger */
@@ -285,7 +285,7 @@ static bool g_proto_type_load(GProtoType *type, GObjectStorage *storage, packed_
* *
******************************************************************************/
-static bool g_proto_type_store(const GProtoType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_proto_type_store(const GProtoType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
size_t i; /* Boucle de parcours */
diff --git a/src/analysis/types/template.c b/src/analysis/types/template.c
index 98c1471..4a8292a 100644
--- a/src/analysis/types/template.c
+++ b/src/analysis/types/template.c
@@ -67,10 +67,10 @@ static void g_template_type_dispose(GTemplateType *);
static void g_template_type_finalize(GTemplateType *);
/* Charge un objet depuis une mémoire tampon. */
-static bool g_template_type_load(GTemplateType *, GObjectStorage *, packed_buffer *);
+static bool g_template_type_load(GTemplateType *, GObjectStorage *, packed_buffer_t *);
/* Sauvegarde un objet dans une mémoire tampon. */
-static bool g_template_type_store(const GTemplateType *, GObjectStorage *, packed_buffer *);
+static bool g_template_type_store(const GTemplateType *, GObjectStorage *, packed_buffer_t *);
/* Calcule une empreinte pour un type de données. */
static guint g_template_type_hash(const GTemplateType *);
@@ -229,7 +229,7 @@ GDataType *g_template_type_new(void)
* *
******************************************************************************/
-static bool g_template_type_load(GTemplateType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_template_type_load(GTemplateType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
uleb128_t value; /* Valeur ULEB128 à charger */
@@ -283,7 +283,7 @@ static bool g_template_type_load(GTemplateType *type, GObjectStorage *storage, p
* *
******************************************************************************/
-static bool g_template_type_store(const GTemplateType *type, GObjectStorage *storage, packed_buffer *pbuf)
+static bool g_template_type_store(const GTemplateType *type, GObjectStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
size_t len; /* Taille d'une chaîne */
diff --git a/src/arch/instruction-int.h b/src/arch/instruction-int.h
index ed172bb..6a3ccea 100644
--- a/src/arch/instruction-int.h
+++ b/src/arch/instruction-int.h
@@ -47,10 +47,10 @@ typedef char * (* build_instruction_tooltip_fc) (const GArchInstruction *);
typedef const char * (* get_instruction_desc_fc) (const GArchInstruction *);
/* Charge une instruction depuis une mémoire tampon. */
-typedef bool (* unserialize_instruction_fc) (GArchInstruction *, GAsmStorage *, GBinFormat *, packed_buffer *);
+typedef bool (* unserialize_instruction_fc) (GArchInstruction *, GAsmStorage *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde une instruction dans une mémoire tampon. */
-typedef bool (* serialize_instruction_fc) (GArchInstruction *, GAsmStorage *, packed_buffer *);
+typedef bool (* serialize_instruction_fc) (GArchInstruction *, GAsmStorage *, packed_buffer_t *);
/* Ajoute à un tampon GLib le contenu de l'instance spécifiée. */
typedef GBufferLine * (* print_instruction_fc) (const GArchInstruction *, GBufferLine *, size_t, size_t, const GBinContent *);
diff --git a/src/arch/instruction.c b/src/arch/instruction.c
index 52c3aa0..4079e82 100644
--- a/src/arch/instruction.c
+++ b/src/arch/instruction.c
@@ -62,10 +62,10 @@ static void g_arch_instruction_finalize(GArchInstruction *);
/* Charge une instruction depuis une mémoire tampon. */
-static bool g_arch_instruction_unserialize(GArchInstruction *, GAsmStorage *, GBinFormat *, packed_buffer *);
+static bool g_arch_instruction_unserialize(GArchInstruction *, GAsmStorage *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde une instruction dans une mémoire tampon. */
-static bool g_arch_instruction_serialize(GArchInstruction *, GAsmStorage *, packed_buffer *);
+static bool g_arch_instruction_serialize(GArchInstruction *, GAsmStorage *, packed_buffer_t *);
@@ -1660,16 +1660,16 @@ const char *g_arch_instruction_get_description(const GArchInstruction *instr)
* *
******************************************************************************/
-static bool g_arch_instruction_unserialize(GArchInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf)
+static bool g_arch_instruction_unserialize(GArchInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
- packed_buffer op_pbuf; /* Tampon des données à écrire */
+ packed_buffer_t op_pbuf; /* Tampon des données à écrire */
size_t count; /* Nombre d'éléments à traiter */
size_t i; /* Boucle de parcours */
off64_t pos; /* Position dans le flux */
GArchOperand *op; /* Opérande à traiter */
instr_link_t link; /* Lien vers une instruction */
- packed_buffer ins_pbuf; /* Tampon des données à écrire */
+ packed_buffer_t ins_pbuf; /* Tampon des données à écrire */
instr_obj_extra *extra; /* Données insérées à consulter*/
result = unpack_mrange(&instr->range, pbuf);
@@ -1784,7 +1784,7 @@ static bool g_arch_instruction_unserialize(GArchInstruction *instr, GAsmStorage
* *
******************************************************************************/
-GArchInstruction *g_arch_instruction_load(GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf)
+GArchInstruction *g_arch_instruction_load(GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf)
{
GArchInstruction *result; /* Instance à retourner */
bool status; /* Bilan du chargement */
@@ -1822,10 +1822,10 @@ GArchInstruction *g_arch_instruction_load(GAsmStorage *storage, GBinFormat *form
* *
******************************************************************************/
-static bool g_arch_instruction_serialize(GArchInstruction *instr, GAsmStorage *storage, packed_buffer *pbuf)
+static bool g_arch_instruction_serialize(GArchInstruction *instr, GAsmStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
- packed_buffer op_pbuf; /* Tampon des données à écrire */
+ packed_buffer_t op_pbuf; /* Tampon des données à écrire */
size_t count; /* Nombre d'éléments à traiter */
size_t i; /* Boucle de parcours */
GArchOperand *op; /* Opérande à traiter */
@@ -1966,7 +1966,7 @@ static bool g_arch_instruction_serialize(GArchInstruction *instr, GAsmStorage *s
* *
******************************************************************************/
-bool g_arch_instruction_store(GArchInstruction *instr, GAsmStorage *storage, packed_buffer *pbuf)
+bool g_arch_instruction_store(GArchInstruction *instr, GAsmStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
diff --git a/src/arch/instruction.h b/src/arch/instruction.h
index 0401853..80c500b 100644
--- a/src/arch/instruction.h
+++ b/src/arch/instruction.h
@@ -318,10 +318,10 @@ typedef struct _GAsmStorage GAsmStorage;
/* Charge une instruction depuis une mémoire tampon. */
-GArchInstruction *g_arch_instruction_load(GAsmStorage *, GBinFormat *, packed_buffer *);
+GArchInstruction *g_arch_instruction_load(GAsmStorage *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde une instruction dans une mémoire tampon. */
-bool g_arch_instruction_store(GArchInstruction *, GAsmStorage *, packed_buffer *);
+bool g_arch_instruction_store(GArchInstruction *, GAsmStorage *, packed_buffer_t *);
diff --git a/src/arch/instructions/raw.c b/src/arch/instructions/raw.c
index 0c27258..481dd1c 100644
--- a/src/arch/instructions/raw.c
+++ b/src/arch/instructions/raw.c
@@ -81,10 +81,10 @@ static const char *g_raw_instruction_get_keyword(const GRawInstruction *);
/* Charge une instruction depuis une mémoire tampon. */
-static bool g_raw_instruction_unserialize(GRawInstruction *, GAsmStorage *, GBinFormat *, packed_buffer *);
+static bool g_raw_instruction_unserialize(GRawInstruction *, GAsmStorage *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde une instruction dans une mémoire tampon. */
-static bool g_raw_instruction_serialize(GRawInstruction *, GAsmStorage *, packed_buffer *);
+static bool g_raw_instruction_serialize(GRawInstruction *, GAsmStorage *, packed_buffer_t *);
@@ -512,7 +512,7 @@ static const char *g_raw_instruction_get_keyword(const GRawInstruction *instr)
* *
******************************************************************************/
-static bool g_raw_instruction_unserialize(GRawInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf)
+static bool g_raw_instruction_unserialize(GRawInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GArchInstructionClass *parent; /* Classe parente à consulter */
@@ -559,7 +559,7 @@ static bool g_raw_instruction_unserialize(GRawInstruction *instr, GAsmStorage *s
* *
******************************************************************************/
-static bool g_raw_instruction_serialize(GRawInstruction *instr, GAsmStorage *storage, packed_buffer *pbuf)
+static bool g_raw_instruction_serialize(GRawInstruction *instr, GAsmStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GArchInstructionClass *parent; /* Classe parente à consulter */
diff --git a/src/arch/instructions/undefined.c b/src/arch/instructions/undefined.c
index dab7864..880e338 100644
--- a/src/arch/instructions/undefined.c
+++ b/src/arch/instructions/undefined.c
@@ -59,10 +59,10 @@ static const char *g_undef_instruction_get_keyword(const GUndefInstruction *);
/* Charge une instruction depuis une mémoire tampon. */
-static bool g_undef_instruction_unserialize(GUndefInstruction *, GAsmStorage *, GBinFormat *, packed_buffer *);
+static bool g_undef_instruction_unserialize(GUndefInstruction *, GAsmStorage *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde une instruction dans une mémoire tampon. */
-static bool g_undef_instruction_serialize(GUndefInstruction *, GAsmStorage *, packed_buffer *);
+static bool g_undef_instruction_serialize(GUndefInstruction *, GAsmStorage *, packed_buffer_t *);
@@ -296,7 +296,7 @@ const char *g_undef_instruction_get_keyword(const GUndefInstruction *instr)
* *
******************************************************************************/
-static bool g_undef_instruction_unserialize(GUndefInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf)
+static bool g_undef_instruction_unserialize(GUndefInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GArchInstructionClass *parent; /* Classe parente à consulter */
@@ -333,7 +333,7 @@ static bool g_undef_instruction_unserialize(GUndefInstruction *instr, GAsmStorag
* *
******************************************************************************/
-static bool g_undef_instruction_serialize(GUndefInstruction *instr, GAsmStorage *storage, packed_buffer *pbuf)
+static bool g_undef_instruction_serialize(GUndefInstruction *instr, GAsmStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GArchInstructionClass *parent; /* Classe parente à consulter */
diff --git a/src/arch/meta.c b/src/arch/meta.c
index 8469ed7..137a043 100644
--- a/src/arch/meta.c
+++ b/src/arch/meta.c
@@ -78,10 +78,10 @@ static const char *g_meta_instruction_get_keyword(const GMetaInstruction *);
/* Charge une instruction depuis une mémoire tampon. */
-static bool g_meta_instruction_unserialize(GMetaInstruction *, GAsmStorage *, GBinFormat *, packed_buffer *);
+static bool g_meta_instruction_unserialize(GMetaInstruction *, GAsmStorage *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde une instruction dans une mémoire tampon. */
-static bool g_meta_instruction_serialize(GMetaInstruction *, GAsmStorage *, packed_buffer *);
+static bool g_meta_instruction_serialize(GMetaInstruction *, GAsmStorage *, packed_buffer_t *);
@@ -386,7 +386,7 @@ void g_meta_instruction_add_child(GMetaInstruction *instr, GArchInstruction *chi
* *
******************************************************************************/
-static bool g_meta_instruction_unserialize(GMetaInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf)
+static bool g_meta_instruction_unserialize(GMetaInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GArchInstructionClass *parent; /* Classe parente à consulter */
@@ -414,7 +414,7 @@ static bool g_meta_instruction_unserialize(GMetaInstruction *instr, GAsmStorage
* *
******************************************************************************/
-static bool g_meta_instruction_serialize(GMetaInstruction *instr, GAsmStorage *storage, packed_buffer *pbuf)
+static bool g_meta_instruction_serialize(GMetaInstruction *instr, GAsmStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GArchInstructionClass *parent; /* Classe parente à consulter */
diff --git a/src/arch/operand-int.h b/src/arch/operand-int.h
index b019ac1..a50ec73 100644
--- a/src/arch/operand-int.h
+++ b/src/arch/operand-int.h
@@ -45,10 +45,10 @@ typedef void (* operand_print_fc) (const GArchOperand *, GBufferLine *);
typedef char * (* operand_build_tooltip_fc) (const GArchOperand *, const GLoadedBinary *);
/* Charge un opérande depuis une mémoire tampon. */
-typedef bool (* unserialize_operand_fc) (GArchOperand *, GAsmStorage *, GBinFormat *, packed_buffer *);
+typedef bool (* unserialize_operand_fc) (GArchOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde un opérande dans une mémoire tampon. */
-typedef bool (* serialize_operand_fc) (const GArchOperand *, GAsmStorage *, packed_buffer *);
+typedef bool (* serialize_operand_fc) (const GArchOperand *, GAsmStorage *, packed_buffer_t *);
/* Définition générique d'un opérande d'architecture (instance) */
diff --git a/src/arch/operand.c b/src/arch/operand.c
index 92fb1d6..3758d7f 100644
--- a/src/arch/operand.c
+++ b/src/arch/operand.c
@@ -59,10 +59,10 @@ static void g_arch_operand_finalize(GArchOperand *);
/* Charge un opérande depuis une mémoire tampon. */
-static bool g_arch_operand_unserialize(GArchOperand *, GAsmStorage *, GBinFormat *, packed_buffer *);
+static bool g_arch_operand_unserialize(GArchOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde un opérande dans une mémoire tampon. */
-static bool g_arch_operand_serialize(const GArchOperand *, GAsmStorage *, packed_buffer *);
+static bool g_arch_operand_serialize(const GArchOperand *, GAsmStorage *, packed_buffer_t *);
@@ -324,7 +324,7 @@ char *g_arch_operand_build_tooltip(const GArchOperand *operand, const GLoadedBin
* *
******************************************************************************/
-static bool g_arch_operand_unserialize(GArchOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf)
+static bool g_arch_operand_unserialize(GArchOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -349,7 +349,7 @@ static bool g_arch_operand_unserialize(GArchOperand *operand, GAsmStorage *stora
* *
******************************************************************************/
-GArchOperand *g_arch_operand_load(GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf)
+GArchOperand *g_arch_operand_load(GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf)
{
GArchOperand *result; /* Instance à retourner */
bool status; /* Bilan du chargement */
@@ -387,7 +387,7 @@ GArchOperand *g_arch_operand_load(GAsmStorage *storage, GBinFormat *format, pack
* *
******************************************************************************/
-static bool g_arch_operand_serialize(const GArchOperand *operand, GAsmStorage *storage, packed_buffer *pbuf)
+static bool g_arch_operand_serialize(const GArchOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -412,7 +412,7 @@ static bool g_arch_operand_serialize(const GArchOperand *operand, GAsmStorage *s
* *
******************************************************************************/
-bool g_arch_operand_store(const GArchOperand *operand, GAsmStorage *storage, packed_buffer *pbuf)
+bool g_arch_operand_store(const GArchOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
diff --git a/src/arch/operand.h b/src/arch/operand.h
index 4d3a80a..9e1b5a8 100644
--- a/src/arch/operand.h
+++ b/src/arch/operand.h
@@ -84,10 +84,10 @@ typedef struct _GAsmStorage GAsmStorage;
/* Charge un opérande depuis une mémoire tampon. */
-GArchOperand *g_arch_operand_load(GAsmStorage *, GBinFormat *, packed_buffer *);
+GArchOperand *g_arch_operand_load(GAsmStorage *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde un opérande dans une mémoire tampon. */
-bool g_arch_operand_store(const GArchOperand *, GAsmStorage *, packed_buffer *);
+bool g_arch_operand_store(const GArchOperand *, GAsmStorage *, packed_buffer_t *);
diff --git a/src/arch/operands/feeder-int.h b/src/arch/operands/feeder-int.h
index 9a58dd5..86bc98f 100644
--- a/src/arch/operands/feeder-int.h
+++ b/src/arch/operands/feeder-int.h
@@ -36,10 +36,10 @@ typedef int (* compare_proxy_operand_fc) (const GProxyFeeder *, const GProxyFeed
typedef void (* print_proxy_feeder_fc) (const GProxyFeeder *, GBufferLine *);
/* Charge un fournisseur depuis une mémoire tampon. */
-typedef bool (* unserialize_proxy_feeder_fc) (GProxyFeeder *, GBinFormat *, packed_buffer *);
+typedef bool (* unserialize_proxy_feeder_fc) (GProxyFeeder *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde un fournisseur dans une mémoire tampon. */
-typedef bool (* serialize_proxy_feeder_fc) (const GProxyFeeder *, packed_buffer *);
+typedef bool (* serialize_proxy_feeder_fc) (const GProxyFeeder *, packed_buffer_t *);
diff --git a/src/arch/operands/feeder.c b/src/arch/operands/feeder.c
index 6d24efc..f34475c 100644
--- a/src/arch/operands/feeder.c
+++ b/src/arch/operands/feeder.c
@@ -120,7 +120,7 @@ void g_proxy_feeder_print(const GProxyFeeder *feeder, GBufferLine *line)
* *
******************************************************************************/
-bool g_proxy_feeder_unserialize(GProxyFeeder *feeder, GBinFormat *format, packed_buffer *pbuf)
+bool g_proxy_feeder_unserialize(GProxyFeeder *feeder, GBinFormat *format, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GProxyFeederIface *iface; /* Interface utilisée */
@@ -147,7 +147,7 @@ bool g_proxy_feeder_unserialize(GProxyFeeder *feeder, GBinFormat *format, packed
* *
******************************************************************************/
-bool g_proxy_feeder_serialize(const GProxyFeeder *feeder, packed_buffer *pbuf)
+bool g_proxy_feeder_serialize(const GProxyFeeder *feeder, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GProxyFeederIface *iface; /* Interface utilisée */
diff --git a/src/arch/operands/feeder.h b/src/arch/operands/feeder.h
index d2b2cff..2d8559e 100644
--- a/src/arch/operands/feeder.h
+++ b/src/arch/operands/feeder.h
@@ -60,10 +60,10 @@ int g_proxy_feeder_compare(const GProxyFeeder *, const GProxyFeeder *);
void g_proxy_feeder_print(const GProxyFeeder *, GBufferLine *);
/* Charge un fournisseur depuis une mémoire tampon. */
-bool g_proxy_feeder_unserialize(GProxyFeeder *, GBinFormat *, packed_buffer *);
+bool g_proxy_feeder_unserialize(GProxyFeeder *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde un fournisseur dans une mémoire tampon. */
-bool g_proxy_feeder_serialize(const GProxyFeeder *, packed_buffer *);
+bool g_proxy_feeder_serialize(const GProxyFeeder *, packed_buffer_t *);
diff --git a/src/arch/operands/immediate.c b/src/arch/operands/immediate.c
index 2a3ca0b..cb39fce 100644
--- a/src/arch/operands/immediate.c
+++ b/src/arch/operands/immediate.c
@@ -156,10 +156,10 @@ static void g_imm_operand_print(const GImmOperand *, GBufferLine *);
static char *g_imm_operand_build_tooltip(const GImmOperand *, const GLoadedBinary *);
/* Charge un opérande depuis une mémoire tampon. */
-static bool g_imm_operand_unserialize(GImmOperand *, GAsmStorage *, GBinFormat *, packed_buffer *);
+static bool g_imm_operand_unserialize(GImmOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde un opérande dans une mémoire tampon. */
-static bool g_imm_operand_serialize(const GImmOperand *, GAsmStorage *, packed_buffer *);
+static bool g_imm_operand_serialize(const GImmOperand *, GAsmStorage *, packed_buffer_t *);
/* Obtient l'adresse de la cible visée par un opérande. */
static bool g_imm_operand_get_addr(const GImmOperand *, const vmpa2t *, GBinFormat *, GArchProcessor *, vmpa2t *);
@@ -211,10 +211,10 @@ static int g_known_imm_operand_compare(const GKnownImmOperand *, const GKnownImm
static void g_known_imm_operand_print(const GKnownImmOperand *, GBufferLine *);
/* Charge un opérande depuis une mémoire tampon. */
-static bool g_known_imm_operand_unserialize(GKnownImmOperand *, GAsmStorage *, GBinFormat *, packed_buffer *);
+static bool g_known_imm_operand_unserialize(GKnownImmOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde un opérande dans une mémoire tampon. */
-static bool g_known_imm_operand_serialize(const GKnownImmOperand *, GAsmStorage *, packed_buffer *);
+static bool g_known_imm_operand_serialize(const GKnownImmOperand *, GAsmStorage *, packed_buffer_t *);
/* Fournit un texte comme représentation alternative d'opérande. */
static const char *g_known_imm_operand_get_text(const GKnownImmOperand *);
@@ -1586,7 +1586,7 @@ void g_imm_operand_as_uleb128(const GImmOperand *operand, uleb128_t *val)
* *
******************************************************************************/
-static bool g_imm_operand_unserialize(GImmOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf)
+static bool g_imm_operand_unserialize(GImmOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GArchOperandClass *parent; /* Classe parente à consulter */
@@ -1639,7 +1639,7 @@ static bool g_imm_operand_unserialize(GImmOperand *operand, GAsmStorage *storage
* *
******************************************************************************/
-static bool g_imm_operand_serialize(const GImmOperand *operand, GAsmStorage *storage, packed_buffer *pbuf)
+static bool g_imm_operand_serialize(const GImmOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GArchOperandClass *parent; /* Classe parente à consulter */
@@ -1963,7 +1963,7 @@ static void g_known_imm_operand_print(const GKnownImmOperand *operand, GBufferLi
* *
******************************************************************************/
-static bool g_known_imm_operand_unserialize(GKnownImmOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf)
+static bool g_known_imm_operand_unserialize(GKnownImmOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GArchOperandClass *parent; /* Classe parente à consulter */
@@ -2006,7 +2006,7 @@ static bool g_known_imm_operand_unserialize(GKnownImmOperand *operand, GAsmStora
* *
******************************************************************************/
-static bool g_known_imm_operand_serialize(const GKnownImmOperand *operand, GAsmStorage *storage, packed_buffer *pbuf)
+static bool g_known_imm_operand_serialize(const GKnownImmOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GArchOperandClass *parent; /* Classe parente à consulter */
diff --git a/src/arch/operands/proxy.c b/src/arch/operands/proxy.c
index 469e656..bf26a4f 100644
--- a/src/arch/operands/proxy.c
+++ b/src/arch/operands/proxy.c
@@ -55,10 +55,10 @@ static void g_proxy_operand_print(const GProxyOperand *, GBufferLine *);
/* Charge un opérande depuis une mémoire tampon. */
-static bool g_proxy_operand_unserialize(GProxyOperand *, GAsmStorage *, GBinFormat *, packed_buffer *);
+static bool g_proxy_operand_unserialize(GProxyOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde un opérande dans une mémoire tampon. */
-static bool g_proxy_operand_serialize(const GProxyOperand *, GAsmStorage *, packed_buffer *);
+static bool g_proxy_operand_serialize(const GProxyOperand *, GAsmStorage *, packed_buffer_t *);
@@ -278,7 +278,7 @@ GProxyFeeder *g_proxy_operand_get_feeder(const GProxyOperand *operand)
* *
******************************************************************************/
-static bool g_proxy_operand_unserialize(GProxyOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf)
+static bool g_proxy_operand_unserialize(GProxyOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GArchOperandClass *parent; /* Classe parente à consulter */
@@ -309,7 +309,7 @@ static bool g_proxy_operand_unserialize(GProxyOperand *operand, GAsmStorage *sto
* *
******************************************************************************/
-static bool g_proxy_operand_serialize(const GProxyOperand *operand, GAsmStorage *storage, packed_buffer *pbuf)
+static bool g_proxy_operand_serialize(const GProxyOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GArchOperandClass *parent; /* Classe parente à consulter */
diff --git a/src/arch/operands/register.c b/src/arch/operands/register.c
index 81608a3..9a6de17 100644
--- a/src/arch/operands/register.c
+++ b/src/arch/operands/register.c
@@ -56,10 +56,10 @@ static void g_register_operand_print(const GRegisterOperand *, GBufferLine *);
/* Charge un opérande depuis une mémoire tampon. */
-static bool g_register_operand_unserialize(GRegisterOperand *, GAsmStorage *, GBinFormat *, packed_buffer *);
+static bool g_register_operand_unserialize(GRegisterOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde un opérande dans une mémoire tampon. */
-static bool g_register_operand_serialize(const GRegisterOperand *, GAsmStorage *, packed_buffer *);
+static bool g_register_operand_serialize(const GRegisterOperand *, GAsmStorage *, packed_buffer_t *);
@@ -315,12 +315,12 @@ bool g_register_operand_is_written(const GRegisterOperand *operand)
* *
******************************************************************************/
-static bool g_register_operand_unserialize(GRegisterOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf)
+static bool g_register_operand_unserialize(GRegisterOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GArchOperandClass *parent; /* Classe parente à consulter */
off64_t pos; /* Position dans le flux */
- packed_buffer reg_pbuf; /* Tampon des données à écrire */
+ packed_buffer_t reg_pbuf; /* Tampon des données à écrire */
GArchRegister *reg; /* Registre restauré */
parent = G_ARCH_OPERAND_CLASS(g_register_operand_parent_class);
@@ -368,12 +368,12 @@ static bool g_register_operand_unserialize(GRegisterOperand *operand, GAsmStorag
* *
******************************************************************************/
-static bool g_register_operand_serialize(const GRegisterOperand *operand, GAsmStorage *storage, packed_buffer *pbuf)
+static bool g_register_operand_serialize(const GRegisterOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GArchOperandClass *parent; /* Classe parente à consulter */
off64_t pos; /* Position dans le flux */
- packed_buffer reg_pbuf; /* Tampon des données à écrire */
+ packed_buffer_t reg_pbuf; /* Tampon des données à écrire */
parent = G_ARCH_OPERAND_CLASS(g_register_operand_parent_class);
diff --git a/src/arch/operands/target.c b/src/arch/operands/target.c
index 2c75f1c..5edc805 100644
--- a/src/arch/operands/target.c
+++ b/src/arch/operands/target.c
@@ -74,10 +74,10 @@ static char *g_target_operand_build_tooltip(const GTargetOperand *, const GLoade
/* Charge un opérande depuis une mémoire tampon. */
-static bool g_target_operand_unserialize(GTargetOperand *, GAsmStorage *, GBinFormat *, packed_buffer *);
+static bool g_target_operand_unserialize(GTargetOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde un opérande dans une mémoire tampon. */
-static bool g_target_operand_serialize(const GTargetOperand *, GAsmStorage *, packed_buffer *);
+static bool g_target_operand_serialize(const GTargetOperand *, GAsmStorage *, packed_buffer_t *);
@@ -590,7 +590,7 @@ GBinSymbol *g_target_operand_get_symbol(const GTargetOperand *operand, phys_t *d
* *
******************************************************************************/
-static bool g_target_operand_unserialize(GTargetOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf)
+static bool g_target_operand_unserialize(GTargetOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -629,7 +629,7 @@ static bool g_target_operand_unserialize(GTargetOperand *operand, GAsmStorage *s
* *
******************************************************************************/
-static bool g_target_operand_serialize(const GTargetOperand *operand, GAsmStorage *storage, packed_buffer *pbuf)
+static bool g_target_operand_serialize(const GTargetOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GArchOperand *original; /* Opérande d'origine */
diff --git a/src/arch/register-int.h b/src/arch/register-int.h
index cdbc92b..a162435 100644
--- a/src/arch/register-int.h
+++ b/src/arch/register-int.h
@@ -48,10 +48,10 @@ typedef bool (* reg_is_base_pointer_fc) (const GArchRegister *);
typedef bool (* reg_is_stack_pointer_fc) (const GArchRegister *);
/* Charge un registre depuis une mémoire tampon. */
-typedef GArchRegister * (* reg_unserialize_fc) (GArchRegister *, GAsmStorage *, packed_buffer *);
+typedef GArchRegister * (* reg_unserialize_fc) (GArchRegister *, GAsmStorage *, packed_buffer_t *);
/* Sauvegarde un registre dans une mémoire tampon. */
-typedef bool (* reg_serialize_fc) (const GArchRegister *, GAsmStorage *, packed_buffer *);
+typedef bool (* reg_serialize_fc) (const GArchRegister *, GAsmStorage *, packed_buffer_t *);
/* Représentation d'un registre (instance) */
diff --git a/src/arch/register.c b/src/arch/register.c
index 0309c62..740a06b 100644
--- a/src/arch/register.c
+++ b/src/arch/register.c
@@ -50,10 +50,10 @@ static void g_arch_register_finalize(GArchRegister *);
/* Charge un registre depuis une mémoire tampon. */
-static GArchRegister *g_arch_register_unserialize(GArchRegister *, GAsmStorage *, packed_buffer *);
+static GArchRegister *g_arch_register_unserialize(GArchRegister *, GAsmStorage *, packed_buffer_t *);
/* Sauvegarde un registre dans une mémoire tampon. */
-static bool g_arch_register_serialize(const GArchRegister *, GAsmStorage *, packed_buffer *);
+static bool g_arch_register_serialize(const GArchRegister *, GAsmStorage *, packed_buffer_t *);
@@ -280,7 +280,7 @@ bool g_arch_register_is_stack_pointer(const GArchRegister *reg)
* *
******************************************************************************/
-static GArchRegister *g_arch_register_unserialize(GArchRegister *reg, GAsmStorage *storage, packed_buffer *pbuf)
+static GArchRegister *g_arch_register_unserialize(GArchRegister *reg, GAsmStorage *storage, packed_buffer_t *pbuf)
{
GArchRegister *result; /* Instance à retourner */
@@ -304,7 +304,7 @@ static GArchRegister *g_arch_register_unserialize(GArchRegister *reg, GAsmStorag
* *
******************************************************************************/
-GArchRegister *g_arch_register_load(GAsmStorage *storage, packed_buffer *pbuf)
+GArchRegister *g_arch_register_load(GAsmStorage *storage, packed_buffer_t *pbuf)
{
GArchRegister *result; /* Instance à retourner */
GArchRegister *dummy; /* Patron du type de registre */
@@ -343,7 +343,7 @@ GArchRegister *g_arch_register_load(GAsmStorage *storage, packed_buffer *pbuf)
* *
******************************************************************************/
-static bool g_arch_register_serialize(const GArchRegister *reg, GAsmStorage *storage, packed_buffer *pbuf)
+static bool g_arch_register_serialize(const GArchRegister *reg, GAsmStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -368,7 +368,7 @@ static bool g_arch_register_serialize(const GArchRegister *reg, GAsmStorage *sto
* *
******************************************************************************/
-bool g_arch_register_store(const GArchRegister *reg, GAsmStorage *storage, packed_buffer *pbuf)
+bool g_arch_register_store(const GArchRegister *reg, GAsmStorage *storage, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
diff --git a/src/arch/register.h b/src/arch/register.h
index 10fa428..36bd9d9 100644
--- a/src/arch/register.h
+++ b/src/arch/register.h
@@ -79,10 +79,10 @@ typedef struct _GAsmStorage GAsmStorage;
/* Charge un registre depuis une mémoire tampon. */
-GArchRegister *g_arch_register_load(GAsmStorage *, packed_buffer *);
+GArchRegister *g_arch_register_load(GAsmStorage *, packed_buffer_t *);
/* Sauvegarde un registre dans une mémoire tampon. */
-bool g_arch_register_store(const GArchRegister *, GAsmStorage *, packed_buffer *);
+bool g_arch_register_store(const GArchRegister *, GAsmStorage *, packed_buffer_t *);
diff --git a/src/arch/storage.c b/src/arch/storage.c
index 269228c..41fa602 100644
--- a/src/arch/storage.c
+++ b/src/arch/storage.c
@@ -394,7 +394,7 @@ static void g_ins_caching_process(GInsCaching *caching, GtkStatusStack *status)
static void g_ins_caching_process_load(GInsCaching *caching, GtkStatusStack *status)
{
GAsmStorage *storage; /* Cache de destinartion */
- packed_buffer pbuf; /* Tampon des données à écrire */
+ packed_buffer_t pbuf; /* Tampon des données à écrire */
off64_t i; /* Boucle de parcours */
off64_t pos; /* Position courante */
GArchInstruction *instr; /* Instruction à traiter */
@@ -459,7 +459,7 @@ static void g_ins_caching_process_store(GInsCaching *caching, GtkStatusStack *st
{
GArchProcessor *proc; /* Ensemble à traiter */
GAsmStorage *storage; /* Cache de destinartion */
- packed_buffer pbuf; /* Tampon des données à écrire */
+ packed_buffer_t pbuf; /* Tampon des données à écrire */
size_t count; /* Quantité d'instructions */
phys_t last_phys; /* Dernière position physique */
size_t i; /* Boucle de parcours #1 */
@@ -1007,7 +1007,7 @@ static bool g_asm_storage_compress(const GAsmStorage *storage)
static bool g_asm_storage_read_types(GAsmStorage *storage)
{
bool result; /* Bilan à enregistrer */
- packed_buffer pbuf; /* Tampon des données à lire */
+ packed_buffer_t pbuf; /* Tampon des données à lire */
size_t i; /* Boucle de parcours */
unsigned char len; /* Taille d'un nom de type */
char *name; /* Désignation d'un type */
@@ -1078,7 +1078,7 @@ static bool g_asm_storage_read_types(GAsmStorage *storage)
* *
******************************************************************************/
-GObject *g_asm_storage_create_object(GAsmStorage *storage, packed_buffer *pbuf)
+GObject *g_asm_storage_create_object(GAsmStorage *storage, packed_buffer_t *pbuf)
{
GObject *result; /* Nouvelle instance à renvoyer*/
size_t index; /* Indice du point d'insertion */
@@ -1118,7 +1118,7 @@ GObject *g_asm_storage_create_object(GAsmStorage *storage, packed_buffer *pbuf)
* *
******************************************************************************/
-bool g_asm_storage_store_object_gtype(GAsmStorage *storage, GObject *obj, packed_buffer *pbuf)
+bool g_asm_storage_store_object_gtype(GAsmStorage *storage, GObject *obj, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
GType gtype; /* Type à enregistrer */
@@ -1184,7 +1184,7 @@ bool g_asm_storage_store_object_gtype(GAsmStorage *storage, GObject *obj, packed
static bool g_asm_storage_write_types(GAsmStorage *storage)
{
bool result; /* Bilan à enregistrer */
- packed_buffer pbuf; /* Tampon des données à écrire */
+ packed_buffer_t pbuf; /* Tampon des données à écrire */
size_t i; /* Boucle de parcours */
const gchar *name; /* Désignation d'un type */
size_t len; /* Taille de ce nom */
@@ -1241,7 +1241,7 @@ static bool g_asm_storage_write_types(GAsmStorage *storage)
* *
******************************************************************************/
-bool _g_asm_storage_load_data(const GAsmStorage *storage, StorageFileType type, packed_buffer *pbuf, off64_t pos)
+bool _g_asm_storage_load_data(const GAsmStorage *storage, StorageFileType type, packed_buffer_t *pbuf, off64_t pos)
{
bool result; /* Bilan à retourner */
int fd; /* Flux ciblé */
@@ -1302,7 +1302,7 @@ bool _g_asm_storage_load_data(const GAsmStorage *storage, StorageFileType type,
* *
******************************************************************************/
-bool _g_asm_storage_store_data(const GAsmStorage *storage, StorageFileType type, packed_buffer *pbuf, off64_t *pos)
+bool _g_asm_storage_store_data(const GAsmStorage *storage, StorageFileType type, packed_buffer_t *pbuf, off64_t *pos)
{
bool result; /* Bilan à retourner */
int fd; /* Flux ciblé */
@@ -1517,7 +1517,7 @@ bool g_asm_storage_open(GAsmStorage *storage, GBinFormat *format, wgroup_id_t gi
* *
******************************************************************************/
-GArchInstruction *g_asm_storage_get_instruction_at(GAsmStorage *storage, GBinFormat *format, off64_t index, packed_buffer *pbuf)
+GArchInstruction *g_asm_storage_get_instruction_at(GAsmStorage *storage, GBinFormat *format, off64_t index, packed_buffer_t *pbuf)
{
GArchInstruction *result; /* Instruction à renvoyer */
off64_t pos; /* Position dans le cache */
diff --git a/src/arch/storage.h b/src/arch/storage.h
index 35e3a7d..df4c573 100644
--- a/src/arch/storage.h
+++ b/src/arch/storage.h
@@ -67,10 +67,10 @@ GAsmStorage *g_asm_storage_new_compressed(GArchProcessor *, const gchar *);
bool g_asm_storage_has_cache(const GAsmStorage *);
/* Crée une nouvelle instance d'objet à partir de son type. */
-GObject *g_asm_storage_create_object(GAsmStorage *, packed_buffer *);
+GObject *g_asm_storage_create_object(GAsmStorage *, packed_buffer_t *);
/* Sauvegarde le type d'un objet instancié. */
-bool g_asm_storage_store_object_gtype(GAsmStorage *, GObject *, packed_buffer *);
+bool g_asm_storage_store_object_gtype(GAsmStorage *, GObject *, packed_buffer_t *);
/* Type de fichier intermédiaire */
typedef enum _StorageFileType
@@ -82,7 +82,7 @@ typedef enum _StorageFileType
} StorageFileType;
/* Charge des données rassemblées. */
-bool _g_asm_storage_load_data(const GAsmStorage *, StorageFileType, packed_buffer *, off64_t);
+bool _g_asm_storage_load_data(const GAsmStorage *, StorageFileType, packed_buffer_t *, off64_t);
#define g_asm_storage_load_instruction_data(s, b, p) \
_g_asm_storage_load_data(s, SFT_INSTRUCTION, b, p)
@@ -94,7 +94,7 @@ bool _g_asm_storage_load_data(const GAsmStorage *, StorageFileType, packed_buffe
_g_asm_storage_load_data(s, SFT_REGISTER, b, p)
/* Sauvegarde des données rassemblées. */
-bool _g_asm_storage_store_data(const GAsmStorage *, StorageFileType, packed_buffer *, off64_t *);
+bool _g_asm_storage_store_data(const GAsmStorage *, StorageFileType, packed_buffer_t *, off64_t *);
#define g_asm_storage_store_instruction_data(s, b, p) \
_g_asm_storage_store_data(s, SFT_INSTRUCTION, b, p)
@@ -109,7 +109,7 @@ bool _g_asm_storage_store_data(const GAsmStorage *, StorageFileType, packed_buff
bool g_asm_storage_open(GAsmStorage *, GBinFormat *, wgroup_id_t);
/* Fournit l'instruction correspondant à une position indicée. */
-GArchInstruction *g_asm_storage_get_instruction_at(GAsmStorage *, GBinFormat *, off64_t, packed_buffer *);
+GArchInstruction *g_asm_storage_get_instruction_at(GAsmStorage *, GBinFormat *, off64_t, packed_buffer_t *);
/* Programme une sauvegarde complète et compressée. */
void g_asm_storage_save(GAsmStorage *);
diff --git a/src/arch/vmpa.c b/src/arch/vmpa.c
index 184d334..b172acf 100644
--- a/src/arch/vmpa.c
+++ b/src/arch/vmpa.c
@@ -453,7 +453,7 @@ phys_t compute_vmpa_diff(const vmpa2t *a, const vmpa2t *b)
* *
******************************************************************************/
-bool unpack_vmpa(vmpa2t *addr, packed_buffer *pbuf)
+bool unpack_vmpa(vmpa2t *addr, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -480,7 +480,7 @@ bool unpack_vmpa(vmpa2t *addr, packed_buffer *pbuf)
* *
******************************************************************************/
-bool pack_vmpa(const vmpa2t *addr, packed_buffer *pbuf)
+bool pack_vmpa(const vmpa2t *addr, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -1319,7 +1319,7 @@ void compute_mrange_end_addr(const mrange_t *range, vmpa2t *addr)
* *
******************************************************************************/
-bool unpack_mrange(mrange_t *range, packed_buffer *pbuf)
+bool unpack_mrange(mrange_t *range, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -1346,7 +1346,7 @@ bool unpack_mrange(mrange_t *range, packed_buffer *pbuf)
* *
******************************************************************************/
-bool pack_mrange(const mrange_t *range, packed_buffer *pbuf)
+bool pack_mrange(const mrange_t *range, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
diff --git a/src/arch/vmpa.h b/src/arch/vmpa.h
index 5c82885..f353ebd 100644
--- a/src/arch/vmpa.h
+++ b/src/arch/vmpa.h
@@ -125,10 +125,10 @@ void align_vmpa(vmpa2t *, phys_t);
phys_t compute_vmpa_diff(const vmpa2t *, const vmpa2t *);
/* Lit la définition d'une adresse depuis un tampon. */
-bool unpack_vmpa(vmpa2t *, packed_buffer *);
+bool unpack_vmpa(vmpa2t *, packed_buffer_t *);
/* Ecrit la définition d'une adresse dans un tampon. */
-bool pack_vmpa(const vmpa2t *, packed_buffer *);
+bool pack_vmpa(const vmpa2t *, packed_buffer_t *);
/* Transforme une adresse physique en chaîne de caractères. */
char *vmpa2_phys_to_string(const vmpa2t *, MemoryDataSize, char [VMPA_MAX_LEN], size_t *);
@@ -224,10 +224,10 @@ bool mrange_intersects_mrange(const mrange_t *, const mrange_t *);
void compute_mrange_end_addr(const mrange_t *, vmpa2t *);
/* Lit la définition d'une couverture depuis un tampon. */
-bool unpack_mrange(mrange_t *, packed_buffer *);
+bool unpack_mrange(mrange_t *, packed_buffer_t *);
/* Ecrit la définition d'une couverture dans un tampon. */
-bool pack_mrange(const mrange_t *, packed_buffer *);
+bool pack_mrange(const mrange_t *, packed_buffer_t *);
/* Transforme un emplacement physique en chaîne de caractères. */
char *mrange_phys_to_string(const mrange_t *, MemoryDataSize, bool, char [VMPA_MAX_LEN], size_t *);
diff --git a/src/common/packed.h b/src/common/packed.h
index 8158bb4..a9a15cb 100644
--- a/src/common/packed.h
+++ b/src/common/packed.h
@@ -47,9 +47,6 @@ typedef struct _packed_buffer_t
} packed_buffer_t;
-typedef struct _packed_buffer_t packed_buffer; /* REMME */
-
-
/* Initialise un paquet réseau pour une constitution. */
void init_packed_buffer(packed_buffer_t *);
diff --git a/src/format/strsym.c b/src/format/strsym.c
index aedd779..d5b9157 100644
--- a/src/format/strsym.c
+++ b/src/format/strsym.c
@@ -98,10 +98,10 @@ int g_string_symbol_compare(const GStrSymbol *, const GStrSymbol *);
void g_string_symbol_print(const GStrSymbol *, GBufferLine *);
/* Charge un fournisseur depuis une mémoire tampon. */
-bool g_string_symbol_unserialize(GStrSymbol *, GBinFormat *, packed_buffer *);
+bool g_string_symbol_unserialize(GStrSymbol *, GBinFormat *, packed_buffer_t *);
/* Sauvegarde un fournisseur dans une mémoire tampon. */
-bool g_string_symbol_serialize(const GStrSymbol *, packed_buffer *);
+bool g_string_symbol_serialize(const GStrSymbol *, packed_buffer_t *);
@@ -860,7 +860,7 @@ void g_string_symbol_print(const GStrSymbol *symbol, GBufferLine *line)
* *
******************************************************************************/
-bool g_string_symbol_unserialize(GStrSymbol *symbol, GBinFormat *format, packed_buffer *pbuf)
+bool g_string_symbol_unserialize(GStrSymbol *symbol, GBinFormat *format, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
vmpa2t addr; /* Adresse à cibler */
@@ -885,7 +885,7 @@ bool g_string_symbol_unserialize(GStrSymbol *symbol, GBinFormat *format, packed_
* *
******************************************************************************/
-bool g_string_symbol_serialize(const GStrSymbol *symbol, packed_buffer *pbuf)
+bool g_string_symbol_serialize(const GStrSymbol *symbol, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
const mrange_t *range; /* Emplacement du symbole */
diff --git a/src/glibext/gbinarycursor.c b/src/glibext/gbinarycursor.c
index 11ecddc..5308fdf 100644
--- a/src/glibext/gbinarycursor.c
+++ b/src/glibext/gbinarycursor.c
@@ -85,10 +85,10 @@ static void g_binary_cursor_show_status(const GBinaryCursor *, GtkStatusStack *,
/* Exporte la définition d'un emplacement dans un flux réseau. */
-static bool g_binary_cursor_serialize(const GBinaryCursor *, packed_buffer *);
+static bool g_binary_cursor_serialize(const GBinaryCursor *, packed_buffer_t *);
/* Importe la définition d'un emplacement depuis un flux réseau. */
-static bool g_binary_cursor_unserialize(GBinaryCursor *, packed_buffer *);
+static bool g_binary_cursor_unserialize(GBinaryCursor *, packed_buffer_t *);
@@ -496,7 +496,7 @@ void g_binary_cursor_retrieve(const GBinaryCursor *cursor, vmpa2t *addr)
* *
******************************************************************************/
-static bool g_binary_cursor_serialize(const GBinaryCursor *cursor, packed_buffer *pbuf)
+static bool g_binary_cursor_serialize(const GBinaryCursor *cursor, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -520,7 +520,7 @@ static bool g_binary_cursor_serialize(const GBinaryCursor *cursor, packed_buffer
* *
******************************************************************************/
-static bool g_binary_cursor_unserialize(GBinaryCursor *cursor, packed_buffer *pbuf)
+static bool g_binary_cursor_unserialize(GBinaryCursor *cursor, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
diff --git a/src/glibext/glinecursor-int.h b/src/glibext/glinecursor-int.h
index 427ecdd..b440f76 100644
--- a/src/glibext/glinecursor-int.h
+++ b/src/glibext/glinecursor-int.h
@@ -46,10 +46,10 @@ typedef char * (* build_cursor_label_fc) (const GLineCursor *);
typedef void (* show_cursor_status_fc) (const GLineCursor *, GtkStatusStack *, GLoadedContent *);
/* Exporte la définition d'un emplacement dans un flux réseau. */
-typedef bool (* serialize_cursor_fc) (const GLineCursor *, packed_buffer *);
+typedef bool (* serialize_cursor_fc) (const GLineCursor *, packed_buffer_t *);
/* Importe la définition d'un emplacement depuis un flux réseau. */
-typedef bool (* unserialize_cursor_fc) (GLineCursor *, packed_buffer *);
+typedef bool (* unserialize_cursor_fc) (GLineCursor *, packed_buffer_t *);
/* Donne les éléments requis pour la construction d'une table. */
typedef char *(* create_cursor_db_table_fc) (const char *);
diff --git a/src/glibext/glinecursor.c b/src/glibext/glinecursor.c
index 22f1962..1b2c749 100644
--- a/src/glibext/glinecursor.c
+++ b/src/glibext/glinecursor.c
@@ -272,7 +272,7 @@ void g_line_cursor_show_status(const GLineCursor *cursor, GtkStatusStack *stack,
* *
******************************************************************************/
-bool g_line_cursor_serialize(const GLineCursor *cursor, packed_buffer *pbuf)
+bool g_line_cursor_serialize(const GLineCursor *cursor, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
@@ -296,7 +296,7 @@ bool g_line_cursor_serialize(const GLineCursor *cursor, packed_buffer *pbuf)
* *
******************************************************************************/
-bool g_line_cursor_unserialize(GLineCursor *cursor, packed_buffer *pbuf)
+bool g_line_cursor_unserialize(GLineCursor *cursor, packed_buffer_t *pbuf)
{
bool result; /* Bilan à retourner */
diff --git a/src/glibext/glinecursor.h b/src/glibext/glinecursor.h
index 18cb56a..5c35c52 100644
--- a/src/glibext/glinecursor.h
+++ b/src/glibext/glinecursor.h
@@ -82,10 +82,10 @@ void g_line_cursor_show_status(const GLineCursor *, GtkStatusStack *, GLoadedCon
/* Exporte la définition d'un emplacement dans un flux réseau. */
-bool g_line_cursor_serialize(const GLineCursor *, packed_buffer *);
+bool g_line_cursor_serialize(const GLineCursor *, packed_buffer_t *);
/* Importe la définition d'un emplacement depuis un flux réseau. */
-bool g_line_cursor_unserialize(GLineCursor *, packed_buffer *);
+bool g_line_cursor_unserialize(GLineCursor *, packed_buffer_t *);