From dd8c31ebda2444c46b0870bd222b766165c520c3 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Thu, 13 Jan 2000 00:00:04 +0000 Subject: [PATCH] Call glibtop_init_backend () and _glibtop_open_sysdeps () here. 2000-01-13 Martin Baulig * lib/open.c (glibtop_open_l): Call glibtop_init_backend () and _glibtop_open_sysdeps () here. --- ChangeLog | 5 +++++ lib/open.c | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e359ed06..c2feb7f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-01-13 Martin Baulig + + * lib/open.c (glibtop_open_l): Call glibtop_init_backend () and + _glibtop_open_sysdeps () here. + 2000-01-12 Martin Baulig * lib/sysdeps-init-freebsd.c: New file. diff --git a/lib/open.c b/lib/open.c index 1e0386ff..9e5a2c4c 100644 --- a/lib/open.c +++ b/lib/open.c @@ -25,13 +25,17 @@ #include #include -#include -#include - -#include +#include 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; + } }