New file.

2001-04-20  Martin Baulig  <baulig@suse.de>

	* include/glibtop/closure.h: New file.
This commit is contained in:
Martin Baulig
2001-04-20 18:15:55 +00:00
committed by Martin Baulig
parent d6630b9f7a
commit 3f34aafc6e
5 changed files with 11 additions and 5 deletions

View File

@@ -1,3 +1,7 @@
2001-04-20 Martin Baulig <baulig@suse.de>
* include/glibtop/closure.h: New file.
2001-04-20 Martin Baulig <baulig@suse.de> 2001-04-20 Martin Baulig <baulig@suse.de>
* include/glibtop/*.h (glibtop_get_*_s, glibtop_get_*_pl): * include/glibtop/*.h (glibtop_get_*_s, glibtop_get_*_pl):

View File

@@ -11,7 +11,7 @@ glibtop_HEADERS = close.h loadavg.h prockernel.h procstate.h \
netinfo.h interfaces.h limits.h array.h compat_10.h \ netinfo.h interfaces.h limits.h array.h compat_10.h \
glib-arrays.h call-vector.h \ glib-arrays.h call-vector.h \
glibtop-client.h glibtop-server.h glibtop-backend.h \ glibtop-client.h glibtop-server.h glibtop-backend.h \
glibtop-backend-info.h errors.h glibtop-backend-info.h errors.h closure.h
BUILT_SOURCES = call-vector.h BUILT_SOURCES = call-vector.h

View File

@@ -71,7 +71,7 @@ glibtop_backend_get (const char *backend_name, u_int64_t features,
void void
glibtop_backend_set_closure_data (glibtop_backend *backend, glibtop_closure *closure); glibtop_backend_set_closure_data (glibtop_backend *backend, glibtop_closure *closure);
void * glibtop_closure *
glibtop_backend_get_closure_data (glibtop_backend *backend); glibtop_backend_get_closure_data (glibtop_backend *backend);
glibtop_call_vector * glibtop_call_vector *

View File

@@ -28,6 +28,7 @@
#include <glibtop/global.h> #include <glibtop/global.h>
#include <glibtop/sysdeps.h> #include <glibtop/sysdeps.h>
#include <glibtop/closure.h>
BEGIN_LIBGTOP_DECLS BEGIN_LIBGTOP_DECLS

View File

@@ -44,7 +44,7 @@ struct _glibtop_backend_private
{ {
const glibtop_backend_info *info; const glibtop_backend_info *info;
void *closure_data; glibtop_closure *closure_data;
glibtop_server *server; glibtop_server *server;
glibtop_backend_module *module; glibtop_backend_module *module;
@@ -253,7 +253,7 @@ glibtop_backend_get_server (glibtop_backend *backend)
return backend->_priv->server; return backend->_priv->server;
} }
void * glibtop_closure *
glibtop_backend_get_closure_data (glibtop_backend *backend) glibtop_backend_get_closure_data (glibtop_backend *backend)
{ {
g_return_val_if_fail (GLIBTOP_IS_BACKEND (backend), NULL); g_return_val_if_fail (GLIBTOP_IS_BACKEND (backend), NULL);
@@ -262,7 +262,8 @@ glibtop_backend_get_closure_data (glibtop_backend *backend)
} }
void 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 (GLIBTOP_IS_BACKEND (backend));
g_return_if_fail (backend->_priv->closure_data == NULL); g_return_if_fail (backend->_priv->closure_data == NULL);