1 | |
---|---|
2 | #ifdef _WIN32 |
3 | #define LIBXML_DLL_IMPORT __declspec(dllimport) |
4 | #else |
5 | extern "C"int xmlLoadExtDtdDefaultValue; |
6 | #endif |
7 | |
8 | #include "kio_help.h" |
9 | #include "xslt.h" |
10 | |
11 | #include <kdebug.h> |
12 | #include <kstandarddirs.h> |
13 | #include <kcomponentdata.h> |
14 | |
15 | #include <QtCore/QString> |
16 | |
17 | #include <stdlib.h> |
18 | #include <string.h> |
19 | #include <sys/time.h> |
20 | #include <unistd.h> |
21 | |
22 | #include <libxml/xmlversion.h> |
23 | #include <libxml/xmlmemory.h> |
24 | #include <libxml/debugXML.h> |
25 | #include <libxml/HTMLtree.h> |
26 | #include <libxml/xmlIO.h> |
27 | #include <libxml/parserInternals.h> |
28 | |
29 | #include <libxslt/xsltconfig.h> |
30 | #include <libxslt/xsltInternals.h> |
31 | #include <libxslt/transform.h> |
32 | #include <libxslt/xsltutils.h> |
33 | #include <libexslt/exslt.h> |
34 | |
35 | extern "C" |
36 | { |
37 | KDE_EXPORT int kdemain( int argc, char **argv ) |
38 | { |
39 | KComponentData componentData( "kio_ghelp"); |
40 | fillInstance(componentData); |
41 | (void)componentData.config(); // we need this one to make sure system globals are read |
42 | |
43 | kDebug(7101) << "Starting "<< getpid(); |
44 | |
45 | if (argc != 4) |
46 | { |
47 | fprintf(stderr, "Usage: kio_ghelp protocol domain-socket1 domain-socket2\n"); |
48 | exit(-1); |
49 | } |
50 | |
51 | LIBXML_TEST_VERSION |
52 | xmlSubstituteEntitiesDefault(1); |
53 | xmlLoadExtDtdDefaultValue = 1; |
54 | exsltRegisterAll(); |
55 | |
56 | HelpProtocol slave( true, argv[2], argv[3] ); |
57 | slave.dispatchLoop(); |
58 | |
59 | kDebug(7101) << "Done"; |
60 | return 0; |
61 | } |
62 | } |
63 | |
64 | |
65 | |
66 |