Removed this typedef. (glibtop_server): Made the _priv' field a void *'.

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

	* include/glibtop/glibtop-server.h
	(glibtop_server_private): Removed this typedef.
	(glibtop_server): Made the `_priv' field a `void *'.
This commit is contained in:
Martin Baulig
2001-04-20 17:38:28 +00:00
committed by Martin Baulig
parent f4fc67f85c
commit c5fcc9aad6
6 changed files with 16 additions and 6 deletions

View File

@@ -1,3 +1,14 @@
2001-04-20 Martin Baulig <baulig@suse.de>
* include/glibtop/glibtop-server.h
(glibtop_server_private): Removed this typedef.
(glibtop_server): Made the `_priv' field a `void *'.
* glibtop-server-private.h: Moved to lib/.
* lib/glibtop-server-private.h
(glibtop_server_private): Moved this typedef here.
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

@@ -1,12 +1,10 @@
## Process this file with automake to produce Makefile.in. ## Process this file with automake to produce Makefile.in.
SUBDIRS = po intl misc include lib sysdeps backends src doc dtd scripts SUBDIRS = po intl misc include lib src doc dtd scripts
include_HEADERS = glibtop.h include_HEADERS = glibtop.h
configincludedir = $(pkglibdir)/include configincludedir = $(pkglibdir)/include
noinst_HEADERS = glibtop-server-private.h
EXTRA_DIST = autogen.sh libgtop.spec.in copyright.txt libgtopConf.sh.in \ EXTRA_DIST = autogen.sh libgtop.spec.in copyright.txt libgtopConf.sh.in \
LIBGTOP-VERSION features.def structures.def libgtop-config.in \ LIBGTOP-VERSION features.def structures.def libgtop-config.in \
RELNOTES-0.25 RELNOTES-1.0 RELNOTES-1.1.x libgtop-sysdeps.m4 README \ RELNOTES-0.25 RELNOTES-1.0 RELNOTES-1.1.x libgtop-sysdeps.m4 README \

View File

@@ -33,7 +33,6 @@ 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_server_private glibtop_server_private;
typedef int (*glibtop_init_func_t) (glibtop_server *); typedef int (*glibtop_init_func_t) (glibtop_server *);
@@ -57,7 +56,7 @@ struct _glibtop_server
unsigned flags; unsigned flags;
const char *name; const char *name;
glibtop_server_private *_priv; void *_priv;
}; };
glibtop_server * glibtop_server *

View File

@@ -11,6 +11,7 @@ noinst_LTLIBRARIES = libgtop_server.la
libgtop_la_SOURCES = errors.c glibtop-backend-info.c \ libgtop_la_SOURCES = errors.c glibtop-backend-info.c \
glibtop-client.c glibtop-server.c \ glibtop-client.c glibtop-server.c \
glibtop-backend.c glibtop-client-private.h \ glibtop-backend.c glibtop-client-private.h \
glibtop-server-private.h \
$(BUILT_SOURCES) $(BUILT_SOURCES)
libgtop_server_la_SOURCES = error.c xmalloc.c libgtop_server_la_SOURCES = error.c xmalloc.c

View File

@@ -24,6 +24,7 @@
*/ */
#include <glibtop.h> #include <glibtop.h>
#include <glibtop-server-private.h>
glibtop_server * glibtop_server *
glibtop_server_new (void) glibtop_server_new (void)

View File

@@ -54,7 +54,7 @@ main (int argc, char *argv [])
if (backend_common != NULL) if (backend_common != NULL)
glibtop_client_add_backend (client, backend_common); glibtop_client_add_backend (client, backend_common);
backend_sysdeps = glibtop_backend_get ("glibtop-backend-sysdeps", backend_sysdeps = glibtop_backend_get ("glibtop-backend-sysdeps-stub",
0, NULL, &error); 0, NULL, &error);
if (error != NULL) { if (error != NULL) {