You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.3 KiB
54 lines
1.3 KiB
#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 <tqstring.h>
|
|
#include <kstandarddirs.h>
|
|
#include <kinstance.h>
|
|
#include <kdebug.h>
|
|
#include <stdlib.h>
|
|
#include "tdeio_help.h"
|
|
#include <xslt.h>
|
|
|
|
extern int xmlLoadExtDtdDefaultValue;
|
|
|
|
extern "C"
|
|
{
|
|
KDE_EXPORT int kdemain( int argc, char **argv )
|
|
{
|
|
TDEInstance instance( "tdeio_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: tdeio_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;
|
|
}
|
|
}
|
|
|
|
|
|
|