2000-11-26  Martin Baulig  <martin@home-of-linux.org>

	* glibtop-backend-private.h: Removed.

	* backend-sysdeps.h: New files.

	* backend-sysdeps.c (_open_sysdeps): Don't overwrite
	`backend->_priv'.
This commit is contained in:
Martin Baulig
2000-11-26 22:23:25 +00:00
committed by Martin Baulig
parent 4befe086c4
commit d294298c7e
5 changed files with 18 additions and 21 deletions

View File

@@ -1,3 +1,12 @@
2000-11-26 Martin Baulig <martin@home-of-linux.org>
* glibtop-backend-private.h: Removed.
* backend-sysdeps.h: New files.
* backend-sysdeps.c (_open_sysdeps): Don't overwrite
`backend->_priv'.
2000-11-22 Martin Baulig <martin@home-of-linux.org>
* Makefile.am: Link libgtop_backend_sysdeps.la against

View File

@@ -16,7 +16,7 @@ backend_DATA = \
libgtop-sysdeps.backend
noinst_HEADERS = \
glibtop-backend-private.h
backend-sysdeps.h
backendlib_LTLIBRARIES = \
libgtop_backend_sysdeps.la

View File

@@ -23,11 +23,7 @@
Boston, MA 02111-1307, USA.
*/
#include <glibtop.h>
#include <glibtop/global.h>
#include <glibtop/xmalloc.h>
#include <glibtop-backend-private.h>
#include <backend-sysdeps.h>
static int
_open_sysdeps (glibtop_server *, glibtop_backend *, u_int64_t, const char **);
@@ -55,9 +51,6 @@ _open_sysdeps (glibtop_server *server, glibtop_backend *backend,
{
glibtop_init_func_t *init_fkt;
backend->_priv = glibtop_calloc_r
(server, 1, sizeof (glibtop_backend_private));
/* Do the initialization, but only if not already initialized. */
if ((server->flags & _GLIBTOP_INIT_STATE_SYSDEPS) == 0) {

View File

@@ -23,16 +23,15 @@
Boston, MA 02111-1307, USA.
*/
#ifndef __GLIBTOP_BACKEND_PRIVATE_H__
#define __GLIBTOP_BACKEND_PRIVATE_H__
#ifndef __GLIBTOP_BACKEND_SYSDEPS_H__
#define __GLIBTOP_BACKEND_SYSDEPS_H__
#include <glibtop.h>
#include <glibtop/global.h>
#include <glibtop/open.h>
#include <glibtop/xmalloc.h>
#include <glibtop/glibtop-backend.h>
#include <glibtop/glibtop-backend-info.h>
struct _glibtop_backend_private
{
u_int64_t flags;
};
#endif

View File

@@ -24,17 +24,13 @@ print '/* marshal.c */';
print "/* This is a generated file. Please modify `marshal.pl' */";
print '';
print '#include <glibtop.h>';
print '#include <glibtop/open.h>';
print '#include <glibtop/xmalloc.h>';
print '#include <backend-sysdeps.h>';
print '';
print '#include <glibtop/sysdeps.h>';
print '#include <glibtop/union.h>';
print '';
print '#include <glibtop/call-vector.h>';
print '';
print '#include <glibtop-backend-private.h>';
print '';
$feature_count = 0;