summaryrefslogtreecommitdiff
path: root/src/analysis/routine.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2010-06-06 14:08:21 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2010-06-06 14:08:21 (GMT)
commitb5934203c1cb287eb46b07e866b54d1de240b87b (patch)
tree283fad2a6d4517b84985331e5234095c71c8734b /src/analysis/routine.h
parente72eea33b9967d4169d2c8ffcb4a9e85c4c3ee8c (diff)
Used a treeview with icons to show all known symbols.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@165 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/routine.h')
-rw-r--r--src/analysis/routine.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/analysis/routine.h b/src/analysis/routine.h
index 0b673f7..cd17bf3 100644
--- a/src/analysis/routine.h
+++ b/src/analysis/routine.h
@@ -58,6 +58,17 @@ typedef struct _GBinRoutine GBinRoutine;
typedef struct _GBinRoutineClass GBinRoutineClass;
+/* Modalités de représentation en chaîne */
+typedef enum _Routine2StringOptions
+{
+ RSO_LONG_TYPE = (1 << 0), /* Type avec espace de noms */
+ RSO_NAMESPACE = (1 << 1) /* Affichage de l'appartenance */
+
+} Routine2StringOptions;
+
+#define RSO_ALL (RSO_LONG_TYPE | RSO_NAMESPACE)
+
+
/* Indique le type définit pour une représentation de routine. */
GType g_bin_routine_get_type(void);
@@ -88,6 +99,9 @@ void g_binary_routine_set_type(GBinRoutine *, RoutineType);
/* Définit le groupe d'appartenance d'une routine donnée. */
void g_binary_routine_set_namespace(GBinRoutine *, GOpenidaType *);
+/* Fournit le groupe d'appartenance d'une routine donnée. */
+GOpenidaType *g_binary_routine_get_namespace(const GBinRoutine *);
+
/* Définit le nom humain d'une routine. */
void g_binary_routine_set_name(GBinRoutine *, char *);
@@ -113,7 +127,9 @@ void g_binary_routine_register_if_needed(GBinRoutine *, size_t, bool);
size_t g_binary_routine_get_var_index_from_offset(const GBinRoutine *, size_t, bool);
/* Décrit le prototype de la routine sous forme de caractères. */
-char *g_binary_routine_to_string(const GBinRoutine *);
+char *_g_binary_routine_to_string(const GBinRoutine *, Routine2StringOptions);
+
+#define g_binary_routine_to_string(r) _g_binary_routine_to_string((r), RSO_ALL)