File: ruby_xml_parser.h

package info (click to toggle)
ruby-mkrf 0.2.3%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,752 kB
  • ctags: 4,291
  • sloc: ansic: 12,494; ruby: 6,984; sh: 790; yacc: 374; makefile: 57; cpp: 10
file content (31 lines) | stat: -rw-r--r-- 950 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* $Id: ruby_xml_parser.h,v 1.1 2006/02/21 20:40:16 roscopeco Exp $ */

/* Please see the LICENSE file for copyright and distribution information */

#ifndef __RUBY_XML_PARSER__
#define __RUBY_XML_PARSER__

#define MAX_LIBXML_FEATURES_LEN 50

extern int ruby_xml_parser_count;
extern VALUE cXMLParser;
extern VALUE eXMLParserParseError;

typedef struct ruby_xml_parser {
  VALUE ctxt;
  int parsed;
  void *data;
  int data_type;
} ruby_xml_parser;

VALUE ruby_xml_parser_default_load_external_dtd_set(VALUE class, VALUE bool);
VALUE ruby_xml_parser_default_substitute_entities_set(VALUE class, VALUE bool);
VALUE ruby_xml_parser_features(VALUE self);
VALUE ruby_xml_parser_filename_get(VALUE self);
VALUE ruby_xml_parser_filename_set(VALUE self, VALUE filename);
VALUE ruby_xml_parser_new(VALUE class);
VALUE ruby_xml_parser_parse(VALUE self);
VALUE ruby_xml_parser_str_get(VALUE self);
VALUE ruby_xml_parser_str_set(VALUE self, VALUE str);

#endif