main.cpp
00001 #include <string.h> 00002 #include <sys/time.h> 00003 #include <unistd.h> 00004 #include <libxml/xmlversion.h> 00005 #include <libxml/xmlmemory.h> 00006 #include <libxml/debugXML.h> 00007 #include <libxml/HTMLtree.h> 00008 #include <libxml/xmlIO.h> 00009 #include <libxml/parserInternals.h> 00010 #include <libxslt/xsltconfig.h> 00011 #include <libxslt/xsltInternals.h> 00012 #include <libxslt/transform.h> 00013 #include <libxslt/xsltutils.h> 00014 #include <tqstring.h> 00015 #include <kstandarddirs.h> 00016 #include <kinstance.h> 00017 #include <kdebug.h> 00018 #include <stdlib.h> 00019 #include "kio_help.h" 00020 #include <xslt.h> 00021 00022 extern int xmlLoadExtDtdDefaultValue; 00023 00024 extern "C" 00025 { 00026 KDE_EXPORT int kdemain( int argc, char **argv ) 00027 { 00028 KInstance instance( "kio_help" ); 00029 fillInstance(instance); 00030 (void)instance.config(); // we need this one to make sure system globals are read 00031 00032 kdDebug(7101) << "Starting " << getpid() << endl; 00033 00034 if (argc != 4) 00035 { 00036 fprintf(stderr, "Usage: kio_help protocol domain-socket1 domain-socket2\n"); 00037 exit(-1); 00038 } 00039 00040 LIBXML_TEST_VERSION 00041 xmlSubstituteEntitiesDefault(1); 00042 xmlLoadExtDtdDefaultValue = 1; 00043 00044 HelpProtocol slave(false, argv[2], argv[3]); 00045 slave.dispatchLoop(); 00046 00047 kdDebug(7101) << "Done" << endl; 00048 return 0; 00049 } 00050 } 00051 00052 00053