diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-08-14 20:53:39 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-08-14 20:53:39 (GMT) |
commit | 60b70b8701c822eddc65269773621690932a57bd (patch) | |
tree | d3a033c86eb091e3d81dec77b0855406d737596d /src/format | |
parent | 2c97b766469c25b09c3b173aa6b8abdb066671c1 (diff) |
Updated the Python bindings for binary symbols.
Diffstat (limited to 'src/format')
-rw-r--r-- | src/format/strsym.c | 4 | ||||
-rw-r--r-- | src/format/symbol-int.h | 2 | ||||
-rw-r--r-- | src/format/symbol.c | 12 | ||||
-rw-r--r-- | src/format/symbol.h | 4 |
4 files changed, 11 insertions, 11 deletions
diff --git a/src/format/strsym.c b/src/format/strsym.c index ed38a6b..ecfcc55 100644 --- a/src/format/strsym.c +++ b/src/format/strsym.c @@ -255,7 +255,7 @@ GBinSymbol *g_string_symbol_new_read_only(GBinFormat *format, const mrange_t *ra parent = G_BIN_SYMBOL(result); g_binary_symbol_set_range(parent, range); - g_binary_symbol_set_target_type(parent, STP_RO_STRING); + g_binary_symbol_set_stype(parent, STP_RO_STRING); result->encoding = encoding; @@ -296,7 +296,7 @@ GBinSymbol *g_string_symbol_new_dynamic(const char *string, const vmpa2t *addr, init_mrange(&range, addr, strlen(string)); g_binary_symbol_set_range(parent, &range); - g_binary_symbol_set_target_type(parent, STP_DYN_STRING); + g_binary_symbol_set_stype(parent, STP_DYN_STRING); result->encoding = encoding; diff --git a/src/format/symbol-int.h b/src/format/symbol-int.h index 1b8672d..d6717ac 100644 --- a/src/format/symbol-int.h +++ b/src/format/symbol-int.h @@ -40,7 +40,7 @@ struct _GBinSymbol GObject parent; /* A laisser en premier */ mrange_t range; /* Couverture mémoire */ - SymbolType type; /* Type du symbole */ + SymbolType stype; /* Type du symbole */ SymbolStatus status; /* Visibilité du symbole */ char *alt; /* Nom alternatif */ diff --git a/src/format/symbol.c b/src/format/symbol.c index 22403c5..149dd2a 100644 --- a/src/format/symbol.c +++ b/src/format/symbol.c @@ -123,7 +123,7 @@ static void g_binary_symbol_class_init(GBinSymbolClass *klass) static void g_binary_symbol_init(GBinSymbol *symbol) { - g_binary_symbol_set_target_type(symbol, STP_COUNT); + g_binary_symbol_set_stype(symbol, STP_COUNT); g_binary_symbol_set_status(symbol, SSS_INTERNAL); @@ -214,7 +214,7 @@ GBinSymbol *g_binary_symbol_new(const mrange_t *range, SymbolType type) result = g_object_new(G_TYPE_BIN_SYMBOL, NULL); g_binary_symbol_set_range(result, range); - g_binary_symbol_set_target_type(result, type); + g_binary_symbol_set_stype(result, type); return result; @@ -326,9 +326,9 @@ const mrange_t *g_binary_symbol_get_range(const GBinSymbol *symbol) * * ******************************************************************************/ -void g_binary_symbol_set_target_type(GBinSymbol *symbol, SymbolType type) +void g_binary_symbol_set_stype(GBinSymbol *symbol, SymbolType type) { - symbol->type = type; + symbol->stype = type; } @@ -345,9 +345,9 @@ void g_binary_symbol_set_target_type(GBinSymbol *symbol, SymbolType type) * * ******************************************************************************/ -SymbolType g_binary_symbol_get_target_type(const GBinSymbol *symbol) +SymbolType g_binary_symbol_get_stype(const GBinSymbol *symbol) { - return symbol->type; + return symbol->stype; } diff --git a/src/format/symbol.h b/src/format/symbol.h index 577a6a0..14fed23 100644 --- a/src/format/symbol.h +++ b/src/format/symbol.h @@ -98,10 +98,10 @@ void g_binary_symbol_set_range(GBinSymbol *, const mrange_t *); const mrange_t *g_binary_symbol_get_range(const GBinSymbol *); /* Définit le type du symbole. */ -void g_binary_symbol_set_target_type(GBinSymbol *, SymbolType); +void g_binary_symbol_set_stype(GBinSymbol *, SymbolType); /* Fournit le type du symbole. */ -SymbolType g_binary_symbol_get_target_type(const GBinSymbol *); +SymbolType g_binary_symbol_get_stype(const GBinSymbol *); /* Définit la visibilité du symbole. */ void g_binary_symbol_set_status(GBinSymbol *, SymbolStatus); |