~ubuntu-branches/ubuntu/maverick/vala/maverick

« back to all changes in this revision

Viewing changes to vapi/libxml-2.0.vapi

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-02-13 17:59:22 UTC
  • mfrom: (7.3.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100213175922-n8bq2xv2q1hihhqb
Tags: 0.7.10-1ubuntu1
* Sync with Debian unstable.
* Remaining changes :
 - debian/rules: Don't make unit test failures fatal to fix FTBFS. It was
   needed if vala need to enter main but it's not the case for now. 
   (See #374151)

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
namespace Xml {
27
27
        /* nanoftp - minimal FTP implementation */
28
28
 
29
 
        [CCode (cname = "ftpDataCallback", cheader_filename = "libxml/nanoftp.h")]
30
 
        public static delegate void FtpDataCallback (void* userData, [CCode (array_length = false)] char[] data, int len);
 
29
        [CCode (cname = "ftpDataCallback", cheader_filename = "libxml/nanoftp.h", has_target = false)]
 
30
        public delegate void FtpDataCallback (void* userData, [CCode (array_length = false)] char[] data, int len);
31
31
 
32
 
        [CCode (cname = "ftpListCallback", cheader_filename = "libxml/nanoftp.h")]
33
 
        public static delegate void FtpListCallback (void* userData, string filename, string attrib, string owner, string group, ulong size, int links, int year, string month, int day, int hour, int minute);
 
32
        [CCode (cname = "ftpListCallback", cheader_filename = "libxml/nanoftp.h", has_target = false)]
 
33
        public delegate void FtpListCallback (void* userData, string filename, string attrib, string owner, string group, ulong size, int links, int year, string month, int day, int hour, int minute);
34
34
 
35
35
        [Compact]
36
36
        [CCode (cname = "void", free_function = "xmlNanoFTPFreeCtxt", cheader_filename = "libxml/nanoftp.h")]
211
211
                COMPACT,
212
212
        }
213
213
 
 
214
        [CCode (cname = "xmlCharEncoding", cprefix = "XML_CHAR_ENCODING_", cheader_filename = "libxml/encoding.h")]
 
215
        public enum CharEncoding {
 
216
                ERROR,
 
217
                NONE,
 
218
                UTF8,
 
219
                UTF16LE,
 
220
                UTF16BE,
 
221
                UCS4LE,
 
222
                UCS4BE,
 
223
                EBCDIC,
 
224
                UCS4_2143,
 
225
                UCS4_3412,
 
226
                UCS2,
 
227
                [CCode (cname = "XML_CHAR_ENCODING_8859_1")]
 
228
                ISO_8859_1,
 
229
                [CCode (cname = "XML_CHAR_ENCODING_8859_2")]
 
230
                ISO_8859_2,
 
231
                [CCode (cname = "XML_CHAR_ENCODING_8859_3")]
 
232
                ISO_8859_3,
 
233
                [CCode (cname = "XML_CHAR_ENCODING_8859_4")]
 
234
                ISO_8859_4,
 
235
                [CCode (cname = "XML_CHAR_ENCODING_8859_5")]
 
236
                ISO_8859_5,
 
237
                [CCode (cname = "XML_CHAR_ENCODING_8859_6")]
 
238
                ISO_8859_6,
 
239
                [CCode (cname = "XML_CHAR_ENCODING_8859_7")]
 
240
                ISO_8859_7,
 
241
                [CCode (cname = "XML_CHAR_ENCODING_8859_8")]
 
242
                ISO_8859_8,
 
243
                [CCode (cname = "XML_CHAR_ENCODING_8859_9")]
 
244
                ISO_8859_9,
 
245
                ISO_2022_JP,
 
246
                SHIFT_JIS,
 
247
                EUC_JP,
 
248
                ASCII,
 
249
        }
214
250
 
215
251
        /* tree - interfaces for tree manipulation */
216
252
 
312
348
                [CCode (cname = "xmlCreateIntSubset")]
313
349
                public Dtd* create_int_subset (string name, string external_id, string system_id);
314
350
 
315
 
                [CCode (cname = "xmlDocDump")]
316
 
                public static int dump (GLib.FileStream f, Doc* cur);
 
351
                [CCode (cname = "xmlDocDump", instance_pos = -1)]
 
352
#if POSIX
 
353
                public int dump (Posix.FILE f);
 
354
#else
 
355
                public int dump (GLib.FileStream f);
 
356
#endif
317
357
 
318
358
                [CCode (cname = "xmlDocDumpFormatMemory")]
319
359
                public void dump_memory_format (out string mem, out int len = null, bool format = true);
327
367
                [CCode (cname = "xmlDocDumpMemoryEnc")]
328
368
                public void dump_memory_enc (out string mem, out int len = null, string enc = "UTF-8");
329
369
 
330
 
                [CCode (cname = "xmlDocFormatDump")]
331
 
                public static int dump_format (GLib.FileStream f, Doc* cur, bool format = true);
 
370
                [CCode (cname = "xmlDocFormatDump", instance_pos = 2)]
 
371
#if POSIX
 
372
                public int dump_format (Posix.FILE f, bool format = true);
 
373
#else
 
374
                public int dump_format (GLib.FileStream f, bool format = true);
 
375
#endif
332
376
 
333
377
                [CCode (cname = "xmlDocGetRootElement")]
334
378
                public Node* get_root_element();
336
380
                [CCode (cname = "xmlDocSetRootElement")]
337
381
                public Node* set_root_element(Node* root);
338
382
 
339
 
                [CCode (cname = "xmlElemDump")]
340
 
                public static void elem_dump (GLib.FileStream f, Doc* doc, Node* cur);
 
383
                [CCode (cname = "xmlElemDump", instance_pos = 2)]
 
384
#if POSIX
 
385
                public void elem_dump (Posix.FILE f, Node* cur);
 
386
#else
 
387
                public void elem_dump (GLib.FileStream f, Node* cur);
 
388
#endif
341
389
 
342
390
                [CCode (cname = "xmlGetDocCompressMode")]
343
391
                public int get_compress_mode ();
382
430
                public Node* new_reference (string name);
383
431
 
384
432
                [CCode (cname = "xmlNodeListGetRawString")]
385
 
                public string node_list_get_raw_string (Node* list, int _inline);
 
433
                public string node_list_get_raw_string (Node* list, bool in_line);
386
434
 
387
435
                [CCode (cname = "xmlNodeListGetString")]
388
 
                public string node_list_get_string (Node* list, int _inline);
 
436
                public string node_list_get_string (Node* list, bool in_line);
389
437
 
390
438
                [CCode (cname = "xmlSaveFile", instance_pos = -1)]
391
439
                public int save_file (string filename);
392
440
 
393
 
                [CCode (cname = "xmlSaveFileEnc")]
394
 
                public static void save_file_enc (string filename, Doc* cur, string enc = "UTF-8");
395
 
 
396
 
                [CCode (cname = "xmlSaveFormatFile")]
397
 
                public static void save_format_file (string filename, Doc* cur, int format);
398
 
 
399
 
                [CCode (cname = "xmlSaveFormatFileEnc")]
400
 
                public static void save_format_file_enc (string filename, Doc* cur, string enc, int format);
 
441
                [CCode (cname = "xmlSaveFileEnc", instance_pos = 2)]
 
442
                public void save_file_enc (string filename, string enc = "UTF-8");
 
443
 
 
444
                [CCode (cname = "xmlSaveFormatFile", instance_pos = 2)]
 
445
                public void save_format_file (string filename, int format);
 
446
 
 
447
                [CCode (cname = "xmlSaveFormatFileEnc", instance_pos = 2)]
 
448
                public void save_format_file_enc (string filename, string enc = "UTf-8", bool format = true);
401
449
 
402
450
                [CCode (cname = "xmlSetDocCompressMode")]
403
451
                public void set_compress_mode (int mode);
518
566
                public string content;
519
567
                public int length;
520
568
                public EntityType etype;
521
 
                public const string ExternalID;
522
 
                public const string SystemID;
 
569
                [CCode (cname = "ExternalID")]
 
570
                public const string external_id;
 
571
                [CCode (cname = "SystemID")]
 
572
                public const string system_id;
523
573
                public Entity* nexte;
524
 
                public const string URI;
 
574
                [CCode (cname = "URI")]
 
575
                public const string uri;
525
576
                public int owner;
526
577
                public int checked;
527
578
        }
720
771
        [CCode (cname = "xmlNs", cheader_filename = "libxml/tree.h")]
721
772
        public class Ns {
722
773
                [CCode (cname = "xmlNewNs")]
723
 
                public static Ns* create (Xml.Node* node, string href, string prefix);
 
774
                public Ns (Xml.Node* node, string href, string prefix);
724
775
                public Ns* next;
725
776
                public ElementType type;
726
777
                public string href;
763
814
                public static URI parse (string str);
764
815
 
765
816
                [CCode (cname = "xmlParseURIRaw")]
766
 
                public static URI parse_raw (string str, int raw);
 
817
                public static URI parse_raw (string str, bool raw);
767
818
 
768
819
                [CCode (cname = "xmlParseURIReference")]
769
820
                public int parse_reference (string str);
772
823
                public static string path_to_uri (string path);
773
824
 
774
825
                [CCode (cname = "xmlPrintURI", instance_pos = -1)]
 
826
#if POSIX
 
827
                public void print (Posix.FILE stream);
 
828
#else
775
829
                public void print (GLib.FileStream stream);
 
830
#endif
776
831
 
777
832
                [CCode (cname = "xmlSaveUri")]
778
833
                public string save ();
802
857
 
803
858
        /* xmlIO - interface for the I/O interfaces used by the parser */
804
859
 
805
 
        [CCode (cname = "xmlInputCloseCallback", cheader_filename = "libxml/xmlIO.h")]
806
 
        public static delegate int InputCloseCallback (void* context);
 
860
        [CCode (cname = "xmlInputCloseCallback", cheader_filename = "libxml/xmlIO.h", has_target = false)]
 
861
        public delegate int InputCloseCallback (void* context);
807
862
 
808
 
        [CCode (cname = "xmlInputReadCallback", cheader_filename = "libxml/xmlIO.h")]
809
 
        public static delegate int InputReadCallback (void* context, [CCode (array_length = false)] char[] buffer, int len);
 
863
        [CCode (cname = "xmlInputReadCallback", cheader_filename = "libxml/xmlIO.h", has_target = false)]
 
864
        public delegate int InputReadCallback (void* context, [CCode (array_length = false)] char[] buffer, int len);
810
865
 
811
866
 
812
867
        /* xmlschemas - incomplete XML Schemas structure implementation */
864
919
                public TextReader.filename (string uri);
865
920
 
866
921
                [CCode (cname = "xmlReaderForDoc")]
867
 
                public TextReader.for_doc (string cur, string url, string? encoding, int options);
 
922
                public TextReader.for_doc (string cur, string url, string? encoding = null, int options = 0);
868
923
 
869
924
                [CCode (cname = "xmlReaderForFd")]
870
 
                public TextReader.for_fd (int fd, string url, string? encoding, int options);
 
925
                public TextReader.for_fd (int fd, string url, string? encoding = null, int options = 0);
871
926
 
872
927
                [CCode (cname = "xmlReaderForFile")]
873
 
                public TextReader.for_file (string filename, string? encoding, int options);
 
928
                public TextReader.for_file (string filename, string? encoding = null, int options = 0);
874
929
 
875
930
                [CCode (cname = "xmlReaderForIO")]
876
 
                public TextReader.for_io (InputReadCallback ioread, InputCloseCallback ioclose, void* ioctx, string url, string encoding, int options);
 
931
                public TextReader.for_io (InputReadCallback ioread, InputCloseCallback ioclose, void* ioctx, string url, string? encoding = null, int options = 0);
877
932
 
878
933
                [CCode (cname = "xmlReaderForMemory")]
879
 
                public TextReader.for_memory ([CCode (array_length = false)] char[] buffer, int size, string url, string encoding, int options);
 
934
                public TextReader.for_memory ([CCode (array_length = false)] char[] buffer, int size, string url, string? encoding = null, int options = 0);
880
935
 
881
936
                [CCode (cname = "xmlReaderNewDoc")]
882
 
                public int new_doc (string cur, string url, string? encoding, int options);
 
937
                public int new_doc (string cur, string url, string? encoding = null, int options = 0);
883
938
 
884
939
                [CCode (cname = "xmlReaderNewFd")]
885
 
                public int new_fd (int fd, string url, string? encoding, int options);
 
940
                public int new_fd (int fd, string url, string? encoding = null, int options = 0);
886
941
 
887
942
                [CCode (cname = "xmlReaderNewFile")]
888
 
                public int new_file (string filename, string? encoding, int options);
 
943
                public int new_file (string filename, string? encoding = null, int options = 0);
889
944
 
890
945
                [CCode (cname = "xmlReaderNewIO")]
891
 
                public int new_io (InputReadCallback ioread, InputCloseCallback ioclose, void* ioctx, string url, string encoding, int options);
 
946
                public int new_io (InputReadCallback ioread, InputCloseCallback ioclose, void* ioctx, string url, string? encoding = null, int options = 0);
892
947
 
893
948
                [CCode (cname = "xmlReaderNewMemory")]
894
 
                public int new_memory ([CCode (array_length = false)] char[] buffer, int size, string url, string? encoding, int options);
 
949
                public int new_memory ([CCode (array_length = false)] char[] buffer, int size, string url, string? encoding = null, int options = 0);
895
950
 
896
951
                [CCode (cname = "xmlReaderNewWalker")]
897
952
                public int new_walker (Doc* doc);
1101
1156
                READING
1102
1157
        }
1103
1158
 
1104
 
        public static delegate void TextReaderErrorFunc (void* arg, string msg, ParserSeverities severity, TextReaderLocator* locator);
 
1159
        [CCode (has_target = false)]
 
1160
        public delegate void TextReaderErrorFunc (void* arg, string msg, ParserSeverities severity, TextReaderLocator* locator);
1105
1161
 
1106
1162
 
1107
1163
        /* xpath - XML Path Language implementation */
1110
1166
        namespace XPath {
1111
1167
                [CCode (cname = "xmlXPathOrderDocElems")]
1112
1168
                public static long order_doc_elements (Doc* doc);
1113
 
        }
1114
 
 
1115
 
        [Compact]
1116
 
        [CCode (cname = "xmlNodeSet", cheader_filename = "libxml/xpath.h")]
1117
 
        public class NodeSet {
1118
 
                [CCode (cname = "xmlXPathNodeSetGetLength")]
1119
 
                public int length ();
1120
 
 
1121
 
                [CCode (cname = "xmlXPathNodeSetIsEmpty")]
1122
 
                public bool is_empty ();
1123
 
 
1124
 
                [CCode (cname = "xmlXPathNodeSetItem")]
1125
 
                public Node* item (int index);
1126
 
        }
1127
 
 
1128
 
        [Compact]
1129
 
        [CCode (cname = "xmlXPathContext", free_function = "xmlXPathFreeContext", cheader_filename = "libxml/xpath.h")]
1130
 
        public class XPathContext {
1131
 
                public Doc* doc;
1132
 
                public Node* node;
1133
 
 
1134
 
                [CCode (cname = "xmlXPathContextSetCache")]
1135
 
                public int set_cache (int active, int value, int options);
1136
 
 
1137
 
                [CCode (cname = "xmlXPathEval", instance_pos = -1)]
1138
 
                public XPathObject* eval (string str);
1139
 
 
1140
 
                [CCode (cname = "xmlXPathEvalExpression", instance_pos = -1)]
1141
 
                public XPathObject* eval_expression (string str);
1142
 
 
1143
 
                [CCode (cname = "xmlXPathRegisterNs")]
1144
 
                public int register_ns (string prefix, string ns_uri);
1145
 
 
1146
 
                [CCode (cname = "xmlXPathNewContext")]
1147
 
                public XPathContext (Doc* doc);
1148
 
        }
1149
 
 
1150
 
        [CCode (cname = "xmlXPathError", cprefix = "", cheader_filename = "libxml/xpath.h")]
1151
 
        public enum XPathError {
1152
 
                XPATH_EXPRESSION_OK,
1153
 
                XPATH_NUMBER_ERROR,
1154
 
                XPATH_UNFINISHED_LITERAL_ERROR,
1155
 
                XPATH_START_LITERAL_ERROR,
1156
 
                XPATH_VARIABLE_REF_ERROR,
1157
 
                XPATH_UNDEF_VARIABLE_ERROR,
1158
 
                XPATH_INVALID_PREDICATE_ERROR,
1159
 
                XPATH_EXPR_ERROR,
1160
 
                XPATH_UNCLOSED_ERROR,
1161
 
                XPATH_UNKNOWN_FUNC_ERROR,
1162
 
                XPATH_INVALID_OPERAND,
1163
 
                XPATH_INVALID_TYPE,
1164
 
                XPATH_INVALID_ARITY,
1165
 
                XPATH_INVALID_CTXT_SIZE,
1166
 
                XPATH_INVALID_CTXT_POSITION,
1167
 
                XPATH_MEMORY_ERROR,
1168
 
                XPTR_SYNTAX_ERROR,
1169
 
                XPTR_RESOURCE_ERROR,
1170
 
                XPTR_SUB_RESOURCE_ERROR,
1171
 
                XPATH_UNDEF_PREFIX_ERROR,
1172
 
                XPATH_ENCODING_ERROR,
1173
 
                XPATH_INVALID_CHAR_ERROR,
1174
 
                XPATH_INVALID_CTXT
1175
 
        }
1176
 
 
1177
 
        [Compact]
1178
 
        [CCode (cname = "xmlXPathObject", cheader_filename = "libxml/xpath.h")]
1179
 
        public class XPathObject {
1180
 
                public XPathObjectType type;
1181
 
                public NodeSet* nodesetval;
1182
 
                public int boolval;
1183
 
                public double floatval;
1184
 
                public string stringval;
1185
 
                public void* user;
1186
 
                public int index;
1187
 
                public void* user2;
1188
 
                public int index2;
1189
 
        }
1190
 
 
1191
 
        [CCode (cname = "xmlXPathObjectType", cprefix = "XPATH_", cheader_filename = "libxml/xpath.h")]
1192
 
        public enum XPathObjectType {
1193
 
                UNDEFINED,
1194
 
                NODESET,
1195
 
                BOOLEAN,
1196
 
                NUMBER,
1197
 
                STRING,
1198
 
                POINT,
1199
 
                RANGE,
1200
 
                LOCATIONSET,
1201
 
                USERS,
1202
 
                XSLT_TREE
1203
 
        }
1204
 
 
 
1169
 
 
1170
                [Compact]
 
1171
                [CCode (cname = "xmlNodeSet", cheader_filename = "libxml/xpath.h")]
 
1172
                public class NodeSet {
 
1173
                        [CCode (cname = "xmlXPathNodeSetGetLength")]
 
1174
                        public int length ();
 
1175
 
 
1176
                        [CCode (cname = "xmlXPathNodeSetIsEmpty")]
 
1177
                        public bool is_empty ();
 
1178
 
 
1179
                        [CCode (cname = "xmlXPathNodeSetItem")]
 
1180
                        public Node* item (int index);
 
1181
                }
 
1182
 
 
1183
                [Compact]
 
1184
                [CCode (cname = "xmlXPathContext", free_function = "xmlXPathFreeContext", cheader_filename = "libxml/xpath.h")]
 
1185
                public class Context {
 
1186
                        public Doc* doc;
 
1187
                        public Node* node;
 
1188
 
 
1189
                        [CCode (cname = "xmlXPathContextSetCache")]
 
1190
                        public int set_cache (int active, int value, int options);
 
1191
 
 
1192
                        [CCode (cname = "xmlXPathEval", instance_pos = -1)]
 
1193
                        public Object* eval (string str);
 
1194
 
 
1195
                        [CCode (cname = "xmlXPathEvalExpression", instance_pos = -1)]
 
1196
                        public Object* eval_expression (string str);
 
1197
 
 
1198
                        [CCode (cname = "xmlXPathRegisterNs")]
 
1199
                        public int register_ns (string prefix, string ns_uri);
 
1200
 
 
1201
                        [CCode (cname = "xmlXPathNewContext")]
 
1202
                        public Context (Doc* doc);
 
1203
                }
 
1204
 
 
1205
                [CCode (cname = "xmlXPathError", cprefix = "XPATH_", cheader_filename = "libxml/xpath.h")]
 
1206
                public enum Error {
 
1207
                        EXPRESSION_OK,
 
1208
                        NUMBER_ERROR,
 
1209
                        UNFINISHED_LITERAL_ERROR,
 
1210
                        START_LITERAL_ERROR,
 
1211
                        VARIABLE_REF_ERROR,
 
1212
                        UNDEF_VARIABLE_ERROR,
 
1213
                        INVALID_PREDICATE_ERROR,
 
1214
                        EXPR_ERROR,
 
1215
                        UNCLOSED_ERROR,
 
1216
                        UNKNOWN_FUNC_ERROR,
 
1217
                        INVALID_OPERAND,
 
1218
                        INVALID_TYPE,
 
1219
                        INVALID_ARITY,
 
1220
                        INVALID_CTXT_SIZE,
 
1221
                        INVALID_CTXT_POSITION,
 
1222
                        MEMORY_ERROR,
 
1223
                        [CCode (cname = "XPTR_SYNTAX_ERROR")]
 
1224
                        XPTR_SYNTAX_ERROR,
 
1225
                        [CCode (cname = "XPTR_RESOURCE_ERROR")]
 
1226
                        XPTR_RESOURCE_ERROR,
 
1227
                        [CCode (cname = "XPTR_SUB_RESOURCE_ERROR")]
 
1228
                        XPTR_SUB_RESOURCE_ERROR,
 
1229
                        UNDEF_PREFIX_ERROR,
 
1230
                        ENCODING_ERROR,
 
1231
                        INVALID_CHAR_ERROR,
 
1232
                        INVALID_CTXT
 
1233
                }
 
1234
 
 
1235
                [Compact]
 
1236
                [CCode (cname = "xmlXPathObject", cheader_filename = "libxml/xpath.h")]
 
1237
                public class Object {
 
1238
                        public ObjectType type;
 
1239
                        public NodeSet* nodesetval;
 
1240
                        public int boolval;
 
1241
                        public double floatval;
 
1242
                        public string stringval;
 
1243
                        public void* user;
 
1244
                        public int index;
 
1245
                        public void* user2;
 
1246
                        public int index2;
 
1247
                }
 
1248
 
 
1249
                [CCode (cname = "xmlXPathObjectType", cprefix = "XPATH_", cheader_filename = "libxml/xpath.h")]
 
1250
                public enum ObjectType {
 
1251
                        UNDEFINED,
 
1252
                        NODESET,
 
1253
                        BOOLEAN,
 
1254
                        NUMBER,
 
1255
                        STRING,
 
1256
                        POINT,
 
1257
                        RANGE,
 
1258
                        LOCATIONSET,
 
1259
                        USERS,
 
1260
                        XSLT_TREE
 
1261
                }
 
1262
        }
