diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch) | |
tree | 5ac38a06f3dde268dc7927dc155896926aaf7012 /kdoctools/main_ghelp.cpp | |
download | tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip |
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
Diffstat (limited to 'kdoctools/main_ghelp.cpp')
-rw-r--r-- | kdoctools/main_ghelp.cpp | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/kdoctools/main_ghelp.cpp b/kdoctools/main_ghelp.cpp new file mode 100644 index 000000000..2170c738b --- /dev/null +++ b/kdoctools/main_ghelp.cpp @@ -0,0 +1,53 @@ +#include <string.h> +#include <sys/time.h> +#include <unistd.h> +#include <libxml/xmlversion.h> +#include <libxml/xmlmemory.h> +#include <libxml/debugXML.h> +#include <libxml/HTMLtree.h> +#include <libxml/xmlIO.h> +#include <libxml/parserInternals.h> +#include <libxslt/xsltconfig.h> +#include <libxslt/xsltInternals.h> +#include <libxslt/transform.h> +#include <libxslt/xsltutils.h> +#include <qstring.h> +#include <kstandarddirs.h> +#include <kinstance.h> +#include <kdebug.h> +#include <stdlib.h> +#include "kio_help.h" +#include <xslt.h> + +extern int xmlLoadExtDtdDefaultValue; + +extern "C" +{ + KDE_EXPORT int kdemain( int argc, char **argv ) + { + KInstance instance( "kio_ghelp" ); + 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_ghelp protocol domain-socket1 domain-socket2\n"); + exit(-1); + } + + LIBXML_TEST_VERSION + xmlSubstituteEntitiesDefault(1); + xmlLoadExtDtdDefaultValue = 1; + + HelpProtocol slave( true, argv[2], argv[3] ); + slave.dispatchLoop(); + + kdDebug(7101) << "Done" << endl; + return 0; + } +} + + + |