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:
committed by
Martin Baulig
parent
4d402ecc14
commit
dd8c31ebda
@@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2000-01-12 Martin Baulig <martin@home-of-linux.org>
|
2000-01-12 Martin Baulig <martin@home-of-linux.org>
|
||||||
|
|
||||||
* lib/sysdeps-init-freebsd.c: New file.
|
* lib/sysdeps-init-freebsd.c: New file.
|
||||||
|
12
lib/open.c
12
lib/open.c
@@ -25,13 +25,17 @@
|
|||||||
|
|
||||||
#include <glibtop.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/open.h>
|
#include <glibtop/open.h>
|
||||||
#include <glibtop/sysdeps.h>
|
#include <glibtop/backend.h>
|
||||||
#include <glibtop/xmalloc.h>
|
|
||||||
|
|
||||||
#include <glibtop/gnuserv.h>
|
|
||||||
|
|
||||||
void
|
void
|
||||||
glibtop_open_l (glibtop *server, const char *program_name,
|
glibtop_open_l (glibtop *server, const char *program_name,
|
||||||
const unsigned long features, const unsigned flags)
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user