Call glibtop_init_backend () and _glibtop_open_sysdeps () here.

2000-01-13  Martin Baulig  <martin@home-of-linux.org>

	* lib/open.c (glibtop_open_l): Call glibtop_init_backend () and
	_glibtop_open_sysdeps () here.
This commit is contained in:
Martin Baulig
2000-01-13 00:00:04 +00:00
committed by Martin Baulig
parent 4d402ecc14
commit dd8c31ebda
2 changed files with 13 additions and 4 deletions

View File

@@ -25,13 +25,17 @@
#include <glibtop.h>
#include <glibtop/open.h>
#include <glibtop/sysdeps.h>
#include <glibtop/xmalloc.h>
#include <glibtop/gnuserv.h>
#include <glibtop/backend.h>
void
glibtop_open_l (glibtop *server, const char *program_name,
const unsigned long features, const unsigned flags)
{
if ((server->flags & _GLIBTOP_INIT_STATE_SYSDEPS) == 0) {
glibtop_init_backends ();
_glibtop_open_sysdeps (server, "glibtop", features, flags);
server->flags |= _GLIBTOP_INIT_STATE_SYSDEPS;
}
}