raptor.h   raptor.h 
skipping to change at line 312 skipping to change at line 312
* relative URIs will be used wherever possible when serializing. * relative URIs will be used wherever possible when serializing.
* @RAPTOR_FEATURE_START_URI: Set the start URI for serlalizing to use. * @RAPTOR_FEATURE_START_URI: Set the start URI for serlalizing to use.
* @RAPTOR_FEATURE_WRITER_AUTO_INDENT: Automatically indent elements when * @RAPTOR_FEATURE_WRITER_AUTO_INDENT: Automatically indent elements when
* seriailizing. * seriailizing.
* @RAPTOR_FEATURE_WRITER_AUTO_EMPTY: Automatically detect and * @RAPTOR_FEATURE_WRITER_AUTO_EMPTY: Automatically detect and
* abbreviate empty elements when serializing. * abbreviate empty elements when serializing.
* @RAPTOR_FEATURE_WRITER_INDENT_WIDTH: Integer number of spaces to use * @RAPTOR_FEATURE_WRITER_INDENT_WIDTH: Integer number of spaces to use
* for each indent level when serializing with auto indent. * for each indent level when serializing with auto indent.
* @RAPTOR_FEATURE_WRITER_XML_VERSION: Integer XML version XML 1.0 (10) or XML 1.1 (11) * @RAPTOR_FEATURE_WRITER_XML_VERSION: Integer XML version XML 1.0 (10) or XML 1.1 (11)
* @RAPTOR_FEATURE_WRITER_XML_DECLARATION: Write XML 1.0 or 1.1 declaration . * @RAPTOR_FEATURE_WRITER_XML_DECLARATION: Write XML 1.0 or 1.1 declaration .
* @RAPTOR_FEATURE_NO_NET: Deny network requests
* @RAPTOR_FEATURE_LAST: Internal * @RAPTOR_FEATURE_LAST: Internal
* *
* Raptor parser, serializer or XML writer features. * Raptor parser, serializer or XML writer features.
*/ */
typedef enum { typedef enum {
RAPTOR_FEATURE_SCANNING, RAPTOR_FEATURE_SCANNING,
RAPTOR_FEATURE_ASSUME_IS_RDF, RAPTOR_FEATURE_ASSUME_IS_RDF,
RAPTOR_FEATURE_ALLOW_NON_NS_ATTRIBUTES, RAPTOR_FEATURE_ALLOW_NON_NS_ATTRIBUTES,
RAPTOR_FEATURE_ALLOW_OTHER_PARSETYPES, RAPTOR_FEATURE_ALLOW_OTHER_PARSETYPES,
RAPTOR_FEATURE_ALLOW_BAGID, RAPTOR_FEATURE_ALLOW_BAGID,
skipping to change at line 334 skipping to change at line 335
RAPTOR_FEATURE_NON_NFC_FATAL, RAPTOR_FEATURE_NON_NFC_FATAL,
RAPTOR_FEATURE_WARN_OTHER_PARSETYPES, RAPTOR_FEATURE_WARN_OTHER_PARSETYPES,
RAPTOR_FEATURE_CHECK_RDF_ID, RAPTOR_FEATURE_CHECK_RDF_ID,
RAPTOR_FEATURE_RELATIVE_URIS, RAPTOR_FEATURE_RELATIVE_URIS,
RAPTOR_FEATURE_START_URI, RAPTOR_FEATURE_START_URI,
RAPTOR_FEATURE_WRITER_AUTO_INDENT, RAPTOR_FEATURE_WRITER_AUTO_INDENT,
RAPTOR_FEATURE_WRITER_AUTO_EMPTY, RAPTOR_FEATURE_WRITER_AUTO_EMPTY,
RAPTOR_FEATURE_WRITER_INDENT_WIDTH, RAPTOR_FEATURE_WRITER_INDENT_WIDTH,
RAPTOR_FEATURE_WRITER_XML_VERSION, RAPTOR_FEATURE_WRITER_XML_VERSION,
RAPTOR_FEATURE_WRITER_XML_DECLARATION, RAPTOR_FEATURE_WRITER_XML_DECLARATION,
RAPTOR_FEATURE_LAST=RAPTOR_FEATURE_WRITER_XML_DECLARATION RAPTOR_FEATURE_NO_NET,
RAPTOR_FEATURE_LAST=RAPTOR_FEATURE_NO_NET
} raptor_feature; } raptor_feature;
/** /**
* raptor_genid_type: * raptor_genid_type:
* @RAPTOR_GENID_TYPE_BNODEID: Generated ID is for a blank node * @RAPTOR_GENID_TYPE_BNODEID: Generated ID is for a blank node
* @RAPTOR_GENID_TYPE_BAGID: Generated ID is for rdf:bagID * @RAPTOR_GENID_TYPE_BAGID: Generated ID is for rdf:bagID
* *
* Intended type for a generated identifier asked for by the handler * Intended type for a generated identifier asked for by the handler
* registered with raptor_set_generate_id_handler(). * registered with raptor_set_generate_id_handler().
*/ */
skipping to change at line 632 skipping to change at line 634
* @www: WWW object * @www: WWW object
* @userdata: user data * @userdata: user data
* @content_type: content type seen * @content_type: content type seen
* *
* Receiving Content-Type: header from WWW retrieval handler. * Receiving Content-Type: header from WWW retrieval handler.
* *
* Set by raptor_www_set_content_type_handler(). * Set by raptor_www_set_content_type_handler().
*/ */
typedef void (*raptor_www_content_type_handler)(raptor_www* www, void *user data, const char *content_type); typedef void (*raptor_www_content_type_handler)(raptor_www* www, void *user data, const char *content_type);
/**
* raptor_uri_filter_func:
* @user_data: user data
* @uri: #raptor_uri URI to check
*
* Callback function for #raptor_www_set_uri_filter
*
* Return value: non-0 to filter the URI
*/
typedef int (*raptor_uri_filter_func)(void *user_data, raptor_uri* uri);
/* Public functions */ /* Public functions */
RAPTOR_API RAPTOR_API
void raptor_init(void); void raptor_init(void);
RAPTOR_API RAPTOR_API
void raptor_finish(void); void raptor_finish(void);
/* Get parser names */ /* Get parser names */
RAPTOR_API RAPTOR_API
int raptor_parsers_enumerate(const unsigned int counter, const char **name, const char **label); int raptor_parsers_enumerate(const unsigned int counter, const char **name, const char **label);
skipping to change at line 675 skipping to change at line 688
RAPTOR_API RAPTOR_API
void raptor_set_error_handler(raptor_parser* parser, void *user_data, rapto r_message_handler handler); void raptor_set_error_handler(raptor_parser* parser, void *user_data, rapto r_message_handler handler);
RAPTOR_API RAPTOR_API
void raptor_set_warning_handler(raptor_parser* parser, void *user_data, rap tor_message_handler handler); void raptor_set_warning_handler(raptor_parser* parser, void *user_data, rap tor_message_handler handler);
RAPTOR_API RAPTOR_API
void raptor_set_statement_handler(raptor_parser* parser, void *user_data, r aptor_statement_handler handler); void raptor_set_statement_handler(raptor_parser* parser, void *user_data, r aptor_statement_handler handler);
RAPTOR_API RAPTOR_API
void raptor_set_generate_id_handler(raptor_parser* parser, void *user_data, raptor_generate_id_handler handler); void raptor_set_generate_id_handler(raptor_parser* parser, void *user_data, raptor_generate_id_handler handler);
RAPTOR_API RAPTOR_API
void raptor_set_namespace_handler(raptor_parser* parser, void *user_data, r aptor_namespace_handler handler); void raptor_set_namespace_handler(raptor_parser* parser, void *user_data, r aptor_namespace_handler handler);
RAPTOR_API
void raptor_parser_set_uri_filter(raptor_parser* parser, raptor_uri_filter_
func filter, void* user_data);
RAPTOR_API RAPTOR_API
void raptor_print_statement(const raptor_statement * statement, FILE *strea m); void raptor_print_statement(const raptor_statement * statement, FILE *strea m);
RAPTOR_API RAPTOR_API
void raptor_print_statement_as_ntriples(const raptor_statement * statement, FILE *stream); void raptor_print_statement_as_ntriples(const raptor_statement * statement, FILE *stream);
RAPTOR_API RAPTOR_DEPRECATED RAPTOR_API RAPTOR_DEPRECATED
void raptor_print_statement_detailed(const raptor_statement * statement, in t detailed, FILE *stream); void raptor_print_statement_detailed(const raptor_statement * statement, in t detailed, FILE *stream);
RAPTOR_API RAPTOR_API
unsigned char* raptor_statement_part_as_counted_string(const void *term, ra ptor_identifier_type type, raptor_uri* literal_datatype, const unsigned cha r *literal_language, size_t* len_p); unsigned char* raptor_statement_part_as_counted_string(const void *term, ra ptor_identifier_type type, raptor_uri* literal_datatype, const unsigned cha r *literal_language, size_t* len_p);
RAPTOR_API RAPTOR_API
skipping to change at line 729 skipping to change at line 744
const char * raptor_locator_file(raptor_locator *locator); const char * raptor_locator_file(raptor_locator *locator);
RAPTOR_API RAPTOR_API
const char * raptor_locator_uri(raptor_locator *locator); const char * raptor_locator_uri(raptor_locator *locator);
RAPTOR_API RAPTOR_API
const char* raptor_get_name(raptor_parser *rdf_parser); const char* raptor_get_name(raptor_parser *rdf_parser);
RAPTOR_API RAPTOR_API
const char* raptor_get_label(raptor_parser *rdf_parser); const char* raptor_get_label(raptor_parser *rdf_parser);
RAPTOR_API RAPTOR_API
const char* raptor_get_mime_type(raptor_parser *rdf_parser); const char* raptor_get_mime_type(raptor_parser *rdf_parser);
RAPTOR_API
int raptor_get_need_base_uri(raptor_parser *rdf_parser);
RAPTOR_API RAPTOR_API
int raptor_features_enumerate(const raptor_feature feature, const char **na me, raptor_uri **uri, const char **label); int raptor_features_enumerate(const raptor_feature feature, const char **na me, raptor_uri **uri, const char **label);
RAPTOR_API RAPTOR_API
int raptor_set_feature(raptor_parser *parser, raptor_feature feature, int v alue); int raptor_set_feature(raptor_parser *parser, raptor_feature feature, int v alue);
RAPTOR_API RAPTOR_API
int raptor_parser_set_feature_string(raptor_parser *parser, raptor_feature feature, const unsigned char *value); int raptor_parser_set_feature_string(raptor_parser *parser, raptor_feature feature, const unsigned char *value);
RAPTOR_API RAPTOR_API
int raptor_get_feature(raptor_parser *parser, raptor_feature feature); int raptor_get_feature(raptor_parser *parser, raptor_feature feature);
RAPTOR_API RAPTOR_API
const unsigned char* raptor_parser_get_feature_string(raptor_parser *parser , raptor_feature feature); const unsigned char* raptor_parser_get_feature_string(raptor_parser *parser , raptor_feature feature);
RAPTOR_API RAPTOR_API
unsigned int raptor_get_feature_count(void);
RAPTOR_API
void raptor_set_parser_strict(raptor_parser* rdf_parser, int is_strict); void raptor_set_parser_strict(raptor_parser* rdf_parser, int is_strict);
RAPTOR_API RAPTOR_API
const char* raptor_parser_get_accept_header(raptor_parser* rdf_parser); const char* raptor_parser_get_accept_header(raptor_parser* rdf_parser);
/* Get serializer names */ /* Get serializer names */
RAPTOR_API RAPTOR_API
int raptor_serializers_enumerate(const unsigned int counter, const char **n ame, const char **label, const char **mime_type, const unsigned char **uri_ string); int raptor_serializers_enumerate(const unsigned int counter, const char **n ame, const char **label, const char **mime_type, const unsigned char **uri_ string);
RAPTOR_API RAPTOR_API
int raptor_serializer_syntax_name_check(const char *name); int raptor_serializer_syntax_name_check(const char *name);
skipping to change at line 958 skipping to change at line 977
void raptor_www_set_proxy(raptor_www *www, const char *proxy); void raptor_www_set_proxy(raptor_www *www, const char *proxy);
RAPTOR_API RAPTOR_API
void raptor_www_set_http_accept(raptor_www *www, const char *value); void raptor_www_set_http_accept(raptor_www *www, const char *value);
RAPTOR_API RAPTOR_API
void raptor_www_set_write_bytes_handler(raptor_www *www, raptor_www_write_b ytes_handler handler, void *user_data); void raptor_www_set_write_bytes_handler(raptor_www *www, raptor_www_write_b ytes_handler handler, void *user_data);
RAPTOR_API RAPTOR_API
void raptor_www_set_content_type_handler(raptor_www *www, raptor_www_conten t_type_handler handler, void *user_data); void raptor_www_set_content_type_handler(raptor_www *www, raptor_www_conten t_type_handler handler, void *user_data);
RAPTOR_API RAPTOR_API
void raptor_www_set_error_handler(raptor_www *www, raptor_message_handler e rror_handler, void *error_data); void raptor_www_set_error_handler(raptor_www *www, raptor_message_handler e rror_handler, void *error_data);
RAPTOR_API RAPTOR_API
void raptor_www_set_uri_filter(raptor_www* www, raptor_uri_filter_func filt
er, void* user_data);
RAPTOR_API
int raptor_www_fetch(raptor_www *www, raptor_uri *uri); int raptor_www_fetch(raptor_www *www, raptor_uri *uri);
RAPTOR_API RAPTOR_API
int raptor_www_fetch_to_string(raptor_www *www, raptor_uri *uri, void **str ing_p, size_t *length_p, void *(*malloc_handler)(size_t size)); int raptor_www_fetch_to_string(raptor_www *www, raptor_uri *uri, void **str ing_p, size_t *length_p, void *(*malloc_handler)(size_t size));
RAPTOR_API RAPTOR_API
void* raptor_www_get_connection(raptor_www *www); void* raptor_www_get_connection(raptor_www *www);
RAPTOR_API RAPTOR_API
void raptor_www_abort(raptor_www *www, const char *reason); void raptor_www_abort(raptor_www *www, const char *reason);
/* raptor_qname - XML qnames */ /* raptor_qname - XML qnames */
RAPTOR_API RAPTOR_API
skipping to change at line 1011 skipping to change at line 1032
RAPTOR_API RAPTOR_API
void raptor_namespaces_end_for_depth(raptor_namespace_stack *nstack, int de pth); void raptor_namespaces_end_for_depth(raptor_namespace_stack *nstack, int de pth);
RAPTOR_API RAPTOR_API
raptor_namespace* raptor_namespaces_get_default_namespace(raptor_namespace_ stack *nstack); raptor_namespace* raptor_namespaces_get_default_namespace(raptor_namespace_ stack *nstack);
RAPTOR_API RAPTOR_API
raptor_namespace *raptor_namespaces_find_namespace(raptor_namespace_stack * nstack, const unsigned char *prefix, int prefix_length); raptor_namespace *raptor_namespaces_find_namespace(raptor_namespace_stack * nstack, const unsigned char *prefix, int prefix_length);
RAPTOR_API RAPTOR_API
raptor_namespace* raptor_namespaces_find_namespace_by_uri(raptor_namespace_ stack *nstack, raptor_uri *ns_uri); raptor_namespace* raptor_namespaces_find_namespace_by_uri(raptor_namespace_ stack *nstack, raptor_uri *ns_uri);
RAPTOR_API RAPTOR_API
int raptor_namespaces_namespace_in_scope(raptor_namespace_stack *nstack, co nst raptor_namespace *nspace); int raptor_namespaces_namespace_in_scope(raptor_namespace_stack *nstack, co nst raptor_namespace *nspace);
RAPTOR_API
raptor_qname* raptor_namespaces_qname_from_uri(raptor_namespace_stack *nsta ck, raptor_uri *uri, int xml_version); raptor_qname* raptor_namespaces_qname_from_uri(raptor_namespace_stack *nsta ck, raptor_uri *uri, int xml_version);
/* raptor_namespace - XML namespace */ /* raptor_namespace - XML namespace */
RAPTOR_API RAPTOR_API
raptor_namespace* raptor_new_namespace(raptor_namespace_stack *nstack, cons t unsigned char *prefix, const unsigned char *ns_uri_string, int depth); raptor_namespace* raptor_new_namespace(raptor_namespace_stack *nstack, cons t unsigned char *prefix, const unsigned char *ns_uri_string, int depth);
RAPTOR_API RAPTOR_API
void raptor_free_namespace(raptor_namespace *ns); void raptor_free_namespace(raptor_namespace *ns);
RAPTOR_API RAPTOR_API
int raptor_namespace_copy(raptor_namespace_stack *nstack, raptor_namespace *ns, int new_depth); int raptor_namespace_copy(raptor_namespace_stack *nstack, raptor_namespace *ns, int new_depth);
RAPTOR_API RAPTOR_API
 End of changes. 8 change blocks. 
1 lines changed or deleted 25 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/