KDocTools
main_ghelp.cpp
Go to the documentation of this file.
00001 00002 #ifdef _WIN32 00003 #define LIBXML_DLL_IMPORT __declspec(dllimport) 00004 #else 00005 extern "C" int xmlLoadExtDtdDefaultValue; 00006 #endif 00007 00008 #include "kio_help.h" 00009 #include "xslt.h" 00010 00011 #include <kdebug.h> 00012 #include <kstandarddirs.h> 00013 #include <kcomponentdata.h> 00014 00015 #include <QtCore/QString> 00016 00017 #include <stdlib.h> 00018 #include <string.h> 00019 #include <sys/time.h> 00020 #include <unistd.h> 00021 00022 #include <libxml/xmlversion.h> 00023 #include <libxml/xmlmemory.h> 00024 #include <libxml/debugXML.h> 00025 #include <libxml/HTMLtree.h> 00026 #include <libxml/xmlIO.h> 00027 #include <libxml/parserInternals.h> 00028 00029 #include <libxslt/xsltconfig.h> 00030 #include <libxslt/xsltInternals.h> 00031 #include <libxslt/transform.h> 00032 #include <libxslt/xsltutils.h> 00033 #include <libexslt/exslt.h> 00034 00035 extern "C" 00036 { 00037 KDE_EXPORT int kdemain( int argc, char **argv ) 00038 { 00039 KComponentData componentData( "kio_ghelp" ); 00040 fillInstance(componentData); 00041 (void)componentData.config(); // we need this one to make sure system globals are read 00042 00043 kDebug(7101) << "Starting " << getpid(); 00044 00045 if (argc != 4) 00046 { 00047 fprintf(stderr, "Usage: kio_ghelp protocol domain-socket1 domain-socket2\n"); 00048 exit(-1); 00049 } 00050 00051 LIBXML_TEST_VERSION 00052 xmlSubstituteEntitiesDefault(1); 00053 xmlLoadExtDtdDefaultValue = 1; 00054 exsltRegisterAll(); 00055 00056 HelpProtocol slave( true, argv[2], argv[3] ); 00057 slave.dispatchLoop(); 00058 00059 kDebug(7101) << "Done"; 00060 return 0; 00061 } 00062 } 00063 00064 00065
KDE 4.6 API Reference