1205
1263
 
1206
1264
        /* SAX CALLBACKS */
1207
1265
 
1208
 
        [CCode (cname = "attributeDeclSAXFunc")]
1209
 
        public static delegate void attributeDeclSAXFunc (void* ctx, string elem, string fullname, int type, int def, string defaultValue, Enumeration* tree);
1210
 
 
1211
 
        [CCode (cname = "attributeSAXFunc")]
1212
 
        public static delegate void attributeSAXFunc (void* ctx, string name, string value);
1213
 
 
1214
 
        [CCode (cname = "cdataBlockSAXFunc")]
1215
 
        public static delegate void cdataBlockSAXFunc (void* ctx, string value, int len);
1216
 
 
1217
 
        [CCode (cname = "charactersSAXFunc")]
1218
 
        public static delegate void charactersSAXFunc (void* ctx, string ch, int len);
1219
 
 
1220
 
        [CCode (cname = "commentsSAXFunc")]
1221
 
        public static delegate void commentSAXFunc (void* ctx, string value);
1222
 
 
1223
 
        [CCode (cname = "elementDeclSAXFunc")]
1224
 
        public static delegate void elementDeclSAXFunc (void* ctx, string name, int type, ElementContent content);
1225
 
 
1226
 
        [CCode (cname = "endDocumentSAXFunc")]
