diff options
Diffstat (limited to 'src/gtksnippet.h')
-rw-r--r-- | src/gtksnippet.h | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/src/gtksnippet.h b/src/gtksnippet.h index 349fd20..1858796 100644 --- a/src/gtksnippet.h +++ b/src/gtksnippet.h @@ -37,6 +37,24 @@ +typedef struct _code_line_info +{ + uint64_t offset; /* Position de l'instruction */ + asm_instr *instr; /* Eventuelle instruction */ + char *comment; /* Eventuel commentaire */ + + gboolean bp_set; /* Point d'arrêt défini */ + +} code_line_info; + + + + +/* Crée une ligne de représentation insérable. */ +code_line_info *create_code_line_info(uint64_t, asm_instr *, const char *); + +/* Supprime une ligne de représentation. */ +void delete_code_line_info(code_line_info *); @@ -63,15 +81,6 @@ typedef enum _AdressMode -typedef struct _code_line_info -{ - uint64_t offset; /* Position de l'instruction */ - asm_instr *instr; /* Eventuelle instruction */ - char *comment; /* Eventuel commentaire */ - - gboolean bp_set; /* Point d'arrêt défini */ - -} code_line_info; struct _GtkSnippet { @@ -113,7 +122,7 @@ void gtk_snippet_test(GtkSnippet *cpu); void gtk_snippet_set_processor(GtkSnippet *, const asm_processor *); /* Ajoute une ligne dans le bloc de représentation. */ -void gtk_snippet_add_line(GtkSnippet *, uint64_t, asm_instr *, const char *); +void gtk_snippet_add_line(GtkSnippet *, const code_line_info *); /* Définit le contenu visuel à partir des infos enregistrées. */ void gtk_snippet_build_content(GtkSnippet *); |