diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2011-01-08 12:09:45 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2011-01-08 12:09:45 +0100 |
commit | edd64aa1323740eb4047836bfed88266d622fa79 (patch) | |
tree | c62154c10a093e9e7f7b0b0c7a12a7d7446d844a /src/ld-symbol.h | |
parent | 7ce03bac9d4b84842f029c8b83df120975e6164e (diff) | |
download | logdiag-edd64aa1323740eb4047836bfed88266d622fa79.tar.gz logdiag-edd64aa1323740eb4047836bfed88266d622fa79.tar.xz logdiag-edd64aa1323740eb4047836bfed88266d622fa79.zip |
Read terminals from Lua scripts and export them.
Also add a missing part of LdSymbol API.
Diffstat (limited to 'src/ld-symbol.h')
-rw-r--r-- | src/ld-symbol.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ld-symbol.h b/src/ld-symbol.h index 43ab4df..409eba5 100644 --- a/src/ld-symbol.h +++ b/src/ld-symbol.h @@ -44,6 +44,7 @@ struct _LdSymbol * @get_name: Get the name of the symbol. * @get_human_name: Get the localized human name of the symbol. * @get_area: Get the area of the symbol. + * @get_terminals: Get a list of symbol terminals. * @draw: Draw the symbol on a Cairo surface. */ struct _LdSymbolClass @@ -53,6 +54,7 @@ struct _LdSymbolClass const gchar *(*get_name) (LdSymbol *self); const gchar *(*get_human_name) (LdSymbol *self); void (*get_area) (LdSymbol *self, LdRectangle *area); + const LdPointArray *(*get_terminals) (LdSymbol *self); void (*draw) (LdSymbol *self, cairo_t *cr); }; @@ -62,12 +64,9 @@ GType ld_symbol_get_type (void) G_GNUC_CONST; const gchar *ld_symbol_get_name (LdSymbol *self); const gchar *ld_symbol_get_human_name (LdSymbol *self); void ld_symbol_get_area (LdSymbol *self, LdRectangle *area); +const LdPointArray *ld_symbol_get_terminals (LdSymbol *self); void ld_symbol_draw (LdSymbol *self, cairo_t *cr); -/* TODO: Interface for terminals. - * Something like a list of gdouble pairs (-> a new structure). - */ - G_END_DECLS |