AsXml.h 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. /* Automation Studio generated header file */
  2. /* Do not edit ! */
  3. #ifndef _ASXML_
  4. #define _ASXML_
  5. #ifdef __cplusplus
  6. extern "C"
  7. {
  8. #endif
  9. #include <bur/plctypes.h>
  10. #ifndef _BUR_PUBLIC
  11. #define _BUR_PUBLIC
  12. #endif
  13. /* Constants */
  14. #ifdef _REPLACE_CONST
  15. #define xmlNODE_TYPE_ENDELEMENT 15U
  16. #define xmlNODE_TYPE_SIGN_WHITESPACE 14U
  17. #define xmlNODE_TYPE_WHITESPACE 13U
  18. #define xmlNODE_TYPE_COMMENT 8U
  19. #define xmlNODE_TYPE_PI 7U
  20. #define xmlNODE_TYPE_CDATA 4U
  21. #define xmlNODE_TYPE_TEXT 3U
  22. #define xmlNODE_TYPE_ELEMENT 1U
  23. #define xmlERR_DOCUMENT_NOT_OPEN 33825U
  24. #define xmlERR_UNSUPPORTED_ENCODING 33824U
  25. #define xmlERR_CONVERT_TEXT 33823U
  26. #define xmlERR_CONVERT 33822U
  27. #define xmlERR_INVALID_POSITION 33821U
  28. #define xmlERR_NO_ELEMENT_OPEN 33820U
  29. #define xmlERR_INVALID_IDENT 33819U
  30. #define xmlERR_XML_DATA_INVALID 33818U
  31. #define xmlERR_NO_ATTRIBUTES 33817U
  32. #define xmlERR_INVALID_ATTRIBUTE_INDEX 33816U
  33. #define xmlERR_VALUE_BUFFER_TOO_SMALL 33815U
  34. #define xmlERR_NAME_BUFFER_TOO_SMALL 33814U
  35. #define xmlERR_NO_FURTHER_XML_NODE 33813U
  36. #define xmlERR_GENERAL 33812U
  37. #define xmlERR_INVALID_PARAMETER 33811U
  38. #define xmlERR_MEMORY 33810U
  39. #else
  40. #ifndef _GLOBAL_CONST
  41. #define _GLOBAL_CONST _WEAK const
  42. #endif
  43. _GLOBAL_CONST unsigned short xmlNODE_TYPE_ENDELEMENT;
  44. _GLOBAL_CONST unsigned short xmlNODE_TYPE_SIGN_WHITESPACE;
  45. _GLOBAL_CONST unsigned short xmlNODE_TYPE_WHITESPACE;
  46. _GLOBAL_CONST unsigned short xmlNODE_TYPE_COMMENT;
  47. _GLOBAL_CONST unsigned short xmlNODE_TYPE_PI;
  48. _GLOBAL_CONST unsigned short xmlNODE_TYPE_CDATA;
  49. _GLOBAL_CONST unsigned short xmlNODE_TYPE_TEXT;
  50. _GLOBAL_CONST unsigned short xmlNODE_TYPE_ELEMENT;
  51. _GLOBAL_CONST unsigned short xmlERR_DOCUMENT_NOT_OPEN;
  52. _GLOBAL_CONST unsigned short xmlERR_UNSUPPORTED_ENCODING;
  53. _GLOBAL_CONST unsigned short xmlERR_CONVERT_TEXT;
  54. _GLOBAL_CONST unsigned short xmlERR_CONVERT;
  55. _GLOBAL_CONST unsigned short xmlERR_INVALID_POSITION;
  56. _GLOBAL_CONST unsigned short xmlERR_NO_ELEMENT_OPEN;
  57. _GLOBAL_CONST unsigned short xmlERR_INVALID_IDENT;
  58. _GLOBAL_CONST unsigned short xmlERR_XML_DATA_INVALID;
  59. _GLOBAL_CONST unsigned short xmlERR_NO_ATTRIBUTES;
  60. _GLOBAL_CONST unsigned short xmlERR_INVALID_ATTRIBUTE_INDEX;
  61. _GLOBAL_CONST unsigned short xmlERR_VALUE_BUFFER_TOO_SMALL;
  62. _GLOBAL_CONST unsigned short xmlERR_NAME_BUFFER_TOO_SMALL;
  63. _GLOBAL_CONST unsigned short xmlERR_NO_FURTHER_XML_NODE;
  64. _GLOBAL_CONST unsigned short xmlERR_GENERAL;
  65. _GLOBAL_CONST unsigned short xmlERR_INVALID_PARAMETER;
  66. _GLOBAL_CONST unsigned short xmlERR_MEMORY;
  67. #endif
  68. /* Datatypes and datatypes of function blocks */
  69. typedef struct xmlCreateMemoryReader
  70. {
  71. /* VAR_INPUT (analog) */
  72. unsigned long pXmlMemory;
  73. unsigned long memorySize;
  74. /* VAR_OUTPUT (analog) */
  75. unsigned short status;
  76. unsigned long ident;
  77. /* VAR_INPUT (digital) */
  78. plcbit enable;
  79. } xmlCreateMemoryReader_typ;
  80. typedef struct xmlCloseMemoryReader
  81. {
  82. /* VAR_INPUT (analog) */
  83. unsigned long ident;
  84. /* VAR_OUTPUT (analog) */
  85. unsigned short status;
  86. /* VAR_INPUT (digital) */
  87. plcbit enable;
  88. } xmlCloseMemoryReader_typ;
  89. typedef struct xmlReadNextNode
  90. {
  91. /* VAR_INPUT (analog) */
  92. unsigned long ident;
  93. unsigned long pName;
  94. unsigned long nameSize;
  95. unsigned long pValue;
  96. unsigned long valueSize;
  97. /* VAR_OUTPUT (analog) */
  98. unsigned short status;
  99. unsigned long nodeType;
  100. unsigned long depth;
  101. unsigned long attributeCount;
  102. unsigned long neededNameSize;
  103. unsigned long neededValueSize;
  104. /* VAR_INPUT (digital) */
  105. plcbit enable;
  106. plcbit forceRead;
  107. plcbit skipSubtree;
  108. /* VAR_OUTPUT (digital) */
  109. plcbit isEmpty;
  110. } xmlReadNextNode_typ;
  111. typedef struct xmlReadAttributeNr
  112. {
  113. /* VAR_INPUT (analog) */
  114. unsigned long ident;
  115. unsigned long index;
  116. unsigned long pName;
  117. unsigned long nameSize;
  118. unsigned long pValue;
  119. unsigned long valueSize;
  120. /* VAR_OUTPUT (analog) */
  121. unsigned short status;
  122. unsigned long neededNameSize;
  123. unsigned long neededValueSize;
  124. /* VAR_INPUT (digital) */
  125. plcbit enable;
  126. } xmlReadAttributeNr_typ;
  127. typedef struct xmlCreateMemoryWriter
  128. {
  129. /* VAR_OUTPUT (analog) */
  130. unsigned short status;
  131. unsigned long ident;
  132. /* VAR_INPUT (digital) */
  133. plcbit enable;
  134. } xmlCreateMemoryWriter_typ;
  135. typedef struct xmlGetMemoryInfo
  136. {
  137. /* VAR_INPUT (analog) */
  138. unsigned long ident;
  139. /* VAR_OUTPUT (analog) */
  140. unsigned short status;
  141. unsigned long pXmlData;
  142. unsigned long xmlDataSize;
  143. /* VAR_INPUT (digital) */
  144. plcbit enable;
  145. } xmlGetMemoryInfo_typ;
  146. typedef struct xmlCloseMemoryWriter
  147. {
  148. /* VAR_INPUT (analog) */
  149. unsigned long ident;
  150. /* VAR_OUTPUT (analog) */
  151. unsigned short status;
  152. /* VAR_INPUT (digital) */
  153. plcbit enable;
  154. } xmlCloseMemoryWriter_typ;
  155. typedef struct xmlWriteStartDocument
  156. {
  157. /* VAR_INPUT (analog) */
  158. unsigned long ident;
  159. unsigned long pVersion;
  160. unsigned long pEncoding;
  161. unsigned long pStandalone;
  162. /* VAR_OUTPUT (analog) */
  163. unsigned short status;
  164. /* VAR_INPUT (digital) */
  165. plcbit enable;
  166. } xmlWriteStartDocument_typ;
  167. typedef struct xmlWriteStartDocEnc
  168. {
  169. /* VAR_INPUT (analog) */
  170. unsigned long ident;
  171. unsigned long pVersion;
  172. unsigned long pInputEncoding;
  173. unsigned long pOutputEncoding;
  174. unsigned long pStandalone;
  175. /* VAR_OUTPUT (analog) */
  176. unsigned short status;
  177. /* VAR_INPUT (digital) */
  178. plcbit enable;
  179. } xmlWriteStartDocEnc_typ;
  180. typedef struct xmlWriteEndDocument
  181. {
  182. /* VAR_INPUT (analog) */
  183. unsigned long ident;
  184. /* VAR_OUTPUT (analog) */
  185. unsigned short status;
  186. /* VAR_INPUT (digital) */
  187. plcbit enable;
  188. } xmlWriteEndDocument_typ;
  189. typedef struct xmlWriteStartElement
  190. {
  191. /* VAR_INPUT (analog) */
  192. unsigned long ident;
  193. unsigned long pName;
  194. /* VAR_OUTPUT (analog) */
  195. unsigned short status;
  196. /* VAR_INPUT (digital) */
  197. plcbit enable;
  198. } xmlWriteStartElement_typ;
  199. typedef struct xmlWriteAttribute
  200. {
  201. /* VAR_INPUT (analog) */
  202. unsigned long ident;
  203. unsigned long pName;
  204. unsigned long pValue;
  205. /* VAR_OUTPUT (analog) */
  206. unsigned short status;
  207. /* VAR_INPUT (digital) */
  208. plcbit enable;
  209. } xmlWriteAttribute_typ;
  210. typedef struct xmlWriteElementText
  211. {
  212. /* VAR_INPUT (analog) */
  213. unsigned long ident;
  214. unsigned long pText;
  215. /* VAR_OUTPUT (analog) */
  216. unsigned short status;
  217. /* VAR_INPUT (digital) */
  218. plcbit enable;
  219. } xmlWriteElementText_typ;
  220. typedef struct xmlWriteElementTextEx
  221. {
  222. /* VAR_INPUT (analog) */
  223. unsigned long ident;
  224. unsigned long pText;
  225. unsigned long textLen;
  226. /* VAR_OUTPUT (analog) */
  227. unsigned short status;
  228. /* VAR_INPUT (digital) */
  229. plcbit enable;
  230. } xmlWriteElementTextEx_typ;
  231. typedef struct xmlWriteEndElement
  232. {
  233. /* VAR_INPUT (analog) */
  234. unsigned long ident;
  235. /* VAR_OUTPUT (analog) */
  236. unsigned short status;
  237. /* VAR_INPUT (digital) */
  238. plcbit enable;
  239. } xmlWriteEndElement_typ;
  240. typedef struct xmlWriteComment
  241. {
  242. /* VAR_INPUT (analog) */
  243. unsigned long ident;
  244. unsigned long pText;
  245. /* VAR_OUTPUT (analog) */
  246. unsigned short status;
  247. /* VAR_INPUT (digital) */
  248. plcbit enable;
  249. } xmlWriteComment_typ;
  250. typedef struct xmlWriteCommentEx
  251. {
  252. /* VAR_INPUT (analog) */
  253. unsigned long ident;
  254. unsigned long pText;
  255. unsigned long textLen;
  256. /* VAR_OUTPUT (analog) */
  257. unsigned short status;
  258. /* VAR_INPUT (digital) */
  259. plcbit enable;
  260. } xmlWriteCommentEx_typ;
  261. typedef struct xmlWriteCData
  262. {
  263. /* VAR_INPUT (analog) */
  264. unsigned long ident;
  265. unsigned long pCData;
  266. /* VAR_OUTPUT (analog) */
  267. unsigned short status;
  268. /* VAR_INPUT (digital) */
  269. plcbit enable;
  270. } xmlWriteCData_typ;
  271. typedef struct xmlWriteCDataEx
  272. {
  273. /* VAR_INPUT (analog) */
  274. unsigned long ident;
  275. unsigned long pCData;
  276. unsigned long cdataLen;
  277. /* VAR_OUTPUT (analog) */
  278. unsigned short status;
  279. /* VAR_INPUT (digital) */
  280. plcbit enable;
  281. } xmlWriteCDataEx_typ;
  282. typedef struct xmlWritePI
  283. {
  284. /* VAR_INPUT (analog) */
  285. unsigned long ident;
  286. unsigned long pTarget;
  287. unsigned long pValue;
  288. /* VAR_OUTPUT (analog) */
  289. unsigned short status;
  290. /* VAR_INPUT (digital) */
  291. plcbit enable;
  292. } xmlWritePI_typ;
  293. /* Prototyping of functions and function blocks */
  294. _BUR_PUBLIC void xmlCreateMemoryReader(struct xmlCreateMemoryReader* inst);
  295. _BUR_PUBLIC void xmlCloseMemoryReader(struct xmlCloseMemoryReader* inst);
  296. _BUR_PUBLIC void xmlReadNextNode(struct xmlReadNextNode* inst);
  297. _BUR_PUBLIC void xmlReadAttributeNr(struct xmlReadAttributeNr* inst);
  298. _BUR_PUBLIC void xmlCreateMemoryWriter(struct xmlCreateMemoryWriter* inst);
  299. _BUR_PUBLIC void xmlGetMemoryInfo(struct xmlGetMemoryInfo* inst);
  300. _BUR_PUBLIC void xmlCloseMemoryWriter(struct xmlCloseMemoryWriter* inst);
  301. _BUR_PUBLIC void xmlWriteStartDocument(struct xmlWriteStartDocument* inst);
  302. _BUR_PUBLIC void xmlWriteStartDocEnc(struct xmlWriteStartDocEnc* inst);
  303. _BUR_PUBLIC void xmlWriteEndDocument(struct xmlWriteEndDocument* inst);
  304. _BUR_PUBLIC void xmlWriteStartElement(struct xmlWriteStartElement* inst);
  305. _BUR_PUBLIC void xmlWriteAttribute(struct xmlWriteAttribute* inst);
  306. _BUR_PUBLIC void xmlWriteElementText(struct xmlWriteElementText* inst);
  307. _BUR_PUBLIC void xmlWriteElementTextEx(struct xmlWriteElementTextEx* inst);
  308. _BUR_PUBLIC void xmlWriteEndElement(struct xmlWriteEndElement* inst);
  309. _BUR_PUBLIC void xmlWriteComment(struct xmlWriteComment* inst);
  310. _BUR_PUBLIC void xmlWriteCommentEx(struct xmlWriteCommentEx* inst);
  311. _BUR_PUBLIC void xmlWriteCData(struct xmlWriteCData* inst);
  312. _BUR_PUBLIC void xmlWriteCDataEx(struct xmlWriteCDataEx* inst);
  313. _BUR_PUBLIC void xmlWritePI(struct xmlWritePI* inst);
  314. #ifdef __cplusplus
  315. };
  316. #endif
  317. #endif /* _ASXML_ */