Redesign the library and related components.

This step is needed, since the current design is quite chaotic
and it would not be possible to finish the application.

There's still a lot to be done.

After this step, it's time to implement the rest of LdLua.
This commit is contained in:
2010-09-30 05:19:31 +02:00
parent 0c9b297e50
commit e0e63649dc
10 changed files with 138 additions and 84 deletions

View File

@@ -12,9 +12,9 @@
#include "config.h"
#include "ld-library.h"
#include "ld-symbol-category.h"
#include "ld-symbol.h"
#include "ld-symbol-category.h"
#include "ld-library.h"
/**
@@ -28,12 +28,11 @@
/*
* LdSymbolPrivate:
* @parent: The parent LdSymbolCategory. It is used to identify
* the object within it's library.
* @name: The name of this symbol.
*/
struct _LdSymbolPrivate
{
LdSymbolCategory *parent;
gchar *name;
};
G_DEFINE_ABSTRACT_TYPE (LdSymbol, ld_symbol, G_TYPE_OBJECT);
@@ -65,26 +64,11 @@ ld_symbol_finalize (GObject *gobject)
LdSymbol *self;
self = LD_SYMBOL (gobject);
g_object_unref (self->priv->parent);
/* Chain up to the parent class. */
G_OBJECT_CLASS (ld_symbol_parent_class)->finalize (gobject);
}
/**
* ld_symbol_build_identifier:
* @self: A symbol object.
*
* Build an identifier for the symbol.
* The identifier is in the format "Category/Category/Symbol".
*/
gchar *
ld_symbol_build_identifier (LdSymbol *self)
{
/* TODO: Implement. */
return NULL;
}
/**
* ld_symbol_draw:
* @self: A symbol object.