Typedef this as an opaque struct.

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

	* include/glibtop/glibtop-server.h (glibtop_closure):
	Typedef this as an opaque struct.
This commit is contained in:
Martin Baulig
2001-04-20 19:48:57 +00:00
committed by Martin Baulig
parent 3f34aafc6e
commit a3557112a7
3 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
2001-04-20 Martin Baulig <baulig@suse.de> 2001-04-20 Martin Baulig <baulig@suse.de>
* include/glibtop/closure.h: New file. * include/glibtop/glibtop-server.h (glibtop_closure):
Typedef this as an opaque struct.
2001-04-20 Martin Baulig <baulig@suse.de> 2001-04-20 Martin Baulig <baulig@suse.de>

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 closure.h glibtop-backend-info.h errors.h
BUILT_SOURCES = call-vector.h BUILT_SOURCES = call-vector.h

View File

@@ -28,13 +28,14 @@
#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
typedef struct _glibtop_server glibtop_server; typedef struct _glibtop_server glibtop_server;
typedef struct _glibtop_server_info glibtop_server_info; typedef struct _glibtop_server_info glibtop_server_info;
typedef struct _glibtop_closure glibtop_closure;
typedef int (*glibtop_init_func_t) (glibtop_server *); typedef int (*glibtop_init_func_t) (glibtop_server *);
extern glibtop_init_func_t _glibtop_init_hook_s []; extern glibtop_init_func_t _glibtop_init_hook_s [];