summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2010-08-15 15:57:21 -0400
committerChuck Miller <shadowmil@gmail.com>2010-08-15 15:57:21 -0400
commit8f573b6c425dc82be42ad80eae565b0641a90a3b (patch)
tree149c7889d384e10fd9dc95f1aa90478e69b314c8 /src/main.cpp
parentfee9fbce12e620f25aecdc0690285cc47fa8791d (diff)
parent2b676bbf6fcf7dfd45cb33f06dacd2ca5bce19fe (diff)
downloadmana-client-8f573b6c425dc82be42ad80eae565b0641a90a3b.tar.gz
mana-client-8f573b6c425dc82be42ad80eae565b0641a90a3b.tar.bz2
mana-client-8f573b6c425dc82be42ad80eae565b0641a90a3b.tar.xz
mana-client-8f573b6c425dc82be42ad80eae565b0641a90a3b.zip
Merge branch '1.0'
Conflicts: mana.cbp mana.files src/CMakeLists.txt src/Makefile.am src/utils/xml.cpp
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp23
1 files changed, 3 insertions, 20 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 0dd00f56..f3962c40 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -21,11 +21,10 @@
#include "main.h"
-#include "utils/gettext.h"
-
#include "client.h"
-#include <libxml/parser.h>
+#include "utils/gettext.h"
+#include "utils/xml.h"
#include <getopt.h>
#include <iostream>
@@ -186,22 +185,6 @@ static void initInternationalization()
#endif
}
-static void xmlNullLogger(void *ctx, const char *msg, ...)
-{
- // Does nothing, that's the whole point of it
-}
-
-// Initialize libxml2 and check for potential ABI mismatches between
-// compiled version and the shared library actually used.
-static void initXML()
-{
- xmlInitParser();
- LIBXML_TEST_VERSION;
-
- // Suppress libxml2 error messages
- xmlSetGenericErrorFunc(NULL, xmlNullLogger);
-}
-
int main(int argc, char *argv[])
{
@@ -235,7 +218,7 @@ int main(int argc, char *argv[])
}
atexit((void(*)()) PHYSFS_deinit);
- initXML();
+ XML::init();
Client client(options);
return client.exec();