From ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdoctools/main.cpp | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 kdoctools/main.cpp (limited to 'kdoctools/main.cpp') diff --git a/kdoctools/main.cpp b/kdoctools/main.cpp new file mode 100644 index 000000000..4a08c14d1 --- /dev/null +++ b/kdoctools/main.cpp @@ -0,0 +1,53 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "kio_help.h" +#include + +extern int xmlLoadExtDtdDefaultValue; + +extern "C" +{ + KDE_EXPORT int kdemain( int argc, char **argv ) + { + KInstance instance( "kio_help" ); + fillInstance(instance); + (void)instance.config(); // we need this one to make sure system globals are read + + kdDebug(7101) << "Starting " << getpid() << endl; + + if (argc != 4) + { + fprintf(stderr, "Usage: kio_help protocol domain-socket1 domain-socket2\n"); + exit(-1); + } + + LIBXML_TEST_VERSION + xmlSubstituteEntitiesDefault(1); + xmlLoadExtDtdDefaultValue = 1; + + HelpProtocol slave(false, argv[2], argv[3]); + slave.dispatchLoop(); + + kdDebug(7101) << "Done" << endl; + return 0; + } +} + + + -- cgit v1.2.1