summaryrefslogtreecommitdiff
path: root/src/ld-lua-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-lua-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-lua-symbol.h')
-rw-r--r--src/ld-lua-symbol.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/src/ld-lua-symbol.h b/src/ld-lua-symbol.h
new file mode 100644
index 0000000..a90feb7
--- /dev/null
+++ b/src/ld-lua-symbol.h
@@ -0,0 +1,63 @@
+/*
+ * ld-lua-symbol.h
+ *
+ * This file is a part of logdiag.
+ * Copyright Přemysl Janouch 2010. All rights reserved.
+ *
+ * See the file LICENSE for licensing information.
+ *
+ */
+
+#ifndef __LD_LUA_SYMBOL_H__
+#define __LD_LUA_SYMBOL_H__
+
+G_BEGIN_DECLS
+
+
+#define LD_TYPE_LUA_SYMBOL (ld_lua_symbol_get_type ())
+#define LD_LUA_SYMBOL(obj) (G_TYPE_CHECK_INSTANCE_CAST \
+ ((obj), LD_TYPE_LUA_SYMBOL, LdLuaSymbol))
+#define LD_LUA_SYMBOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST \
+ ((klass), LD_TYPE_LUA_SYMBOL, LdLuaSymbolClass))
+#define LD_IS_LUA_SYMBOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE \
+ ((obj), LD_TYPE_LUA_SYMBOL))
+#define LD_IS_LUA_SYMBOL_CLASS(klass) (G_TYPE_CHECK_INSTANCE_TYPE \
+ ((klass), LD_TYPE_LUA_SYMBOL))
+#define LD_LUA_SYMBOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS \
+ ((obj), LD_LUA_SYMBOL, LdLuaSymbolClass))
+
+typedef struct _LdLuaSymbol LdLuaSymbol;
+typedef struct _LdLuaSymbolPrivate LdLuaSymbolPrivate;
+typedef struct _LdLuaSymbolClass LdLuaSymbolClass;
+
+
+/**
+ * LdLuaSymbol:
+ * @name: The name of this symbol.
+ */
+struct _LdLuaSymbol
+{
+/*< private >*/
+ LdSymbol parent_instance;
+ LdLuaSymbolPrivate *priv;
+};
+
+/**
+ * LdLuaSymbolClass:
+ * @parent_class: The parent class.
+ */
+struct _LdLuaSymbolClass
+{
+ LdSymbolClass parent_class;
+};
+
+
+GType ld_lua_symbol_get_type (void) G_GNUC_CONST;
+
+LdSymbol *ld_lua_symbol_new (LdSymbolCategory *parent, LdLua *lua);
+
+
+G_END_DECLS
+
+#endif /* ! __LD_LUA_SYMBOL_H__ */
+