TDE core libraries
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.

main_ghelp.cpp 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #include <string.h>
  2. #include <sys/time.h>
  3. #include <unistd.h>
  4. #include <libxml/xmlversion.h>
  5. #include <libxml/xmlmemory.h>
  6. #include <libxml/debugXML.h>
  7. #include <libxml/HTMLtree.h>
  8. #include <libxml/xmlIO.h>
  9. #include <libxml/parserInternals.h>
  10. #include <libxslt/xsltconfig.h>
  11. #include <libxslt/xsltInternals.h>
  12. #include <libxslt/transform.h>
  13. #include <libxslt/xsltutils.h>
  14. #include <tqstring.h>
  15. #include <kstandarddirs.h>
  16. #include <kinstance.h>
  17. #include <kdebug.h>
  18. #include <stdlib.h>
  19. #include "tdeio_help.h"
  20. #include <xslt.h>
  21. extern int xmlLoadExtDtdDefaultValue;
  22. extern "C"
  23. {
  24. KDE_EXPORT int kdemain( int argc, char **argv )
  25. {
  26. TDEInstance instance( "tdeio_ghelp" );
  27. fillInstance(instance);
  28. (void)instance.config(); // we need this one to make sure system globals are read
  29. kdDebug(7101) << "Starting " << getpid() << endl;
  30. if (argc != 4)
  31. {
  32. fprintf(stderr, "Usage: tdeio_ghelp protocol domain-socket1 domain-socket2\n");
  33. exit(-1);
  34. }
  35. LIBXML_TEST_VERSION
  36. xmlSubstituteEntitiesDefault(1);
  37. xmlLoadExtDtdDefaultValue = 1;
  38. HelpProtocol slave( true, argv[2], argv[3] );
  39. slave.dispatchLoop();
  40. kdDebug(7101) << "Done" << endl;
  41. return 0;
  42. }
  43. }