Counter Strike : Global Offensive Source Code
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.

47 lines
1.9 KiB

  1. /* Stuff to export relevant 'expat' entry points from pyexpat to other
  2. * parser modules, such as cElementTree. */
  3. /* note: you must import expat.h before importing this module! */
  4. #define PyExpat_CAPI_MAGIC "pyexpat.expat_CAPI 1.0"
  5. struct PyExpat_CAPI
  6. {
  7. char* magic; /* set to PyExpat_CAPI_MAGIC */
  8. int size; /* set to sizeof(struct PyExpat_CAPI) */
  9. int MAJOR_VERSION;
  10. int MINOR_VERSION;
  11. int MICRO_VERSION;
  12. /* pointers to selected expat functions. add new functions at
  13. the end, if needed */
  14. const XML_LChar * (*ErrorString)(enum XML_Error code);
  15. enum XML_Error (*GetErrorCode)(XML_Parser parser);
  16. XML_Size (*GetErrorColumnNumber)(XML_Parser parser);
  17. XML_Size (*GetErrorLineNumber)(XML_Parser parser);
  18. enum XML_Status (*Parse)(
  19. XML_Parser parser, const char *s, int len, int isFinal);
  20. XML_Parser (*ParserCreate_MM)(
  21. const XML_Char *encoding, const XML_Memory_Handling_Suite *memsuite,
  22. const XML_Char *namespaceSeparator);
  23. void (*ParserFree)(XML_Parser parser);
  24. void (*SetCharacterDataHandler)(
  25. XML_Parser parser, XML_CharacterDataHandler handler);
  26. void (*SetCommentHandler)(
  27. XML_Parser parser, XML_CommentHandler handler);
  28. void (*SetDefaultHandlerExpand)(
  29. XML_Parser parser, XML_DefaultHandler handler);
  30. void (*SetElementHandler)(
  31. XML_Parser parser, XML_StartElementHandler start,
  32. XML_EndElementHandler end);
  33. void (*SetNamespaceDeclHandler)(
  34. XML_Parser parser, XML_StartNamespaceDeclHandler start,
  35. XML_EndNamespaceDeclHandler end);
  36. void (*SetProcessingInstructionHandler)(
  37. XML_Parser parser, XML_ProcessingInstructionHandler handler);
  38. void (*SetUnknownEncodingHandler)(
  39. XML_Parser parser, XML_UnknownEncodingHandler handler,
  40. void *encodingHandlerData);
  41. void (*SetUserData)(XML_Parser parser, void *userData);
  42. /* always add new stuff to the end! */
  43. };