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