Call `_glibtop_open_sysdeps'.
2000-01-12 Martin Baulig <martin@home-of-linux.org> * lib/init.c (glibtop_init_s): Call `_glibtop_open_sysdeps'. * include/glibtop/open.h (_glibtop_open_sysdeps): Declare this when we are _IN_LIBGTOP. * configure.in (sysdeps_name): Define and AC_SUBST this. (sysdeps_init_file): Define and AC_SUBST this to `sysdeps-init-${sysdeps_name}.c'. * libgtop-sysdeps.m4 (GNOME_LIBGTOP_SYSDEPS): Define and AC_SUBST `libgtop_sysdeps_name'.
This commit is contained in:
committed by
Martin Baulig
parent
2a86a5de49
commit
20c306fc6d
10
lib/init.c
10
lib/init.c
@@ -247,9 +247,6 @@ glibtop *
|
||||
glibtop_init_s (glibtop **server_ptr, unsigned long features, unsigned flags)
|
||||
{
|
||||
glibtop *server;
|
||||
#if 0
|
||||
glibtop_init_func_t *init_fkt;
|
||||
#endif
|
||||
|
||||
if (server_ptr == NULL)
|
||||
return NULL;
|
||||
@@ -264,20 +261,15 @@ glibtop_init_s (glibtop **server_ptr, unsigned long features, unsigned flags)
|
||||
if (flags & GLIBTOP_INIT_NO_INIT)
|
||||
return server;
|
||||
|
||||
#if 0
|
||||
/* Do the initialization, but only if not already initialized. */
|
||||
|
||||
if ((server->flags & _GLIBTOP_INIT_STATE_SYSDEPS) == 0) {
|
||||
glibtop_open_s (server, "glibtop", features, flags);
|
||||
|
||||
for (init_fkt = _glibtop_init_hook_s; *init_fkt; init_fkt++)
|
||||
(*init_fkt) (server);
|
||||
_glibtop_open_sysdeps (server, "glibtop", features, flags);
|
||||
|
||||
server->sysdeps.pointer_size = sizeof (void*)*8;
|
||||
|
||||
server->flags |= _GLIBTOP_INIT_STATE_SYSDEPS;
|
||||
}
|
||||
#endif
|
||||
|
||||
return server;
|
||||
}
|
||||
|
Reference in New Issue
Block a user