1227
 
        public static delegate void endDocumentSAXFunc (void* ctx);
1228
 
 
1229
 
        [CCode (cname = "endElementNsSAX2Func")]
1230
 
        public static delegate void endElementNsSAX2Func (void* ctx, string localname, string prefix, string URI);
1231
 
 
1232
 
        [CCode (cname = "endElementSAXFunc")]
1233
 
        public static delegate void endElementSAXFunc (void* ctx, string name);
1234
 
 
1235
 
        [CCode (cname = "entityDeclSAXFunc")]
1236
 
        public static delegate void entityDeclSAXFunc (void* ctx, string name, int type, string publicId, string systemId, string content);
1237
 
 
1238
 
        [CCode (cname = "errorSAXFunc")]
1239
 
        public static delegate void errorSAXFunc (void* ctx, string msg, ...);
1240
 
 
1241
 
        [CCode (cname = "externalSubsetSAXFunc")]
1242
 
        public static delegate void externalSubsetSAXFunc (void* ctx, string name, string ExternalID, string SystemID);
1243
 
 
1244
 
        [CCode (cname = "fatalErrorSAXFunc")]
1245
 
        public static delegate void fatalErrorSAXFunc (void* ctx, string msg, ...);
1246
 
 
1247
 
        [CCode (cname = "getEntitySAXFunc")]
