raptor.h   raptor.h 
/* -*- Mode: c; c-basic-offset: 2 -*- /* -*- Mode: c; c-basic-offset: 2 -*-
* *
* raptor.h - Redland Parser Toolkit for RDF (Raptor) interfaces and defini tion * raptor.h - Redland Parser Toolkit for RDF (Raptor) interfaces and defini tion
* *
* $Id: raptor.h,v 1.168 2005/01/15 17:18:43 cmdjb Exp $ * $Id: raptor.h,v 1.171 2005/02/01 22:00:36 cmdjb Exp $
* *
* Copyright (C) 2000-2005, David Beckett http://purl.org/net/dajobe/ * Copyright (C) 2000-2005, David Beckett http://purl.org/net/dajobe/
* Institute for Learning and Research Technology http://www.ilrt.bristol.a c.uk/ * Institute for Learning and Research Technology http://www.ilrt.bristol.a c.uk/
* University of Bristol, UK http://www.bristol.ac.uk/ * University of Bristol, UK http://www.bristol.ac.uk/
* *
* This package is Free Software and part of Redland http://librdf.org/ * This package is Free Software and part of Redland http://librdf.org/
* *
* It is licensed under the following three licenses as alternatives: * It is licensed under the following three licenses as alternatives:
* 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version * 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version
* 2. GNU General Public License (GPL) V2 or any newer version * 2. GNU General Public License (GPL) V2 or any newer version
skipping to change at line 142 skipping to change at line 142
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,
RAPTOR_FEATURE_ALLOW_RDF_TYPE_RDF_LIST, RAPTOR_FEATURE_ALLOW_RDF_TYPE_RDF_LIST,
RAPTOR_FEATURE_NORMALIZE_LANGUAGE, RAPTOR_FEATURE_NORMALIZE_LANGUAGE,
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_LAST=RAPTOR_FEATURE_START_URI RAPTOR_FEATURE_WRITER_AUTO_INDENT,
RAPTOR_FEATURE_WRITER_AUTO_EMPTY,
RAPTOR_FEATURE_WRITER_INDENT_WIDTH,
RAPTOR_FEATURE_LAST=RAPTOR_FEATURE_WRITER_INDENT_WIDTH
} raptor_feature; } raptor_feature;
typedef enum { typedef enum {
RAPTOR_GENID_TYPE_BNODEID, RAPTOR_GENID_TYPE_BNODEID,
RAPTOR_GENID_TYPE_BAGID RAPTOR_GENID_TYPE_BAGID
} raptor_genid_type; } raptor_genid_type;
typedef struct { typedef struct {
raptor_identifier_type type; raptor_identifier_type type;
raptor_uri *uri; raptor_uri *uri;
skipping to change at line 327 skipping to change at line 330
/* Make a URI suitable for retrieval (no fragment, has path) from an existi ng one */ /* Make a URI suitable for retrieval (no fragment, has path) from an existi ng one */
RAPTOR_API raptor_uri* raptor_new_uri_for_retrieval(raptor_uri* old_uri); RAPTOR_API raptor_uri* raptor_new_uri_for_retrieval(raptor_uri* old_uri);
/* Identifier functions */ /* Identifier functions */
RAPTOR_API raptor_identifier* raptor_new_identifier(raptor_identifier_type type, raptor_uri *uri, raptor_uri_source uri_source, const unsigned char *i d, const unsigned char *literal, raptor_uri *literal_datatype, const unsign ed char *literal_language); RAPTOR_API raptor_identifier* raptor_new_identifier(raptor_identifier_type type, raptor_uri *uri, raptor_uri_source uri_source, const unsigned char *i d, const unsigned char *literal, raptor_uri *literal_datatype, const unsign ed char *literal_language);
RAPTOR_API int raptor_copy_identifier(raptor_identifier *dest, raptor_ident ifier *src); RAPTOR_API int raptor_copy_identifier(raptor_identifier *dest, raptor_ident ifier *src);
RAPTOR_API void raptor_free_identifier(raptor_identifier *identifier); RAPTOR_API void raptor_free_identifier(raptor_identifier *identifier);
/* Utility functions */ /* Utility functions */
RAPTOR_API int raptor_print_ntriples_string(FILE *stream, const unsigned ch ar *string, const char delim); RAPTOR_API int raptor_print_ntriples_string(FILE *stream, const unsigned ch ar *string, const char delim);
RAPTOR_API unsigned char* raptor_ntriples_string_as_utf8_string(raptor_pars er* rdf_parser, unsigned char *src, int len, size_t *dest_lenp); RAPTOR_API RAPTOR_DEPRECATED unsigned char* raptor_ntriples_string_as_utf8_ string(raptor_parser* rdf_parser, const unsigned char *src, int len, size_t *dest_lenp);
RAPTOR_API RAPTOR_DEPRECATED const char* raptor_ntriples_term_as_string(rap tor_ntriples_term_type term); RAPTOR_API RAPTOR_DEPRECATED const char* raptor_ntriples_term_as_string(rap tor_ntriples_term_type term);
RAPTOR_API int raptor_iostream_write_string_ntriples(raptor_iostream *iostr , const unsigned char *string, size_t len, const char delim); RAPTOR_API int raptor_iostream_write_string_ntriples(raptor_iostream *iostr , const unsigned char *string, size_t len, const char delim);
RAPTOR_API void raptor_iostream_write_statement_ntriples(raptor_iostream* i ostr, const raptor_statement *statement); RAPTOR_API void raptor_iostream_write_statement_ntriples(raptor_iostream* i ostr, const raptor_statement *statement);
RAPTOR_API int raptor_xml_escape_string(const unsigned char *string, size_t len, unsigned char *buffer, size_t length, char quote, raptor_simple_messa ge_handler error_handler, void *error_data); RAPTOR_API int raptor_xml_escape_string(const unsigned char *string, size_t len, unsigned char *buffer, size_t length, char quote, raptor_simple_messa ge_handler error_handler, void *error_data);
RAPTOR_API int raptor_iostream_write_xml_escaped_string(raptor_iostream* io str, const unsigned char *string, size_t len, char quote, raptor_simple_mes sage_handler error_handler, void *error_data); RAPTOR_API int raptor_iostream_write_xml_escaped_string(raptor_iostream* io str, const unsigned char *string, size_t len, char quote, raptor_simple_mes sage_handler error_handler, void *error_data);
RAPTOR_API char* raptor_vsnprintf(const char *message, va_list arguments); RAPTOR_API char* raptor_vsnprintf(const char *message, va_list arguments);
RAPTOR_API int raptor_xml_name_check(const unsigned char *string, size_t le ngth, int xml_version); RAPTOR_API int raptor_xml_name_check(const unsigned char *string, size_t le ngth, int xml_version);
skipping to change at line 529 skipping to change at line 532
RAPTOR_API void raptor_free_xml_writer(raptor_xml_writer* xml_writer); RAPTOR_API void raptor_free_xml_writer(raptor_xml_writer* xml_writer);
RAPTOR_API void raptor_xml_writer_empty_element(raptor_xml_writer* xml_writ er, raptor_xml_element *element); RAPTOR_API void raptor_xml_writer_empty_element(raptor_xml_writer* xml_writ er, raptor_xml_element *element);
RAPTOR_API void raptor_xml_writer_start_element(raptor_xml_writer* xml_writ er, raptor_xml_element *element); RAPTOR_API void raptor_xml_writer_start_element(raptor_xml_writer* xml_writ er, raptor_xml_element *element);
RAPTOR_API void raptor_xml_writer_end_element(raptor_xml_writer* xml_writer , raptor_xml_element *element); RAPTOR_API void raptor_xml_writer_end_element(raptor_xml_writer* xml_writer , raptor_xml_element *element);
RAPTOR_API void raptor_xml_writer_cdata(raptor_xml_writer* xml_writer, cons t unsigned char *str); RAPTOR_API void raptor_xml_writer_cdata(raptor_xml_writer* xml_writer, cons t unsigned char *str);
RAPTOR_API void raptor_xml_writer_cdata_counted(raptor_xml_writer* xml_writ er, const unsigned char *str, unsigned int length); RAPTOR_API void raptor_xml_writer_cdata_counted(raptor_xml_writer* xml_writ er, const unsigned char *str, unsigned int length);
RAPTOR_API void raptor_xml_writer_raw(raptor_xml_writer* xml_writer, const unsigned char *str); RAPTOR_API void raptor_xml_writer_raw(raptor_xml_writer* xml_writer, const unsigned char *str);
RAPTOR_API void raptor_xml_writer_raw_counted(raptor_xml_writer* xml_writer , const unsigned char *str, unsigned int length); RAPTOR_API void raptor_xml_writer_raw_counted(raptor_xml_writer* xml_writer , const unsigned char *str, unsigned int length);
RAPTOR_API void raptor_xml_writer_comment(raptor_xml_writer* xml_writer, co nst unsigned char *str); RAPTOR_API void raptor_xml_writer_comment(raptor_xml_writer* xml_writer, co nst unsigned char *str);
RAPTOR_API void raptor_xml_writer_comment_counted(raptor_xml_writer* xml_wr iter, const unsigned char *str, unsigned int length); RAPTOR_API void raptor_xml_writer_comment_counted(raptor_xml_writer* xml_wr iter, const unsigned char *str, unsigned int length);
RAPTOR_API int raptor_xml_writer_features_enumerate(const raptor_feature fe
ature, const char **name, raptor_uri **uri, const char **label);
RAPTOR_API int raptor_xml_writer_set_feature(raptor_xml_writer *xml_writer,
raptor_feature feature, int value);
RAPTOR_API int raptor_xml_writer_set_feature_string(raptor_xml_writer *xml_
writer, raptor_feature feature, const unsigned char *value);
RAPTOR_API int raptor_xml_writer_get_feature(raptor_xml_writer *xml_writer,
raptor_feature feature);
RAPTOR_API const unsigned char *raptor_xml_writer_get_feature_string(raptor
_xml_writer *xml_writer, raptor_feature feature);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif #endif
 End of changes. 4 change blocks. 
3 lines changed or deleted 16 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/