summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartin Baulig <baulig@suse.de>2001-04-20 18:15:55 +0000
committerMartin Baulig <martin@src.gnome.org>2001-04-20 18:15:55 +0000
commit3f34aafc6e68fae1095cc18827cb698c7848e3a9 (patch)
tree9144e2e187f503e8ee14ea91b1aa7398555b4f69 /lib
parentd6630b9f7adec0b55d823170fb52821c1be96f83 (diff)
downloadlibgtop-3f34aafc6e68fae1095cc18827cb698c7848e3a9.tar.gz
New file.
2001-04-20 Martin Baulig <baulig@suse.de> * include/glibtop/closure.h: New file.
Diffstat (limited to 'lib')
-rw-r--r--lib/glibtop-backend.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/glibtop-backend.c b/lib/glibtop-backend.c
index 150923b5..cd234c5e 100644
--- a/lib/glibtop-backend.c
+++ b/lib/glibtop-backend.c
@@ -44,7 +44,7 @@ struct _glibtop_backend_private
{
const glibtop_backend_info *info;
- void *closure_data;
+ glibtop_closure *closure_data;
glibtop_server *server;
glibtop_backend_module *module;
@@ -253,7 +253,7 @@ glibtop_backend_get_server (glibtop_backend *backend)
return backend->_priv->server;
}
-void *
+glibtop_closure *
glibtop_backend_get_closure_data (glibtop_backend *backend)
{
g_return_val_if_fail (GLIBTOP_IS_BACKEND (backend), NULL);
@@ -262,7 +262,8 @@ glibtop_backend_get_closure_data (glibtop_backend *backend)
}
void
-glibtop_backend_set_closure_data (glibtop_backend *backend, void *closure)
+glibtop_backend_set_closure_data (glibtop_backend *backend,
+ glibtop_closure *closure)
{
g_return_if_fail (GLIBTOP_IS_BACKEND (backend));
g_return_if_fail (backend->_priv->closure_data == NULL);