1248
 
        public static delegate Entity* getEntitySAXFunc (void* ctx, string name);
1249
 
 
1250
 
        [CCode (cname = "getParameterEntitySAXFunc")]
1251
 
        public static delegate Entity* getParameterEntitySAXFunc (void* ctx, string name);
1252
 
 
1253
 
        [CCode (cname = "hasExternalSubsetSAXFunc")]
1254
 
        public static delegate int hasExternalSubsetSAXFunc (void* ctx);
1255
 
 
1256
 
        [CCode (cname = "hasInternalSubsetSAXFunc")]
1257
 
        public static delegate int hasInternalSubsetSAXFunc (void* ctx);
1258
 
 
1259
 
        [CCode (cname = "ignorableWhitespaceSAXFunc")]
1260
 
        public static delegate void ignorableWhitespaceSAXFunc (void* ctx, string ch, int len);
1261
 
 
1262
 
        [CCode (cname = "internalSubsetSAXFunc")]
1263
 
        public static delegate void internalSubsetSAXFunc (void* ctx, string name, string ExternalID, string SystemID);
1264
 
 
1265
 
        [CCode (cname = "isStandaloneSAXFunc")]
1266
 
        public static delegate int isStandaloneSAXFunc (void* ctx);
1267
 
 
1268
 
        [CCode (cname = "notationDeclSAXFunc")]
