From 9eab0a0903303d3c93872e7e4b6b1cb774b69b03 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Wed, 2 Jun 2021 00:32:50 +0200 Subject: Improve the code quality by renaming the type for packed buffers. --- plugins/arm/instruction.c | 8 +++--- plugins/arm/register.c | 8 +++--- plugins/arm/v7/instruction.c | 8 +++--- plugins/arm/v7/operands/estate.c | 8 +++--- plugins/arm/v7/operands/iflags.c | 8 +++--- plugins/arm/v7/operands/it.c | 8 +++--- plugins/arm/v7/operands/limitation.c | 8 +++--- plugins/arm/v7/operands/maccess.c | 8 +++--- plugins/arm/v7/operands/offset.c | 8 +++--- plugins/arm/v7/operands/register.c | 8 +++--- plugins/arm/v7/operands/reglist.c | 12 ++++----- plugins/arm/v7/operands/rotation.c | 8 +++--- plugins/arm/v7/operands/shift.c | 8 +++--- plugins/arm/v7/registers/banked.c | 4 +-- plugins/arm/v7/registers/basic.c | 4 +-- plugins/arm/v7/registers/coproc.c | 4 +-- plugins/arm/v7/registers/simd.c | 8 +++--- plugins/arm/v7/registers/special.c | 4 +-- plugins/dalvik/operands/args.c | 8 +++--- plugins/dalvik/operands/pool.c | 8 +++--- plugins/dalvik/register.c | 8 +++--- plugins/pychrysalide/analysis/storage/serialize.c | 12 ++++----- plugins/pychrysalide/analysis/storage/storage.c | 4 +-- plugins/pychrysalide/analysis/storage/tpmem.c | 4 +-- plugins/pychrysalide/common/leb128.c | 10 ++++---- src/analysis/db/admin.c | 10 ++++---- src/analysis/db/analyst.c | 30 +++++++++++------------ src/analysis/db/cdb.c | 22 ++++++++--------- src/analysis/db/client.c | 4 +-- src/analysis/db/collection.c | 16 ++++++------ src/analysis/db/collection.h | 16 ++++++------ src/analysis/db/item-int.h | 4 +-- src/analysis/db/item.c | 12 ++++----- src/analysis/db/item.h | 4 +-- src/analysis/db/items/bookmark.c | 8 +++--- src/analysis/db/items/comment.c | 8 +++--- src/analysis/db/items/move.c | 8 +++--- src/analysis/db/items/switcher.c | 8 +++--- src/analysis/db/misc/rlestr.c | 4 +-- src/analysis/db/misc/rlestr.h | 4 +-- src/analysis/db/misc/snapshot.c | 8 +++--- src/analysis/db/misc/snapshot.h | 8 +++--- src/analysis/db/misc/timestamp.c | 4 +-- src/analysis/db/misc/timestamp.h | 4 +-- src/analysis/db/server.c | 12 ++++----- src/analysis/db/snapshot.c | 14 +++++------ src/analysis/db/snapshot.h | 10 ++++---- src/analysis/storage/serialize-int.h | 4 +-- src/analysis/storage/serialize.c | 4 +-- src/analysis/storage/serialize.h | 4 +-- src/analysis/storage/storage.c | 8 +++--- src/analysis/storage/storage.h | 4 +-- src/analysis/storage/tpmem.c | 8 +++--- src/analysis/storage/tpmem.h | 4 +-- src/analysis/type-int.h | 4 +-- src/analysis/type.c | 16 ++++++------ src/analysis/types/array.c | 8 +++--- src/analysis/types/basic.c | 8 +++--- src/analysis/types/cse.c | 8 +++--- src/analysis/types/encaps.c | 8 +++--- src/analysis/types/expr.c | 8 +++--- src/analysis/types/literal.c | 8 +++--- src/analysis/types/override.c | 8 +++--- src/analysis/types/proto.c | 8 +++--- src/analysis/types/template.c | 8 +++--- src/arch/instruction-int.h | 4 +-- src/arch/instruction.c | 18 +++++++------- src/arch/instruction.h | 4 +-- src/arch/instructions/raw.c | 8 +++--- src/arch/instructions/undefined.c | 8 +++--- src/arch/meta.c | 8 +++--- src/arch/operand-int.h | 4 +-- src/arch/operand.c | 12 ++++----- src/arch/operand.h | 4 +-- src/arch/operands/feeder-int.h | 4 +-- src/arch/operands/feeder.c | 4 +-- src/arch/operands/feeder.h | 4 +-- src/arch/operands/immediate.c | 16 ++++++------ src/arch/operands/proxy.c | 8 +++--- src/arch/operands/register.c | 12 ++++----- src/arch/operands/target.c | 8 +++--- src/arch/register-int.h | 4 +-- src/arch/register.c | 12 ++++----- src/arch/register.h | 4 +-- src/arch/storage.c | 18 +++++++------- src/arch/storage.h | 10 ++++---- src/arch/vmpa.c | 8 +++--- src/arch/vmpa.h | 8 +++--- src/common/packed.h | 3 --- src/format/strsym.c | 8 +++--- src/glibext/gbinarycursor.c | 8 +++--- src/glibext/glinecursor-int.h | 4 +-- src/glibext/glinecursor.c | 4 +-- src/glibext/glinecursor.h | 4 +-- 94 files changed, 375 insertions(+), 378 deletions(-) diff --git a/plugins/arm/instruction.c b/plugins/arm/instruction.c index b08b87c..4872aba 100644 --- a/plugins/arm/instruction.c +++ b/plugins/arm/instruction.c @@ -55,10 +55,10 @@ static void g_arm_instruction_finalize(GArmInstruction *); /* Charge une instruction depuis une mémoire tampon. */ -static bool g_arm_instruction_unserialize(GArmInstruction *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_arm_instruction_unserialize(GArmInstruction *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde une instruction dans une mémoire tampon. */ -static bool g_arm_instruction_serialize(GArmInstruction *, GAsmStorage *, packed_buffer *); +static bool g_arm_instruction_serialize(GArmInstruction *, GAsmStorage *, packed_buffer_t *); @@ -287,7 +287,7 @@ ArmCondCode g_arm_instruction_get_cond(const GArmInstruction *instr) * * ******************************************************************************/ -static bool g_arm_instruction_unserialize(GArmInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_arm_instruction_unserialize(GArmInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchInstructionClass *parent; /* Classe parente à consulter */ @@ -340,7 +340,7 @@ static bool g_arm_instruction_unserialize(GArmInstruction *instr, GAsmStorage *s * * ******************************************************************************/ -static bool g_arm_instruction_serialize(GArmInstruction *instr, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_arm_instruction_serialize(GArmInstruction *instr, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchInstructionClass *parent; /* Classe parente à consulter */ diff --git a/plugins/arm/register.c b/plugins/arm/register.c index 837dfd5..5d24806 100644 --- a/plugins/arm/register.c +++ b/plugins/arm/register.c @@ -58,10 +58,10 @@ static int g_arm_register_compare(const GArmRegister *, const GArmRegister *); /* Charge un registre depuis une mémoire tampon. */ -static GArchRegister *g_arm_register_unserialize(GArmRegister *, GAsmStorage *, packed_buffer *); +static GArchRegister *g_arm_register_unserialize(GArmRegister *, GAsmStorage *, packed_buffer_t *); /* Sauvegarde un registre dans une mémoire tampon. */ -static bool g_arm_register_serialize(const GArmRegister *, GAsmStorage *, packed_buffer *); +static bool g_arm_register_serialize(const GArmRegister *, GAsmStorage *, packed_buffer_t *); @@ -244,7 +244,7 @@ static int g_arm_register_compare(const GArmRegister *a, const GArmRegister *b) * * ******************************************************************************/ -static GArchRegister *g_arm_register_unserialize(GArmRegister *reg, GAsmStorage *storage, packed_buffer *pbuf) +static GArchRegister *g_arm_register_unserialize(GArmRegister *reg, GAsmStorage *storage, packed_buffer_t *pbuf) { GArchRegister *result; /* Instance à retourner */ GArchRegisterClass *parent; /* Classe parente à consulter */ @@ -282,7 +282,7 @@ static GArchRegister *g_arm_register_unserialize(GArmRegister *reg, GAsmStorage * * ******************************************************************************/ -static bool g_arm_register_serialize(const GArmRegister *reg, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_arm_register_serialize(const GArmRegister *reg, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchRegisterClass *parent; /* Classe parente à consulter */ diff --git a/plugins/arm/v7/instruction.c b/plugins/arm/v7/instruction.c index 5c2cd98..30a5bd8 100644 --- a/plugins/arm/v7/instruction.c +++ b/plugins/arm/v7/instruction.c @@ -90,10 +90,10 @@ static char *g_armv7_instruction_build_tooltip(const GArmV7Instruction *); /* Charge une instruction depuis une mémoire tampon. */ -static bool g_armv7_instruction_unserialize(GArmV7Instruction *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_armv7_instruction_unserialize(GArmV7Instruction *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde une instruction dans une mémoire tampon. */ -static bool g_armv7_instruction_serialize(GArmV7Instruction *, GAsmStorage *, packed_buffer *); +static bool g_armv7_instruction_serialize(GArmV7Instruction *, GAsmStorage *, packed_buffer_t *); @@ -437,7 +437,7 @@ bool g_armv7_instruction_get_setflags(const GArmV7Instruction *instr) * * ******************************************************************************/ -static bool g_armv7_instruction_unserialize(GArmV7Instruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_armv7_instruction_unserialize(GArmV7Instruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchInstructionClass *parent; /* Classe parente à consulter */ @@ -481,7 +481,7 @@ static bool g_armv7_instruction_unserialize(GArmV7Instruction *instr, GAsmStorag * * ******************************************************************************/ -static bool g_armv7_instruction_serialize(GArmV7Instruction *instr, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_armv7_instruction_serialize(GArmV7Instruction *instr, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchInstructionClass *parent; /* Classe parente à consulter */ diff --git a/plugins/arm/v7/operands/estate.c b/plugins/arm/v7/operands/estate.c index be6a0ff..a76b464 100644 --- a/plugins/arm/v7/operands/estate.c +++ b/plugins/arm/v7/operands/estate.c @@ -72,10 +72,10 @@ static void g_armv7_endian_operand_print(const GArmV7EndianOperand *, GBufferLin /* Charge un opérande depuis une mémoire tampon. */ -static bool g_armv7_endian_operand_unserialize(GArmV7EndianOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_armv7_endian_operand_unserialize(GArmV7EndianOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_armv7_endian_operand_serialize(const GArmV7EndianOperand *, GAsmStorage *, packed_buffer *); +static bool g_armv7_endian_operand_serialize(const GArmV7EndianOperand *, GAsmStorage *, packed_buffer_t *); @@ -283,7 +283,7 @@ bool g_armv7_endian_operand_is_big_endian(const GArmV7EndianOperand *operand) * * ******************************************************************************/ -static bool g_armv7_endian_operand_unserialize(GArmV7EndianOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_armv7_endian_operand_unserialize(GArmV7EndianOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ @@ -321,7 +321,7 @@ static bool g_armv7_endian_operand_unserialize(GArmV7EndianOperand *operand, GAs * * ******************************************************************************/ -static bool g_armv7_endian_operand_serialize(const GArmV7EndianOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_armv7_endian_operand_serialize(const GArmV7EndianOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ diff --git a/plugins/arm/v7/operands/iflags.c b/plugins/arm/v7/operands/iflags.c index ff073c6..019fd21 100644 --- a/plugins/arm/v7/operands/iflags.c +++ b/plugins/arm/v7/operands/iflags.c @@ -70,10 +70,10 @@ static void g_armv7_iflags_operand_print(const GArmV7IFlagsOperand *, GBufferLin /* Charge un opérande depuis une mémoire tampon. */ -static bool g_armv7_iflags_operand_unserialize(GArmV7IFlagsOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_armv7_iflags_operand_unserialize(GArmV7IFlagsOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_armv7_iflags_operand_serialize(const GArmV7IFlagsOperand *, GAsmStorage *, packed_buffer *); +static bool g_armv7_iflags_operand_serialize(const GArmV7IFlagsOperand *, GAsmStorage *, packed_buffer_t *); @@ -248,7 +248,7 @@ GArchOperand *g_armv7_iflags_operand_new(bool a, bool i, bool f) * * ******************************************************************************/ -static bool g_armv7_iflags_operand_unserialize(GArmV7IFlagsOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_armv7_iflags_operand_unserialize(GArmV7IFlagsOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ @@ -304,7 +304,7 @@ static bool g_armv7_iflags_operand_unserialize(GArmV7IFlagsOperand *operand, GAs * * ******************************************************************************/ -static bool g_armv7_iflags_operand_serialize(const GArmV7IFlagsOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_armv7_iflags_operand_serialize(const GArmV7IFlagsOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ diff --git a/plugins/arm/v7/operands/it.c b/plugins/arm/v7/operands/it.c index e40b52a..6fab598 100644 --- a/plugins/arm/v7/operands/it.c +++ b/plugins/arm/v7/operands/it.c @@ -76,10 +76,10 @@ static void g_armv7_itcond_operand_print(const GArmV7ITCondOperand *, GBufferLin /* Charge un opérande depuis une mémoire tampon. */ -static bool g_armv7_itcond_operand_unserialize(GArmV7ITCondOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_armv7_itcond_operand_unserialize(GArmV7ITCondOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_armv7_itcond_operand_serialize(const GArmV7ITCondOperand *, GAsmStorage *, packed_buffer *); +static bool g_armv7_itcond_operand_serialize(const GArmV7ITCondOperand *, GAsmStorage *, packed_buffer_t *); @@ -348,7 +348,7 @@ uint8_t g_armv7_itcond_operand_get_mask(const GArmV7ITCondOperand *operand) * * ******************************************************************************/ -static bool g_armv7_itcond_operand_unserialize(GArmV7ITCondOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_armv7_itcond_operand_unserialize(GArmV7ITCondOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ @@ -382,7 +382,7 @@ static bool g_armv7_itcond_operand_unserialize(GArmV7ITCondOperand *operand, GAs * * ******************************************************************************/ -static bool g_armv7_itcond_operand_serialize(const GArmV7ITCondOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_armv7_itcond_operand_serialize(const GArmV7ITCondOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ diff --git a/plugins/arm/v7/operands/limitation.c b/plugins/arm/v7/operands/limitation.c index 5663aba..0d29545 100644 --- a/plugins/arm/v7/operands/limitation.c +++ b/plugins/arm/v7/operands/limitation.c @@ -72,10 +72,10 @@ static void g_armv7_limitation_operand_print(const GArmV7LimitationOperand *, GB /* Charge un opérande depuis une mémoire tampon. */ -static bool g_armv7_limitation_operand_unserialize(GArmV7LimitationOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_armv7_limitation_operand_unserialize(GArmV7LimitationOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_armv7_limitation_operand_serialize(const GArmV7LimitationOperand *, GAsmStorage *, packed_buffer *); +static bool g_armv7_limitation_operand_serialize(const GArmV7LimitationOperand *, GAsmStorage *, packed_buffer_t *); @@ -322,7 +322,7 @@ BarrierLimitationType g_armv7_limitation_operand_get_value(const GArmV7Limitatio * * ******************************************************************************/ -static bool g_armv7_limitation_operand_unserialize(GArmV7LimitationOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_armv7_limitation_operand_unserialize(GArmV7LimitationOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ @@ -353,7 +353,7 @@ static bool g_armv7_limitation_operand_unserialize(GArmV7LimitationOperand *oper * * ******************************************************************************/ -static bool g_armv7_limitation_operand_serialize(const GArmV7LimitationOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_armv7_limitation_operand_serialize(const GArmV7LimitationOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ diff --git a/plugins/arm/v7/operands/maccess.c b/plugins/arm/v7/operands/maccess.c index aa0e9cf..07f38a6 100644 --- a/plugins/arm/v7/operands/maccess.c +++ b/plugins/arm/v7/operands/maccess.c @@ -89,10 +89,10 @@ static void g_armv7_maccess_operand_print(const GArmV7MAccessOperand *, GBufferL /* Charge un opérande depuis une mémoire tampon. */ -static bool g_armv7_maccess_operand_unserialize(GArmV7MAccessOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_armv7_maccess_operand_unserialize(GArmV7MAccessOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_armv7_maccess_operand_serialize(const GArmV7MAccessOperand *, GAsmStorage *, packed_buffer *); +static bool g_armv7_maccess_operand_serialize(const GArmV7MAccessOperand *, GAsmStorage *, packed_buffer_t *); @@ -576,7 +576,7 @@ bool g_armv7_maccess_operand_has_to_write_back(const GArmV7MAccessOperand *opera * * ******************************************************************************/ -static bool g_armv7_maccess_operand_unserialize(GArmV7MAccessOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_armv7_maccess_operand_unserialize(GArmV7MAccessOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ @@ -672,7 +672,7 @@ static bool g_armv7_maccess_operand_unserialize(GArmV7MAccessOperand *operand, G * * ******************************************************************************/ -static bool g_armv7_maccess_operand_serialize(const GArmV7MAccessOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_armv7_maccess_operand_serialize(const GArmV7MAccessOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ diff --git a/plugins/arm/v7/operands/offset.c b/plugins/arm/v7/operands/offset.c index 75fd6a0..615e296 100644 --- a/plugins/arm/v7/operands/offset.c +++ b/plugins/arm/v7/operands/offset.c @@ -83,10 +83,10 @@ static void g_armv7_offset_operand_print(const GArmV7OffsetOperand *, GBufferLin /* Charge un opérande depuis une mémoire tampon. */ -static bool g_armv7_offset_operand_unserialize(GArmV7OffsetOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_armv7_offset_operand_unserialize(GArmV7OffsetOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_armv7_offset_operand_serialize(const GArmV7OffsetOperand *, GAsmStorage *, packed_buffer *); +static bool g_armv7_offset_operand_serialize(const GArmV7OffsetOperand *, GAsmStorage *, packed_buffer_t *); @@ -399,7 +399,7 @@ GArchOperand *g_armv7_offset_operand_get_value(const GArmV7OffsetOperand *operan * * ******************************************************************************/ -static bool g_armv7_offset_operand_unserialize(GArmV7OffsetOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_armv7_offset_operand_unserialize(GArmV7OffsetOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ @@ -450,7 +450,7 @@ static bool g_armv7_offset_operand_unserialize(GArmV7OffsetOperand *operand, GAs * * ******************************************************************************/ -static bool g_armv7_offset_operand_serialize(const GArmV7OffsetOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_armv7_offset_operand_serialize(const GArmV7OffsetOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ diff --git a/plugins/arm/v7/operands/register.c b/plugins/arm/v7/operands/register.c index c9617bd..bfbaa70 100644 --- a/plugins/arm/v7/operands/register.c +++ b/plugins/arm/v7/operands/register.c @@ -71,10 +71,10 @@ static void g_armv7_register_operand_print(const GArmV7RegisterOperand *, GBuffe /* Charge un opérande depuis une mémoire tampon. */ -static bool g_armv7_register_operand_unserialize(GArmV7RegisterOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_armv7_register_operand_unserialize(GArmV7RegisterOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_armv7_register_operand_serialize(const GArmV7RegisterOperand *, GAsmStorage *, packed_buffer *); +static bool g_armv7_register_operand_serialize(const GArmV7RegisterOperand *, GAsmStorage *, packed_buffer_t *); @@ -309,7 +309,7 @@ bool g_armv7_register_operand_is_written_back(const GArmV7RegisterOperand *opera * * ******************************************************************************/ -static bool g_armv7_register_operand_unserialize(GArmV7RegisterOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_armv7_register_operand_unserialize(GArmV7RegisterOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ @@ -359,7 +359,7 @@ static bool g_armv7_register_operand_unserialize(GArmV7RegisterOperand *operand, * * ******************************************************************************/ -static bool g_armv7_register_operand_serialize(const GArmV7RegisterOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_armv7_register_operand_serialize(const GArmV7RegisterOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ diff --git a/plugins/arm/v7/operands/reglist.c b/plugins/arm/v7/operands/reglist.c index 99fc269..9b9a817 100644 --- a/plugins/arm/v7/operands/reglist.c +++ b/plugins/arm/v7/operands/reglist.c @@ -82,10 +82,10 @@ static void g_armv7_reglist_operand_print(const GArmV7RegListOperand *, GBufferL /* Charge un opérande depuis une mémoire tampon. */ -static bool g_armv7_reglist_operand_unserialize(GArmV7RegListOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_armv7_reglist_operand_unserialize(GArmV7RegListOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_armv7_reglist_operand_serialize(const GArmV7RegListOperand *, GAsmStorage *, packed_buffer *); +static bool g_armv7_reglist_operand_serialize(const GArmV7RegListOperand *, GAsmStorage *, packed_buffer_t *); @@ -427,12 +427,12 @@ bool g_armv7_reglist_operand_has_register(const GArmV7RegListOperand *operand, c * * ******************************************************************************/ -static bool g_armv7_reglist_operand_unserialize(GArmV7RegListOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_armv7_reglist_operand_unserialize(GArmV7RegListOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ size_t count; /* Quantité de registres */ - packed_buffer reg_pbuf; /* Tampon des données à écrire */ + packed_buffer_t reg_pbuf; /* Tampon des données à écrire */ size_t i; /* Boucle de parcours */ off64_t pos; /* Position dans le flux */ GArchRegister *reg; /* Registre restauré */ @@ -489,13 +489,13 @@ static bool g_armv7_reglist_operand_unserialize(GArmV7RegListOperand *operand, G * * ******************************************************************************/ -static bool g_armv7_reglist_operand_serialize(const GArmV7RegListOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_armv7_reglist_operand_serialize(const GArmV7RegListOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ size_t i; /* Boucle de parcours */ 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_armv7_reglist_operand_parent_class); diff --git a/plugins/arm/v7/operands/rotation.c b/plugins/arm/v7/operands/rotation.c index bd99e63..05889f4 100644 --- a/plugins/arm/v7/operands/rotation.c +++ b/plugins/arm/v7/operands/rotation.c @@ -82,10 +82,10 @@ static void g_armv7_rotation_operand_print(const GArmV7RotationOperand *, GBuffe /* Charge un opérande depuis une mémoire tampon. */ -static bool g_armv7_rotation_operand_unserialize(GArmV7RotationOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_armv7_rotation_operand_unserialize(GArmV7RotationOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_armv7_rotation_operand_serialize(const GArmV7RotationOperand *, GAsmStorage *, packed_buffer *); +static bool g_armv7_rotation_operand_serialize(const GArmV7RotationOperand *, GAsmStorage *, packed_buffer_t *); @@ -395,7 +395,7 @@ GArchOperand *g_armv7_rotation_operand_get_value(const GArmV7RotationOperand *op * * ******************************************************************************/ -static bool g_armv7_rotation_operand_unserialize(GArmV7RotationOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_armv7_rotation_operand_unserialize(GArmV7RotationOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ @@ -436,7 +436,7 @@ static bool g_armv7_rotation_operand_unserialize(GArmV7RotationOperand *operand, * * ******************************************************************************/ -static bool g_armv7_rotation_operand_serialize(const GArmV7RotationOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_armv7_rotation_operand_serialize(const GArmV7RotationOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ diff --git a/plugins/arm/v7/operands/shift.c b/plugins/arm/v7/operands/shift.c index a25f36c..852e677 100644 --- a/plugins/arm/v7/operands/shift.c +++ b/plugins/arm/v7/operands/shift.c @@ -83,10 +83,10 @@ static void g_armv7_shift_operand_print(const GArmV7ShiftOperand *, GBufferLine /* Charge un opérande depuis une mémoire tampon. */ -static bool g_armv7_shift_operand_unserialize(GArmV7ShiftOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_armv7_shift_operand_unserialize(GArmV7ShiftOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_armv7_shift_operand_serialize(const GArmV7ShiftOperand *, GAsmStorage *, packed_buffer *); +static bool g_armv7_shift_operand_serialize(const GArmV7ShiftOperand *, GAsmStorage *, packed_buffer_t *); @@ -416,7 +416,7 @@ GArchOperand *g_armv7_shift_operand_get_shift_value(const GArmV7ShiftOperand *op * * ******************************************************************************/ -static bool g_armv7_shift_operand_unserialize(GArmV7ShiftOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_armv7_shift_operand_unserialize(GArmV7ShiftOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ @@ -460,7 +460,7 @@ static bool g_armv7_shift_operand_unserialize(GArmV7ShiftOperand *operand, GAsmS * * ******************************************************************************/ -static bool g_armv7_shift_operand_serialize(const GArmV7ShiftOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_armv7_shift_operand_serialize(const GArmV7ShiftOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ diff --git a/plugins/arm/v7/registers/banked.c b/plugins/arm/v7/registers/banked.c index a74eca0..daeae71 100644 --- a/plugins/arm/v7/registers/banked.c +++ b/plugins/arm/v7/registers/banked.c @@ -82,7 +82,7 @@ static GArchRegister *_g_armv7_banked_register_new(BankedRegisterTarget); /* Charge un registre depuis une mémoire tampon. */ -static GArchRegister *g_armv7_banked_register_unserialize(GArmV7BankedRegister *, GAsmStorage *, packed_buffer *); +static GArchRegister *g_armv7_banked_register_unserialize(GArmV7BankedRegister *, GAsmStorage *, packed_buffer_t *); @@ -585,7 +585,7 @@ BankedRegisterTarget g_armv7_banked_register_get_target(const GArmV7BankedRegist * * ******************************************************************************/ -static GArchRegister *g_armv7_banked_register_unserialize(GArmV7BankedRegister *reg, GAsmStorage *storage, packed_buffer *pbuf) +static GArchRegister *g_armv7_banked_register_unserialize(GArmV7BankedRegister *reg, GAsmStorage *storage, packed_buffer_t *pbuf) { GArchRegister *result; /* Instance à retourner */ uint8_t index; /* Indice du registre */ diff --git a/plugins/arm/v7/registers/basic.c b/plugins/arm/v7/registers/basic.c index dc491fe..d92f74e 100644 --- a/plugins/arm/v7/registers/basic.c +++ b/plugins/arm/v7/registers/basic.c @@ -79,7 +79,7 @@ static GArchRegister *_g_armv7_basic_register_new(uint8_t); /* Charge un registre depuis une mémoire tampon. */ -static GArchRegister *g_armv7_basic_register_unserialize(GArmV7BasicRegister *, GAsmStorage *, packed_buffer *); +static GArchRegister *g_armv7_basic_register_unserialize(GArmV7BasicRegister *, GAsmStorage *, packed_buffer_t *); @@ -320,7 +320,7 @@ GArchRegister *g_armv7_basic_register_new(uint8_t index) * * ******************************************************************************/ -static GArchRegister *g_armv7_basic_register_unserialize(GArmV7BasicRegister *reg, GAsmStorage *storage, packed_buffer *pbuf) +static GArchRegister *g_armv7_basic_register_unserialize(GArmV7BasicRegister *reg, GAsmStorage *storage, packed_buffer_t *pbuf) { GArchRegister *result; /* Instance à retourner */ uint8_t index; /* Indice du registre */ diff --git a/plugins/arm/v7/registers/coproc.c b/plugins/arm/v7/registers/coproc.c index 0190eef..acfbb81 100644 --- a/plugins/arm/v7/registers/coproc.c +++ b/plugins/arm/v7/registers/coproc.c @@ -80,7 +80,7 @@ static GArchRegister *_g_armv7_cp_register_new(uint8_t); /* Charge un registre depuis une mémoire tampon. */ -static GArchRegister *g_armv7_cp_register_unserialize(GArmV7CpRegister *, GAsmStorage *, packed_buffer *); +static GArchRegister *g_armv7_cp_register_unserialize(GArmV7CpRegister *, GAsmStorage *, packed_buffer_t *); @@ -300,7 +300,7 @@ GArchRegister *g_armv7_cp_register_new(uint8_t index) * * ******************************************************************************/ -static GArchRegister *g_armv7_cp_register_unserialize(GArmV7CpRegister *reg, GAsmStorage *storage, packed_buffer *pbuf) +static GArchRegister *g_armv7_cp_register_unserialize(GArmV7CpRegister *reg, GAsmStorage *storage, packed_buffer_t *pbuf) { GArchRegister *result; /* Instance à retourner */ uint8_t index; /* Indice du registre */ diff --git a/plugins/arm/v7/registers/simd.c b/plugins/arm/v7/registers/simd.c index 957e2f9..eedd7c8 100644 --- a/plugins/arm/v7/registers/simd.c +++ b/plugins/arm/v7/registers/simd.c @@ -82,10 +82,10 @@ static GArchRegister *_g_armv7_simd_register_new(SIMDRegisterMapping, uint8_t); /* Charge un registre depuis une mémoire tampon. */ -static GArchRegister *g_armv7_simd_register_unserialize(GArmV7SIMDRegister *, GAsmStorage *, packed_buffer *); +static GArchRegister *g_armv7_simd_register_unserialize(GArmV7SIMDRegister *, GAsmStorage *, packed_buffer_t *); /* Sauvegarde un registre dans une mémoire tampon. */ -static bool g_armv7_simd_register_serialize(const GArmV7SIMDRegister *, GAsmStorage *, packed_buffer *); +static bool g_armv7_simd_register_serialize(const GArmV7SIMDRegister *, GAsmStorage *, packed_buffer_t *); @@ -346,7 +346,7 @@ GArchRegister *g_armv7_simd_register_new(SIMDRegisterMapping mapping, uint8_t in * * ******************************************************************************/ -static GArchRegister *g_armv7_simd_register_unserialize(GArmV7SIMDRegister *reg, GAsmStorage *storage, packed_buffer *pbuf) +static GArchRegister *g_armv7_simd_register_unserialize(GArmV7SIMDRegister *reg, GAsmStorage *storage, packed_buffer_t *pbuf) { GArchRegister *result; /* Instance à retourner */ SIMDRegisterMapping mapping; /* Type de registre */ @@ -401,7 +401,7 @@ static GArchRegister *g_armv7_simd_register_unserialize(GArmV7SIMDRegister *reg, * * ******************************************************************************/ -static bool g_armv7_simd_register_serialize(const GArmV7SIMDRegister *reg, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_armv7_simd_register_serialize(const GArmV7SIMDRegister *reg, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchRegisterClass *parent; /* Classe parente à consulter */ diff --git a/plugins/arm/v7/registers/special.c b/plugins/arm/v7/registers/special.c index 8591239..ff46a1e 100644 --- a/plugins/arm/v7/registers/special.c +++ b/plugins/arm/v7/registers/special.c @@ -79,7 +79,7 @@ static GArchRegister *_g_armv7_special_register_new(SpecRegTarget); /* Charge un registre depuis une mémoire tampon. */ -static GArchRegister *g_armv7_special_register_unserialize(GArmV7SpecialRegister *, GAsmStorage *, packed_buffer *); +static GArchRegister *g_armv7_special_register_unserialize(GArmV7SpecialRegister *, GAsmStorage *, packed_buffer_t *); @@ -344,7 +344,7 @@ GArchRegister *g_armv7_special_register_new(SpecRegTarget target) * * ******************************************************************************/ -static GArchRegister *g_armv7_special_register_unserialize(GArmV7SpecialRegister *reg, GAsmStorage *storage, packed_buffer *pbuf) +static GArchRegister *g_armv7_special_register_unserialize(GArmV7SpecialRegister *reg, GAsmStorage *storage, packed_buffer_t *pbuf) { GArchRegister *result; /* Instance à retourner */ uint8_t index; /* Indice du registre */ diff --git a/plugins/dalvik/operands/args.c b/plugins/dalvik/operands/args.c index 4b87e5e..6387092 100644 --- a/plugins/dalvik/operands/args.c +++ b/plugins/dalvik/operands/args.c @@ -86,10 +86,10 @@ static void g_dalvik_args_operand_print(const GDalvikArgsOperand *, GBufferLine /* Charge un opérande depuis une mémoire tampon. */ -static bool g_dalvik_args_operand_unserialize(GDalvikArgsOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_dalvik_args_operand_unserialize(GDalvikArgsOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_dalvik_args_operand_serialize(const GDalvikArgsOperand *, GAsmStorage *, packed_buffer *); +static bool g_dalvik_args_operand_serialize(const GDalvikArgsOperand *, GAsmStorage *, packed_buffer_t *); @@ -504,7 +504,7 @@ GArchOperand *g_dalvik_args_operand_get(const GDalvikArgsOperand *operand, size_ * * ******************************************************************************/ -static bool g_dalvik_args_operand_unserialize(GDalvikArgsOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_dalvik_args_operand_unserialize(GDalvikArgsOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ @@ -550,7 +550,7 @@ static bool g_dalvik_args_operand_unserialize(GDalvikArgsOperand *operand, GAsmS * * ******************************************************************************/ -static bool g_dalvik_args_operand_serialize(const GDalvikArgsOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_dalvik_args_operand_serialize(const GDalvikArgsOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ diff --git a/plugins/dalvik/operands/pool.c b/plugins/dalvik/operands/pool.c index 6f16cdc..89bee99 100644 --- a/plugins/dalvik/operands/pool.c +++ b/plugins/dalvik/operands/pool.c @@ -86,10 +86,10 @@ static void g_dalvik_pool_operand_print(const GDalvikPoolOperand *, GBufferLine /* Charge un opérande depuis une mémoire tampon. */ -static bool g_dalvik_pool_operand_unserialize(GDalvikPoolOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_dalvik_pool_operand_unserialize(GDalvikPoolOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_dalvik_pool_operand_serialize(const GDalvikPoolOperand *, GAsmStorage *, packed_buffer *); +static bool g_dalvik_pool_operand_serialize(const GDalvikPoolOperand *, GAsmStorage *, packed_buffer_t *); @@ -549,7 +549,7 @@ uint32_t g_dalvik_pool_operand_get_index(const GDalvikPoolOperand *operand) * * ******************************************************************************/ -static bool g_dalvik_pool_operand_unserialize(GDalvikPoolOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_dalvik_pool_operand_unserialize(GDalvikPoolOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ @@ -589,7 +589,7 @@ static bool g_dalvik_pool_operand_unserialize(GDalvikPoolOperand *operand, GAsmS * * ******************************************************************************/ -static bool g_dalvik_pool_operand_serialize(const GDalvikPoolOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_dalvik_pool_operand_serialize(const GDalvikPoolOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ diff --git a/plugins/dalvik/register.c b/plugins/dalvik/register.c index 4145d27..87babfb 100644 --- a/plugins/dalvik/register.c +++ b/plugins/dalvik/register.c @@ -85,10 +85,10 @@ static GArchRegister *_g_dalvik_register_new(uint16_t); /* Charge un registre depuis une mémoire tampon. */ -static GArchRegister *g_dalvik_register_unserialize(GDalvikRegister *, GAsmStorage *, packed_buffer *); +static GArchRegister *g_dalvik_register_unserialize(GDalvikRegister *, GAsmStorage *, packed_buffer_t *); /* Sauvegarde un registre dans une mémoire tampon. */ -static bool g_dalvik_register_serialize(const GDalvikRegister *, GAsmStorage *, packed_buffer *); +static bool g_dalvik_register_serialize(const GDalvikRegister *, GAsmStorage *, packed_buffer_t *); @@ -359,7 +359,7 @@ int g_dalvik_register_compare(const GDalvikRegister *a, const GDalvikRegister *b * * ******************************************************************************/ -static GArchRegister *g_dalvik_register_unserialize(GDalvikRegister *reg, GAsmStorage *storage, packed_buffer *pbuf) +static GArchRegister *g_dalvik_register_unserialize(GDalvikRegister *reg, GAsmStorage *storage, packed_buffer_t *pbuf) { GArchRegister *result; /* Instance à retourner */ uint16_t index; /* Indice du registre */ @@ -410,7 +410,7 @@ static GArchRegister *g_dalvik_register_unserialize(GDalvikRegister *reg, GAsmSt * * ******************************************************************************/ -static bool g_dalvik_register_serialize(const GDalvikRegister *reg, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_dalvik_register_serialize(const GDalvikRegister *reg, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchRegisterClass *parent; /* Classe parente à consulter */ diff --git a/plugins/pychrysalide/analysis/storage/serialize.c b/plugins/pychrysalide/analysis/storage/serialize.c index 6e1dd41..40fcef7 100644 --- a/plugins/pychrysalide/analysis/storage/serialize.c +++ b/plugins/pychrysalide/analysis/storage/serialize.c @@ -45,10 +45,10 @@ static void py_serializable_object_interface_init(GSerializableObjectIface *, gpointer *); /* Charge un objet depuis une mémoire tampon. */ -static bool py_serializable_object_load_wrapper(GSerializableObject *, GObjectStorage *, packed_buffer *); +static bool py_serializable_object_load_wrapper(GSerializableObject *, GObjectStorage *, packed_buffer_t *); /* Sauvegarde un objet dans une mémoire tampon. */ -static bool py_serializable_object_store_wrapper(const GSerializableObject *, GObjectStorage *, packed_buffer *); +static bool py_serializable_object_store_wrapper(const GSerializableObject *, GObjectStorage *, packed_buffer_t *); @@ -117,7 +117,7 @@ static void py_serializable_object_interface_init(GSerializableObjectIface *ifac * * ******************************************************************************/ -static bool py_serializable_object_load_wrapper(GSerializableObject *object, GObjectStorage *storage, packed_buffer *pbuf) +static bool py_serializable_object_load_wrapper(GSerializableObject *object, GObjectStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ PyGILState_STATE gstate; /* Sauvegarde d'environnement */ @@ -193,7 +193,7 @@ static bool py_serializable_object_load_wrapper(GSerializableObject *object, GOb * * ******************************************************************************/ -static bool py_serializable_object_store_wrapper(const GSerializableObject *object, GObjectStorage *storage, packed_buffer *pbuf) +static bool py_serializable_object_store_wrapper(const GSerializableObject *object, GObjectStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ PyGILState_STATE gstate; /* Sauvegarde d'environnement */ @@ -278,7 +278,7 @@ static bool py_serializable_object_load(PyObject *self, PyObject *args) { PyObject *result; /* Bilan à retourner */ GObjectStorage *storage; /* Conservateur à manipuler */ - packed_buffer *pbuf; /* Tampon de données à employer*/ + packed_buffer_t *pbuf; /* Tampon de données à employer*/ int ret; /* Bilan de lecture des args. */ GSerializableObject *object; /* Version native */ bool status; /* Bilan de l'opération */ @@ -330,7 +330,7 @@ static bool py_serializable_object_store(PyObject *self, PyObject *args) { PyObject *result; /* Bilan à retourner */ GObjectStorage *storage; /* Conservateur à manipuler */ - packed_buffer *pbuf; /* Tampon de données à employer*/ + packed_buffer_t *pbuf; /* Tampon de données à employer*/ int ret; /* Bilan de lecture des args. */ GSerializableObject *object; /* Version native */ bool status; /* Bilan de l'opération */ diff --git a/plugins/pychrysalide/analysis/storage/storage.c b/plugins/pychrysalide/analysis/storage/storage.c index 1ebcc62..107980e 100644 --- a/plugins/pychrysalide/analysis/storage/storage.c +++ b/plugins/pychrysalide/analysis/storage/storage.c @@ -321,7 +321,7 @@ static PyObject *py_object_storage_unpack_object(PyObject *self, PyObject *args) { PyObject *result; /* Bilan à retourner */ const char *name; /* Désignation de groupe */ - packed_buffer *pbuf; /* Tampon de données à employer*/ + packed_buffer_t *pbuf; /* Tampon de données à employer*/ int ret; /* Bilan de lecture des args. */ GObjectStorage *storage; /* Mécanismes natifs */ GSerializableObject *object; /* Objet reconstruit ou NULL */ @@ -435,7 +435,7 @@ static PyObject *py_object_storage_pack_object(PyObject *self, PyObject *args) PyObject *result; /* Emplacement à retourner */ const char *name; /* Désignation de groupe */ GSerializableObject *object; /* Objet à traiter */ - packed_buffer *pbuf; /* Tampon de données à employer*/ + packed_buffer_t *pbuf; /* Tampon de données à employer*/ int ret; /* Bilan de lecture des args. */ GObjectStorage *storage; /* Mécanismes natifs */ bool status; /* Bilan de l'opération */ diff --git a/plugins/pychrysalide/analysis/storage/tpmem.c b/plugins/pychrysalide/analysis/storage/tpmem.c index 2cf659f..8df20b2 100644 --- a/plugins/pychrysalide/analysis/storage/tpmem.c +++ b/plugins/pychrysalide/analysis/storage/tpmem.c @@ -241,7 +241,7 @@ static PyObject *py_type_memory_read_types(PyObject *self, PyObject *args) static PyObject *py_type_memory_create_object(PyObject *self, PyObject *args) { PyObject *result; /* Instance à retourner */ - packed_buffer *pbuf; /* Tampon à consulter */ + packed_buffer_t *pbuf; /* Tampon à consulter */ int ret; /* Bilan de lecture des args. */ GTypeMemory *tpmem; /* Mémorisation native */ GObject *obj; /* Instance retournée */ @@ -290,7 +290,7 @@ static PyObject *py_type_memory_store_object_gtype(PyObject *self, PyObject *arg { PyObject *result; /* Bilan à retourner */ GObject *obj; /* Instance à traiter */ - packed_buffer *pbuf; /* Tampon à consulter */ + packed_buffer_t *pbuf; /* Tampon à consulter */ int ret; /* Bilan de lecture des args. */ GTypeMemory *tpmem; /* Mémorisation native */ bool status; /* Bilan de l'opération */ diff --git a/plugins/pychrysalide/common/leb128.c b/plugins/pychrysalide/common/leb128.c index 8e1bf28..8b15303 100644 --- a/plugins/pychrysalide/common/leb128.c +++ b/plugins/pychrysalide/common/leb128.c @@ -69,7 +69,7 @@ static PyObject *py_leb128_pack_uleb128(PyObject *self, PyObject *args) { PyObject *result; /* Valeur à retourner */ uleb128_t value; /* Valeur à manipuler */ - packed_buffer *pbuf; /* Tampon de données à employer*/ + packed_buffer_t *pbuf; /* Tampon de données à employer*/ int ret; /* Bilan de lecture des args. */ bool status; /* Bilan de l'opération */ @@ -117,7 +117,7 @@ static PyObject *py_leb128_pack_leb128(PyObject *self, PyObject *args) { PyObject *result; /* Valeur à retourner */ leb128_t value; /* Valeur à manipuler */ - packed_buffer *pbuf; /* Tampon de données à employer*/ + packed_buffer_t *pbuf; /* Tampon de données à employer*/ int ret; /* Bilan de lecture des args. */ bool status; /* Bilan de l'opération */ @@ -164,7 +164,7 @@ static PyObject *py_leb128_pack_leb128(PyObject *self, PyObject *args) static PyObject *py_leb128_unpack_uleb128(PyObject *self, PyObject *args) { PyObject *result; /* Valeur à retourner */ - packed_buffer *pbuf; /* Tampon de données à employer*/ + packed_buffer_t *pbuf; /* Tampon de données à employer*/ int ret; /* Bilan de lecture des args. */ uleb128_t value; /* Valeur à manipuler */ bool status; /* Bilan de l'opération */ @@ -218,9 +218,9 @@ static PyObject *py_leb128_unpack_uleb128(PyObject *self, PyObject *args) static PyObject *py_leb128_unpack_leb128(PyObject *self, PyObject *args) { PyObject *result; /* Valeur à retourner */ - packed_buffer *pbuf; /* Tampon de données à employer*/ + packed_buffer_t *pbuf; /* Tampon de données à employer*/ int ret; /* Bilan de lecture des args. */ - leb128_t value; /* Valeur à manipuler */ + leb128_t value; /* Valeur à manipuler */ bool status; /* Bilan de l'opération */ #define LEB128_UNPACK_LEB128_METHOD PYTHON_METHOD_DEF \ 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 *); -- cgit v0.11.2-87-g4458