aboutsummaryrefslogtreecommitdiff
path: root/src/ld-symbol.h
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2010-09-25 20:59:20 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2010-10-17 14:05:53 +0200
commitefe45e9601a268566ddbb99c917beeca76be50a0 (patch)
tree6f3b928fa6ad3b8321e6b161ba0c508f27a812a2 /src/ld-symbol.h
parent23a1f25130ebe17a4bf7939487942e950195e33f (diff)
downloadlogdiag-efe45e9601a268566ddbb99c917beeca76be50a0.tar.gz
logdiag-efe45e9601a268566ddbb99c917beeca76be50a0.tar.xz
logdiag-efe45e9601a268566ddbb99c917beeca76be50a0.zip
Convert LdSymbol into an abstract class.
Created LdLuaSymbol, which subclasses LdSymbol.
Diffstat (limited to 'src/ld-symbol.h')
-rw-r--r--src/ld-symbol.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/ld-symbol.h b/src/ld-symbol.h
index f3a2d35..3d5967c 100644
--- a/src/ld-symbol.h
+++ b/src/ld-symbol.h
@@ -45,19 +45,26 @@ struct _LdSymbol
gchar *name;
};
+/**
+ * LdSymbolClass:
+ * @parent_class: The parent class.
+ * @draw: Draw the symbol on a Cairo surface.
+ */
struct _LdSymbolClass
{
GObjectClass parent_class;
+
+ void (*draw) (LdSymbol *self, cairo_t *cr);
};
GType ld_symbol_get_type (void) G_GNUC_CONST;
-LdSymbol *ld_symbol_new (LdLibrary *library);
gchar *ld_symbol_build_identifier (LdSymbol *self);
-void ld_symbol_draw (LdSymbol *self, cairo_t *cr, GHashTable *param);
-/* TODO: An interface for symbol terminals. */
+void ld_symbol_draw (LdSymbol *self, cairo_t *cr);
+
+/* TODO: An interface for symbol terminals etc. */
G_END_DECLS