1269
 
        public static delegate void notationDeclSAXFunc (void* ctx, string name, string publicId, string systemId);
1270
 
 
1271
 
        [CCode (cname = "processingInstructionSAXFunc")]
1272
 
        public static delegate void processingInstructionSAXFunc (void* ctx, string target, string data);
1273
 
 
1274
 
        [CCode (cname = "referenceSAXFunc")]
1275
 
        public static delegate void referenceSAXFunc (void* ctx, string name);
1276
 
 
1277
 
        // [CCode (cname = "resolveEntitySAXFunc")]
1278
 
        // public static delegate ParserInput resolveEntitySAXFunc (void* ctx, string publicId, string systemId);
1279
 
 
1280
 
        // [CCode (cname = "setDocumentLocatorSAXFunc")]
1281
 
        // public static delegate void setDocumentLocatorSAXFunc (void* ctx, SAXLocator loc);
1282
 
 
1283
 
        [CCode (cname = "startDocumentSAXFunc")]
1284
 
        public static delegate void startDocumentSAXFunc (void* ctx);
1285
 
 
1286
 
        [CCode (cname = "startElementNsSAX2Func")]
1287
 
        public static delegate void startElementNsSAX2Func (void* ctx, string localname, string prefix, string URI, int nb_namespaces, [CCode (array_length = false)] string[] namespaces, int nb_attributes, int nb_defaulted, [CCode (array_length = false)] string[] attributes);
1288
 
 
1289
 
        [CCode (cname = "startElementSAXFunc")]
1290
 
        public static delegate void startElementSAXFunc (void* ctx, string name, [CCode (array_length = false)] string[] atts);
1291
 
 
1292
 
        [CCode (cname = "unparsedEntityDeclSAXFunc")]
1293
 
        public static delegate void unparsedEntityDeclSAXFunc (void* ctx, string name, string publicId, string systemId, string notationName);
1294
 
 
1295
 
        [CCode (cname = "warningSAXFunc")]
1296
 
        public static delegate void warningSAXFunc (void* ctx, string msg, ...);
1297
 
 
1298
 
        [CCode (cname ="xmlStructuredErrorFunc")]
1299
 
        public static delegate void xmlStructuredErrorFunc (void* ctx, Error* error);
 
1266
        [CCode (cname = "attributeDeclSAXFunc", has_target = false)]
 
1267
        public delegate void attributeDeclSAXFunc (void* ctx, string elem, string fullname, int type, int def, string defaultValue, Enumeration* tree);
 
1268
 
 
1269
        [CCode (cname = "attributeSAXFunc", has_target = false)]
 
1270
        public delegate void attributeSAXFunc (void* ctx, string name, string value);
 
1271
 
 
1272
        [CCode (cname = "cdataBlockSAXFunc", has_target = false)]
 
1273
        public delegate void cdataBlockSAXFunc (void* ctx, string value, int len);
 
1274
 
 
1275
        [CCode (cname = "charactersSAXFunc", has_target = false)]
 
1276
        public delegate void charactersSAXFunc (void* ctx, string ch, int len);
 
1277
 
 
1278
        [CCode (cname = "commentsSAXFunc", has_target = false)]
 
1279
        public delegate void commentSAXFunc (void* ctx, string value);
 
1280
 
 
1281
        [CCode (cname = "elementDeclSAXFunc", has_target = false)]
 
1282
        public delegate void elementDeclSAXFunc (void* ctx, string name, int type, ElementContent content);
 
1283
 
 
1284
        [CCode (cname = "endDocumentSAXFunc", has_target = false)]
 
1285
        public delegate void endDocumentSAXFunc (void* ctx);
 
1286
 
 
1287
        [CCode (cname = "endElementNsSAX2Func", has_target = false)]
 
1288
        public delegate void endElementNsSAX2Func (void* ctx, string localname, string prefix, string URI);
 
1289
 
 
1290
        [CCode (cname = "endElementSAXFunc", has_target = false)]
 
1291
        public delegate void endElementSAXFunc (void* ctx, string name);
 
1292
 
 
1293
        [CCode (cname = "entityDeclSAXFunc", has_target = false)]
 
1294
        public delegate void entityDeclSAXFunc (void* ctx, string name, int type, string publicId, string systemId, string content);
 
1295
 
 
1296
        [CCode (cname = "errorSAXFunc", has_target = false)]
 
1297
        public delegate void errorSAXFunc (void* ctx, string msg, ...);
 
1298
 
 
1299
        [CCode (cname = "externalSubsetSAXFunc", has_target = false)]
 
1300
        public delegate void externalSubsetSAXFunc (void* ctx, string name, string ExternalID, string SystemID);
 
1301
 
 
1302
        [CCode (cname = "fatalErrorSAXFunc", has_target = false)]
 
1303
        public delegate void fatalErrorSAXFunc (void* ctx, string msg, ...);
 
1304
 
 
1305
        [CCode (cname = "getEntitySAXFunc", has_target = false)]
 
1306
        public delegate Entity* getEntitySAXFunc (void* ctx, string name);
 
1307
 
 
1308
        [CCode (cname = "getParameterEntitySAXFunc", has_target = false)]
 
1309
        public delegate Entity* getParameterEntitySAXFunc (void* ctx, string name);
 
1310
 
 
1311
        [CCode (cname = "hasExternalSubsetSAXFunc", has_target = false)]
 
1312
        public delegate int hasExternalSubsetSAXFunc (void* ctx);
 
1313
 
 
1314
        [CCode (cname = "hasInternalSubsetSAXFunc", has_target = false)]
 
1315
        public delegate int hasInternalSubsetSAXFunc (void* ctx);
 
