We always have libxml installed.
This commit is contained in:
@@ -32,8 +32,6 @@
|
|||||||
static GHashTable *_glibtop_backend_list = NULL;
|
static GHashTable *_glibtop_backend_list = NULL;
|
||||||
static long _glibtop_backend_nr = 0;
|
static long _glibtop_backend_nr = 0;
|
||||||
|
|
||||||
#if HAVE_LIBXML
|
|
||||||
|
|
||||||
#define LIBGTOP_XML_NAMESPACE "http://www.home-of-linux.org/libgtop/1.1"
|
#define LIBGTOP_XML_NAMESPACE "http://www.home-of-linux.org/libgtop/1.1"
|
||||||
|
|
||||||
#include <libxml/parser.h>
|
#include <libxml/parser.h>
|
||||||
@@ -42,8 +40,6 @@ static long _glibtop_backend_nr = 0;
|
|||||||
|
|
||||||
static void _glibtop_init_gmodule_backends (const char *);
|
static void _glibtop_init_gmodule_backends (const char *);
|
||||||
|
|
||||||
#endif /* HAVE_LIBXML */
|
|
||||||
|
|
||||||
void
|
void
|
||||||
glibtop_init_backends (void)
|
glibtop_init_backends (void)
|
||||||
{
|
{
|
||||||
@@ -53,15 +49,11 @@ glibtop_init_backends (void)
|
|||||||
return;
|
return;
|
||||||
backends_initialized = 1;
|
backends_initialized = 1;
|
||||||
|
|
||||||
#if HAVE_LIBXML
|
|
||||||
LIBXML_TEST_VERSION;
|
LIBXML_TEST_VERSION;
|
||||||
|
|
||||||
_glibtop_init_gmodule_backends (LIBGTOP_BACKEND_DIR);
|
_glibtop_init_gmodule_backends (LIBGTOP_BACKEND_DIR);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if HAVE_LIBXML
|
|
||||||
|
|
||||||
static gchar *
|
static gchar *
|
||||||
_get_library_filename (xmlDocPtr doc, xmlNodePtr cur, const char *directory)
|
_get_library_filename (xmlDocPtr doc, xmlNodePtr cur, const char *directory)
|
||||||
{
|
{
|
||||||
@@ -227,8 +219,6 @@ _glibtop_init_gmodule_backends (const char *directory)
|
|||||||
closedir (dir);
|
closedir (dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* HAVE_LIBXML */
|
|
||||||
|
|
||||||
long
|
long
|
||||||
glibtop_register_backend (glibtop_backend_entry *entry)
|
glibtop_register_backend (glibtop_backend_entry *entry)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user