diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-12-08 20:50:56 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-12-08 20:50:56 (GMT) |
commit | 39116dce7d40dab310e929f92fdbfc865b5fac20 (patch) | |
tree | a0b8dc11070f8a68de6b6f7bbc84b3d4ccf25afd /src/format/symbol.h | |
parent | cf11fcf862b98ef57935bcfccd6f2f6ae3f925f6 (diff) |
Introduced the symbol visibility.
Diffstat (limited to 'src/format/symbol.h')
-rw-r--r-- | src/format/symbol.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/format/symbol.h b/src/format/symbol.h index da51262..8aabfdf 100644 --- a/src/format/symbol.h +++ b/src/format/symbol.h @@ -51,6 +51,18 @@ typedef enum _SymbolType } SymbolType; +/* Visibilité du symbole */ +typedef enum _SymbolStatus +{ + SSS_INTERNAL, /* Visibilité nulle */ + SSS_EXPORTED, /* Disponibilité extérieure */ + SSS_IMPORTED, /* Besoin interne */ + + SSS_COUNT + +} SymbolStatus; + + #define G_TYPE_BIN_SYMBOL g_binary_symbol_get_type() #define G_BIN_SYMBOL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_binary_symbol_get_type(), GBinSymbol)) #define G_IS_BIN_SYMBOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), g_binary_symbol_get_type())) @@ -90,6 +102,12 @@ void g_binary_symbol_set_target_type(GBinSymbol *, SymbolType); /* Fournit le type du symbole. */ SymbolType g_binary_symbol_get_target_type(const GBinSymbol *); +/* Définit la visibilité du symbole. */ +void g_binary_symbol_set_status(GBinSymbol *, SymbolStatus); + +/* Fournit la visibilité du symbole. */ +SymbolStatus g_binary_symbol_get_status(const GBinSymbol *); + /* Fournit une étiquette pour viser un symbole. */ const char *g_binary_symbol_get_label(GBinSymbol *); |