1316
 
 
1317
        [CCode (cname = "ignorableWhitespaceSAXFunc", has_target = false)]
 
1318
        public delegate void ignorableWhitespaceSAXFunc (void* ctx, string ch, int len);
 
1319
 
 
1320
        [CCode (cname = "internalSubsetSAXFunc", has_target = false)]
 
1321
        public delegate void internalSubsetSAXFunc (void* ctx, string name, string ExternalID, string SystemID);
 
1322
 
 
1323
        [CCode (cname = "isStandaloneSAXFunc", has_target = false)]
 
1324
        public delegate int isStandaloneSAXFunc (void* ctx);
 
1325
 
 
1326
        [CCode (cname = "notationDeclSAXFunc", has_target = false)]
 
1327
        public delegate void notationDeclSAXFunc (void* ctx, string name, string publicId, string systemId);
 
1328
 
 
1329
        [CCode (cname = "processingInstructionSAXFunc", has_target = false)]
 
1330
        public delegate void processingInstructionSAXFunc (void* ctx, string target, string data);
 
1331
 
 
1332
        [CCode (cname = "referenceSAXFunc", has_target = false)]
 
1333
        public delegate void referenceSAXFunc (void* ctx, string name);
 
1334
 
 
1335
        // [CCode (cname = "resolveEntitySAXFunc", has_target = false)]
 
1336
        // public delegate ParserInput resolveEntitySAXFunc (void* ctx, string publicId, string systemId);
 
1337
 
 
1338
        // [CCode (cname = "setDocumentLocatorSAXFunc", has_target = false)]
 
1339
        // public delegate void setDocumentLocatorSAXFunc (void* ctx, SAXLocator loc);
 
1340
 
 
1341
        [CCode (cname = "startDocumentSAXFunc", has_target = false)]
 
1342
        public delegate void startDocumentSAXFunc (void* ctx);
 
1343
 
 
1344
        [CCode (cname = "startElementNsSAX2Func", has_target = false)]
 
1345
        public delegate void startElementNsSAX2Func (void* ctx, string localname, string prefix, string URI, int nb_namespaces, [CCode (array_length = false)] string[] namespaces, int nb_attributes, int nb_defaulted, [CCode (array_length = false)] string[] attributes);
 
1346
 
 
1347
        [CCode (cname = "startElementSAXFunc", has_target = false)]
 
1348
        public delegate void startElementSAXFunc (void* ctx, string name, [CCode (array_length = false)] string[] atts);
 
1349
 
 
1350
        [CCode (cname = "unparsedEntityDeclSAXFunc", has_target = false)]
 
1351
        public delegate void unparsedEntityDeclSAXFunc (void* ctx, string name, string publicId, string systemId, string notationName);
 
1352
 
 
1353
        [CCode (cname = "warningSAXFunc", has_target = false)]
 
1354
        public delegate void warningSAXFunc (void* ctx, string msg, ...);
 
1355
 
 
1356
        [CCode (cname ="xmlStructuredErrorFunc", has_target = false)]
 
1357
        public delegate void xmlStructuredErrorFunc (void* ctx, Error* error);
1300
1358
 
1301
1359
        [Compact]
1302
1360
        [CCode (cname = "xmlSAXHandler")]
1303
1361
        public struct SAXHandler {
 
1362
                [CCode (cname = "internalSubset")]
1304
1363
                public internalSubsetSAXFunc internalSubset;
1305
 
                public isStandaloneSAXFunc isStandalone;
 
1364
                [CCode (cname = "isStandalone")]
 
1365
                public isStandaloneSAXFunc is_standalone;
 
1366
                [CCode (cname = "hasInternalSubset")]
1306
1367
                public hasInternalSubsetSAXFunc hasInternalSubset;
 
1368
                [CCode (cname = "hasExternalSubset")]
1307
1369
                public hasExternalSubsetSAXFunc hasExternalSubset;
1308
1370
                // public resolveEntitySAXFunc resolveEntity;
 
1371
                [CCode (cname = "getEntity")]
1309
1372
                public getEntitySAXFunc getEntity;
 
1373
                [CCode (cname = "entityDecl")]
1310
1374
                public entityDeclSAXFunc entityDecl;
 
1375
                [CCode (cname = "notationDecl")]
1311
1376
                public notationDeclSAXFunc notationDecl;
 
1377
                [CCode (cname = "attributeDecl")]
1312
1378
                public attributeDeclSAXFunc attributeDecl;
 
1379
                [CCode (cname = "elementDecl")]
1313
1380
                public elementDeclSAXFunc elementDecl;
 
1381
                [CCode (cname = "unparsedEntityDecl")]
1314
1382
                public unparsedEntityDeclSAXFunc unparsedEntityDecl;
1315
1383
                // public setDocumentLocatorSAXFunc setDocumentLocator;
 
1384
                [CCode (cname = "startDocument")]
1316
1385
                public startDocumentSAXFunc startDocument;
 
1386
                [CCode (cname = "endDocument")]
1317
1387
                public endDocumentSAXFunc endDocument;
 
1388
                [CCode (cname = "startElement")]
1318
1389
                public startElementSAXFunc startElement;
 
1390
                [CCode (cname = "endElement")]
1319
1391
                public endElementSAXFunc endElement;
1320
1392
                public referenceSAXFunc reference;
1321
1393
                public charactersSAXFunc characters;
 
1394
                [CCode (cname = "ignorableWhitespace")]
1322
1395
                public ignorableWhitespaceSAXFunc ignorableWhitespace;
 
1396
                [CCode (cname = "processingInstruction")]
1323
1397
                public processingInstructionSAXFunc processingInstruction;
1324
1398
                public commentSAXFunc comment;
1325
1399
                public warningSAXFunc warning;
1326
1400
                public errorSAXFunc error;
 
1401
                [CCode (cname = "fatalError")]
1327
1402
                public fatalErrorSAXFunc  fatalError;
 
1403
                [CCode (cname = "getParameterEntity")]
1328
1404
                public getParameterEntitySAXFunc getParameterEntity;
 
1405
                [CCode (cname = "cdataBlock")]
1329
1406
                public cdataBlockSAXFunc cdataBlock;
 
1407
                [CCode (cname = "externalSubset")]
1330
1408
                public externalSubsetSAXFunc externalSubset;
1331
1409
                public uint initialized;
 
1410
                [CCode (cname = "startElementNs")]
1332
1411
                public startElementNsSAX2Func startElementNs;
 
1412
                [CCode (cname = "endElementNs")]
1333
1413
                public endElementNsSAX2Func endElementNs;
1334
1414
                public xmlStructuredErrorFunc serror;
1335
 
        }
1336
1415
 
