diff options
Diffstat (limited to 'src/analysis/types/proto.c')
-rw-r--r-- | src/analysis/types/proto.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/analysis/types/proto.c b/src/analysis/types/proto.c index e851000..3cb074a 100644 --- a/src/analysis/types/proto.c +++ b/src/analysis/types/proto.c @@ -31,6 +31,7 @@ #include "../type-int.h" #include "../../common/extstr.h" +#include "../../common/leb128.h" @@ -67,10 +68,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 +234,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 +286,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 */ @@ -399,7 +400,7 @@ static char *g_proto_type_to_string(const GProtoType *type, bool include) { char *result; /* Valeur à renvoyer */ GDataType *base; /* Version d'instance parente */ - type_obj_extra *extra; /* Données insérées à modifier */ + type_extra_data_t *extra; /* Données insérées à modifier */ char *namespace; /* Groupe d'appartenance */ size_t i; /* Boucle de parcours */ char *arg; /* Argument à décrire */ @@ -423,7 +424,7 @@ static char *g_proto_type_to_string(const GProtoType *type, bool include) { extra = GET_DATA_TYPE_EXTRA(base); - g_bit_lock(&extra->lock, HOLE_LOCK_BIT); + LOCK_GOBJECT_EXTRA(extra); if (base->namespace != NULL) { @@ -437,7 +438,7 @@ static char *g_proto_type_to_string(const GProtoType *type, bool include) } - g_bit_unlock(&extra->lock, HOLE_LOCK_BIT); + UNLOCK_GOBJECT_EXTRA(extra); } |