aboutsummaryrefslogtreecommitdiff
path: root/src/ld-library.h
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2010-10-26 16:18:15 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2010-10-26 16:41:03 +0200
commit979308aa7f42073e309737cd18da58731437bf3a (patch)
treed1f351d6e9739c97d4cc5e7545156151dae117af /src/ld-library.h
parent9a242786b19987daef5bb51ef706faca538777f9 (diff)
downloadlogdiag-979308aa7f42073e309737cd18da58731437bf3a.tar.gz
logdiag-979308aa7f42073e309737cd18da58731437bf3a.tar.xz
logdiag-979308aa7f42073e309737cd18da58731437bf3a.zip
Manage LdLibrary children in a GSList.
The previous method of containment, that is using GHashTable, did not list children in any particular order. Also names of children were duplicated. One copy has been stored as a hash table index and another was present in the child itself.
Diffstat (limited to 'src/ld-library.h')
-rw-r--r--src/ld-library.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ld-library.h b/src/ld-library.h
index 76a76a5..eb0673f 100644
--- a/src/ld-library.h
+++ b/src/ld-library.h
@@ -42,9 +42,6 @@ struct _LdLibrary
/*< private >*/
GObject parent_instance;
LdLibraryPrivate *priv;
-
-/*< public >*/
- GHashTable *categories;
};
struct _LdLibraryClass
@@ -62,6 +59,10 @@ LdLibrary *ld_library_new (void);
gboolean ld_library_load (LdLibrary *self, const gchar *directory);
void ld_library_clear (LdLibrary *self);
+void ld_library_insert_child (LdLibrary *self, GObject *child, gint pos);
+void ld_library_remove_child (LdLibrary *self, GObject *child);
+const GSList *ld_library_get_children (LdLibrary *self);
+
G_END_DECLS