1337
 
        [CCode (lower_case_cprefix = "xmlSAX")]
1338
 
        namespace SAXParser {
1339
 
                public int UserParseMemory (SAXHandler* sax, void* user_data, string buffer, int size);
1340
 
                public int UserParseFile (SAXHandler* sax, void* user_data, string filename);
 
1416
                [CCode (cname = "UserParseMemory")]
 
1417
                public int user_parse_memory (void* user_data, string buffer, int size);
 
1418
                [CCode (cname = "UserParseFile")]
 
1419
                public int user_parse_file (void* user_data, string filename);
1341
1420
        }
1342
1421
 
1343
1422
 
1370
1449
        }
1371
1450
 
1372
1451
}
 
1452
 
 
1453
namespace Html {
 
1454
        [CCode (cname = "htmlIsBooleanAttr", cheader_filename = "libxml/HTMLtree.h")]
 
1455
        public static int is_boolean_attr (string name);
 
1456
 
 
1457
        [CCode (cname = "UTF8ToHtml", cheader_filename = "libxml/HTMLparser.h")]
 
1458
        public static int utf8_to_html ([CCode (array_length = false)] char[] outdata, out int outlen, [CCode (array_length = false)] char[] indata, out int inlen);
 
1459
 
 
1460
        [CCode (cname = "htmlEncodeEntities", cheader_filename = "libxml/HTMLparser.h")]
 
1461
        public static int encode_entities ([CCode (array_length = false)] char[] outdata, out int outlen, [CCode (array_length = false)] char[] indata, out int inlen, char quote_char = '\0');
 
1462
 
 
1463
        [CCode (cname = "htmlIsScriptAttribute", cheader_filename = "libxml/HTMLparser.h")]
 
1464
        public static bool is_script_attribute (string name);
 
1465
 
 
1466
        [CCode (cname = "htmlHandleOmittedElem", cheader_filename = "libxml/HTMLparser.h")]
 
1467
        public static bool handle_omitted_elem (bool val);
 
1468
 
 
1469
        [CCode (cname = "htmlParserOption", cprefix = "HTML_PARSE_", cheader_filename = "libxml/HTMLparser.h")]
 
1470
        public enum ParserOption {
 
1471
                RECOVER,
 
1472
                NOERROR,
 
1473
                NOWARNING,
 
1474
                PEDANTIC,
 
1475
                NOBLANKS,
 
1476
                NONET,
 
1477
                COMPACT,
 
1478
        }
 
1479
 
 
1480
        [CCode (cname = "htmlStatus", cprefix = "HTML_", cheader_filename = "libxml/HTMLparser.h")]
 
1481
        public enum Status {
 
1482
                NA,
 
1483
                INVALID,
 
1484
                DEPRECATED,
 
1485
                VALID,
 
1486
                REQUIRED,
 
1487
        }
 
1488
 
 
1489
        [Compact]
 
1490
        [CCode (cname = "xmlNode", cheader_filename = "libxml/HTMLparser.h")]
 
1491
        public class Node : Xml.Node {
 
1492
                [CCode (cname = "htmlNodeStatus")]
 
1493
                public Status status (bool legacy);
 
1494
        }
 
1495
 
 
1496
        [Compact]
 
1497
        [CCode (cname = "xmlDoc", cheader_filename = "libxml/HTMLtree.h,libxml/HTMLparser.h")]
 
1498
        public class Doc : Xml.Doc {
 
1499
                [CCode (cname = "htmlNewDoc")]
 
1500
                public Doc (string? uri = null, string? external_id = null);
 
1501
 
 
1502
                [CCode (cname = "htmlNewNoDtD")]
 
1503
                public Doc.new_no_dtd (string? uri = null, string? external_id = null);
 
1504
 
 
1505
                [CCode (cname = "htmlSAXParseDoc")]
 
1506
                public static Doc* sax_parse_doc (string cur, string? encoding, Xml.SAXHandler* sax, void* user_data = null);
 
1507
 
 
1508
                [CCode (cname = "htmlSAXParseFile")]
 
1509
                public static Doc* sax_parse_file (string filename, string? encoding, Xml.SAXHandler* sax, void* user_data = null);
 
1510
 
 
1511
                [CCode (cname = "htmlParseFile")]
 
1512
                public static Doc* parse_file (string filename, string? encoding);
 
1513
 
 
1514
                [CCode (cname = "htmlReadDoc")]
 
1515
                public static Doc* read_doc (string cur, string url, string? encoding = null, int options = 0);
 
1516
 
 
1517
                [CCode (cname = "htmlReadMemory")]
 
1518
                public static Doc* read_memory ([CCode (array_length = false)] char[] buffer, int size, string url, string? encoding = null, int options = 0);
 
1519
 
 
1520
                [CCode (cname = "htmlReadFd")]
 
1521
                public static Doc* read_fd (int fd, string url, string? encoding = null, int options = 0);
 
1522
 
 
1523
                [CCode (cname = "htmlReadIO")]
 
1524
                public static Doc* read_io (Xml.InputReadCallback ioread, Xml.InputCloseCallback ioclose, void* ioctx, string url, string? encoding = null, int options = 0);
 
1525
 
 
1526
                [CCode (cname = "htmlGetMetaEncoding")]
 
1527
                public string get_meta_encoding ();
 
1528
 
 
1529
                [CCode (cname = "htmlSetMetaEncoding")]
 
1530
                public int set_meta_encoding (string encoding);
 
1531
 
 
1532
                [CCode (cname = "htmlDocDumpMemory")]
 
1533
                public void dump_memory (out string mem, out int len = null);
 
1534
 
 
1535
                [CCode (cname = "htmlDocDumpMemoryFormat")]
 
1536
                public void dump_memory_format (out string mem, out int len = null, bool format = true);
 
1537
 
 
1538
                [CCode (cname = "htmlDocDump", instance_pos = -1)]
 
1539
#if POSIX
 
1540
                public int dump (Posix.FILE f);
 
1541
#else
 
1542
                public int dump (GLib.FileStream f);
 
1543
#endif
 
1544
 
 
1545
                [CCode (cname = "htmlSaveFile", instance_pos = -1)]
 
1546
                public int save_file (string filename);
 
1547
 
 
1548
                [CCode (cname = "htmlNodeDumpFile", instance_pos = 2)]
 
1549
#if POSIX
 
1550
                public int node_dump_file (Posix.FILE file, Xml.Node* node);
 
1551
#else
 
1552
                public int node_dump_file (GLib.FileStream file, Xml.Node* node);
 
1553
#endif
 
1554
 
 
1555
                [CCode (cname = "htmlNodeDumpFileFormat", instance_pos = 2)]
 
1556
#if POSIX
 
1557
                public int node_dump_file_format (Posix.FILE file, string enc = "UTF-8", bool format = true);
 
1558
#else
 
1559
                public int node_dump_file_format (GLib.FileStream file, string enc = "UTF-8", bool format = true);
 
1560
#endif
 
1561
 
 
1562
                [CCode (cname = "htmlSaveFileEnc", instance_pos = 2)]
 
1563
                public int save_file_enc (string filename, string enc = "UTF-8");
 
1564
 
 
1565
                [CCode (cname = "htmlSaveFileFormat", instance_pos = 2)]
 
1566
                public int save_file_format (string filename, string enc = "UTF-8", bool format = true);
 
1567
 
 
1568
                [CCode (cname = "htmlIsAutoClosed")]
 
1569
                public bool is_auto_closed (Node* elem);
 
1570
 
 
1571
                [CCode (cname = "htmlAutoCloseTag")]
 
1572
                public bool auto_close_tag (string name, Node* elem);
 
1573
        }
 
1574
 
 
1575
        [Compact]
 
1576
        [CCode (cname = "htmlElemDesc", cheader_filename = "libxml/HTMLparser.h")]
 
1577
        public class ElemDesc {
 
1578
                public weak string name;
 
1579
                [CCode (cname = "startTag")]
 
1580
                public bool start_tag;
 
1581
                [CCode (cname = "endTag")]
 
1582
                public bool end_tag;
 
1583
                [CCode (cname = "saveEndTag")]
 
1584
                public bool save_end_tag;
 
1585
                public bool empty;
 
1586
                public bool depr;
 
1587
                public char dtd;
 
1588
                public bool isinline;
 
1589
                public weak string desc;
 
1590
                public weak string[] subelts;
 
1591
                public weak string defaultsubelt;
 
1592
                public weak string[] attrs_opt;
 
1593
                public weak string[] attrs_depr;
 
1594
                public weak string[] attrs_req;
 
1595
 
 
1596
                [CCode (cname = "htmlTagLookup")]
 
1597
                public static ElemDesc* tag_lookup (string tag);
 
1598
 
 
1599
                [CCode (cname = "htmlAttrAllowed")]
 
1600
                public Status attr_allowed (string attr, bool legacy);
 
1601
 
 
1602
                [CCode (cname = "htmlElementAllowedHere")]
 
1603
                public bool allowed_here (string elt);
 
1604
 
 
1605
                [CCode (cname = "htmlElementAllowedHereDesc")]
 
1606
                public bool allowed_here_desc (ElemDesc* child);
 
1607
 
 
1608
                [CCode (cname = "htmlElementStatusHere")]
 
1609
                public Status status_here (ElemDesc* child);
 
1610
 
 
1611
                [Ccode (cname = "htmlDefaultSubelement")]
 
1612
                public weak string default_subelement ();
 
1613
 
 
1614
                [Ccode (cname = "htmlRequiredAttrs")]
 
1615
                public weak string[] required_attrs ();
 
1616
        }
 
1617
 
 
1618
        [Compact]
 
1619
        [CCode (cname = "htmlEntityDesc", cheader_filename = "libxml/HTMLParser.h")]
 
1620
        public class EntityDesc
 
1621
        {
 
1622
                public uint value;
 
1623
                public weak string name;
 
1624
                public weak string desc;
 
1625
 
 
1626
                [CCode (cname = "htmlEntityDesc")]
 
1627
                public static EntityDesc* lookup (string name);
 
1628
 
 
1629
                [CCode (cname = "htmlEntityValueDesc")]
 
1630
                public static EntityDesc* value_lookup (uint value);
 
1631
        }
 
1632
 
 
1633
        [Compact]
 
1634
        [CCode (cname = "htmlParserCtxt", free_function = "htmlFreeParserCtxt", cheader_filename = "libxml/HTMLparser.h")]
 
1635
        public class ParserCtxt : Xml.ParserCtxt {
 
1636
                [CCode (cname = "htmlNewParserCtxt")]
 
1637
                public ParserCtxt ();
 
1638
 
 
1639
                [CCode (cname = "htmlCreateMemoryParserCtxt")]
 
1640
                public ParserCtxt.create_memory ([CCode (array_length = false)] char[] buffer, int size);
 
1641
 
 
1642
                [CCode (cname = "htmlCreatePushParserCtxt")]
 
1643
                public ParserCtxt.create_push (Xml.SAXHandler* sax, void* user_data, [CCode (array_length = false)] char[] data, int len, string? filename = null, Xml.CharEncoding enc = Xml.CharEncoding.NONE);
 
1644
 
 
1645
                [CCode (cname = "htmlParseChunk")]
 
1646
                public int parse_chunk ([CCode (array_length = false)] char[] data, int size, bool terminate);
 
1647
 
 
1648
                [CCode (cname = "htmlParseEntityRef")]
 
1649
                public EntityDesc* parse_entity_ref (out string entity_name);
 
1650
 
 
1651
                [CCode (cname = "htmlParseCharRef")]
 
1652
                public int parse_char_ref ();
 
1653
 
 
1654
                [CCode (cname = "htmlParseElement")]
 
1655
                public void parse_element ();
 
1656
 
 
1657
                [CCode (cname = "htmlParseDocument")]
 
1658
                public int parse_document ();
 
1659
 
 
1660
                [CCode (cname = "htmlCtxtReset")]
 
1661
                public void reset ();
 
1662
 
 
1663
                [CCode (cname = "htmlCtxtUseOptions")]
 
1664
                public int use_options (int options);
 
1665
 
 
1666
                [CCode (cname = "htmlCtxtReadDoc")]
 
1667
                public Doc* read_doc (string cur, string url, string? encoding = null, int options = 0);
 
1668
 
 
1669
                [CCode (cname = "htmlCtxtReadFile")]
 
1670
                public Doc* read_file (string filename, string? encoding = null, int options = 0);
 
1671
 
 
1672
                [CCode (cname = "htmlCtxtReadMemory")]
 
1673
                public Doc* read_memory ([CCode (array_length = false)] char[] buffer, int size, string url, string? encoding = null, int options = 0);
 
1674
 
 
1675
                [CCode (cname = "htmlCtxtReadFd")]
 
1676
                public Doc* read_fd (int fd, string url, string? encoding = null, int options = 0);
 
1677
 
 
1678
                [CCode (cname = "htmlCtxtReadIO")]
 
1679
                public Doc* read_io (Xml.InputReadCallback ioread, Xml.InputCloseCallback ioclose, void* ioctx, string url, string? encoding = null, int options = 0);
 
1680
        }
 
1681
}