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.122 2004/07/09 14:45:39 cmdjb Exp $ * $Id: raptor.h,v 1.128 2004/09/20 11:54:18 cmdjb Exp $
* *
* Copyright (C) 2000-2004 David Beckett - http://purl.org/net/dajobe/ * Copyright (C) 2000-2004, David Beckett http://purl.org/net/dajobe/
* Institute for Learning and Research Technology - http://www.ilrt.bris.ac * Institute for Learning and Research Technology http://www.ilrt.bristol.a
.uk/ c.uk/
* University of Bristol - http://www.bristol.ac.uk/ * University of Bristol, UK http://www.bristol.ac.uk/
* *
* This package is Free Software or Open Source available under the * This package is Free Software and part of Redland http://librdf.org/
* following licenses (these are alternatives): *
* 1. GNU Lesser General Public License (LGPL) * It is licensed under the following three licenses as alternatives:
* 2. GNU General Public License (GPL) * 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version
* 3. Mozilla Public License (MPL) * 2. GNU General Public License (GPL) V2 or any newer version
* 3. Apache License, V2.0 or any newer version
*
* You may not use this file except in compliance with at least one of
* the above three licenses.
* *
* See LICENSE.html or LICENSE.txt at the top of this package for the * See LICENSE.html or LICENSE.txt at the top of this package for the
* full license terms. * complete terms and further detail along with the license texts for
* the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively.
*
* *
*/ */
#ifndef RAPTOR_H #ifndef RAPTOR_H
#define RAPTOR_H #define RAPTOR_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
skipping to change at line 73 skipping to change at line 79
/* Public statics */ /* Public statics */
extern const char * const raptor_short_copyright_string; extern const char * const raptor_short_copyright_string;
extern const char * const raptor_copyright_string; extern const char * const raptor_copyright_string;
extern const char * const raptor_version_string; extern const char * const raptor_version_string;
extern const unsigned int raptor_version_major; extern const unsigned int raptor_version_major;
extern const unsigned int raptor_version_minor; extern const unsigned int raptor_version_minor;
extern const unsigned int raptor_version_release; extern const unsigned int raptor_version_release;
extern const unsigned int raptor_version_decimal; extern const unsigned int raptor_version_decimal;
extern const char * const raptor_xml_literal_datatype_uri_string; RAPTOR_API extern const char * const raptor_xml_literal_datatype_uri_string
;
RAPTOR_API extern const unsigned int raptor_xml_literal_datatype_uri_string
_len;
/* Public structure */ /* Public structure */
typedef struct raptor_parser_s raptor_parser; typedef struct raptor_parser_s raptor_parser;
typedef struct raptor_www_s raptor_www; typedef struct raptor_www_s raptor_www;
typedef struct raptor_sax2_element_s raptor_sax2_element; typedef struct raptor_sax2_element_s raptor_sax2_element;
typedef struct raptor_xml_writer_s raptor_xml_writer; typedef struct raptor_xml_writer_s raptor_xml_writer;
typedef struct raptor_qname_s raptor_qname; typedef struct raptor_qname_s raptor_qname;
skipping to change at line 122 skipping to change at line 129
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,
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_LAST=RAPTOR_FEATURE_WARN_OTHER_PARSETYPES RAPTOR_FEATURE_CHECK_RDF_ID,
RAPTOR_FEATURE_LAST=RAPTOR_FEATURE_CHECK_RDF_ID
} 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 255 skipping to change at line 263
RAPTOR_API int raptor_features_enumerate(const raptor_feature feature, cons t char **name, raptor_uri **uri, const char **label); RAPTOR_API int raptor_features_enumerate(const raptor_feature feature, cons t char **name, raptor_uri **uri, const char **label);
RAPTOR_API int raptor_set_feature(raptor_parser *parser, raptor_feature fea ture, int value); RAPTOR_API int raptor_set_feature(raptor_parser *parser, raptor_feature fea ture, int value);
RAPTOR_API int raptor_get_feature(raptor_parser *parser, raptor_feature fea ture); RAPTOR_API int raptor_get_feature(raptor_parser *parser, raptor_feature fea ture);
RAPTOR_API raptor_feature raptor_feature_from_uri(raptor_uri *uri); RAPTOR_API raptor_feature raptor_feature_from_uri(raptor_uri *uri);
RAPTOR_API void raptor_set_parser_strict(raptor_parser* rdf_parser, int is_ strict); RAPTOR_API void raptor_set_parser_strict(raptor_parser* rdf_parser, int is_ strict);
/* memory functions */ /* memory functions */
RAPTOR_API void raptor_free_memory(void *ptr); RAPTOR_API void raptor_free_memory(void *ptr);
RAPTOR_API void* raptor_alloc_memory(size_t size); RAPTOR_API void* raptor_alloc_memory(size_t size);
RAPTOR_API void* raptor_calloc_memory(size_t nmemb, size_t size);
/* URI functions */ /* URI functions */
RAPTOR_API raptor_uri* raptor_new_uri(const unsigned char *uri_string); RAPTOR_API raptor_uri* raptor_new_uri(const unsigned char *uri_string);
RAPTOR_API raptor_uri* raptor_new_uri_from_uri_local_name(raptor_uri *uri, const unsigned char *local_name); RAPTOR_API raptor_uri* raptor_new_uri_from_uri_local_name(raptor_uri *uri, const unsigned char *local_name);
RAPTOR_API raptor_uri* raptor_new_uri_relative_to_base(raptor_uri *base_uri , const unsigned char *uri_string); RAPTOR_API raptor_uri* raptor_new_uri_relative_to_base(raptor_uri *base_uri , const unsigned char *uri_string);
RAPTOR_API raptor_uri* raptor_new_uri_from_id(raptor_uri *base_uri, const u nsigned char *id); RAPTOR_API raptor_uri* raptor_new_uri_from_id(raptor_uri *base_uri, const u nsigned char *id);
RAPTOR_API raptor_uri* raptor_new_uri_for_rdf_concept(const char *name); RAPTOR_API raptor_uri* raptor_new_uri_for_rdf_concept(const char *name);
RAPTOR_API void raptor_free_uri(raptor_uri *uri); RAPTOR_API void raptor_free_uri(raptor_uri *uri);
RAPTOR_API int raptor_uri_equals(raptor_uri* uri1, raptor_uri* uri2); RAPTOR_API int raptor_uri_equals(raptor_uri* uri1, raptor_uri* uri2);
RAPTOR_API raptor_uri* raptor_uri_copy(raptor_uri *uri); RAPTOR_API raptor_uri* raptor_uri_copy(raptor_uri *uri);
skipping to change at line 289 skipping to change at line 298
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 unsigned char* raptor_ntriples_string_as_utf8_string(raptor_pars er* rdf_parser, unsigned char *src, int len, size_t *dest_lenp);
RAPTOR_API const char* raptor_ntriples_term_as_string (raptor_ntriples_term _type term); RAPTOR_API const char* raptor_ntriples_term_as_string (raptor_ntriples_term _type term);
RAPTOR_API size_t raptor_xml_escape_string(const unsigned char *string, siz e_t len, unsigned char *buffer, size_t length, char quote, raptor_simple_me ssage_handler error_handler, void *error_data); RAPTOR_API size_t raptor_xml_escape_string(const unsigned char *string, siz e_t len, unsigned char *buffer, size_t length, char quote, raptor_simple_me ssage_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_xml_writer.c */ /* raptor_xml_writer.c */
/* NOT PUBLIC YET - SEE raptor_internal.h */ /* NOT PUBLIC YET - SEE raptor_internal.h */
/* raptor_uri.c */ /* raptor_rfc2396.c */
RAPTOR_API void raptor_uri_resolve_uri_reference (const unsigned char *base _uri, const unsigned char *reference_uri, char unsigned *buffer, size_t len gth); RAPTOR_API void raptor_uri_resolve_uri_reference (const unsigned char *base _uri, const unsigned char *reference_uri, char unsigned *buffer, size_t len gth);
/* raptor_uri.c */
RAPTOR_API unsigned char *raptor_uri_filename_to_uri_string(const char *fil ename); RAPTOR_API unsigned char *raptor_uri_filename_to_uri_string(const char *fil ename);
RAPTOR_API char *raptor_uri_uri_string_to_filename(const unsigned char *uri _string); RAPTOR_API char *raptor_uri_uri_string_to_filename(const unsigned char *uri _string);
RAPTOR_API char *raptor_uri_uri_string_to_filename_fragment(const unsigned char *uri_string, unsigned char **fragment_p); RAPTOR_API char *raptor_uri_uri_string_to_filename_fragment(const unsigned char *uri_string, unsigned char **fragment_p);
RAPTOR_API int raptor_uri_is_file_uri(const unsigned char* uri_string); RAPTOR_API int raptor_uri_is_file_uri(const unsigned char* uri_string);
RAPTOR_API void raptor_uri_init(void); RAPTOR_API void raptor_uri_init(void);
RAPTOR_API void raptor_uri_set_handler(raptor_uri_handler *handler, void *c ontext); RAPTOR_API void raptor_uri_set_handler(raptor_uri_handler *handler, void *c ontext);
RAPTOR_API void raptor_uri_get_handler(raptor_uri_handler **handler, void * *context); RAPTOR_API void raptor_uri_get_handler(raptor_uri_handler **handler, void * *context);
#define RAPTOR_RDF_MS_URI "http://www.w3.org/1999/02/22-rdf-syntax-ns#" #define RAPTOR_RDF_MS_URI "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 End of changes. 9 change blocks. 
14 lines changed or deleted 27 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/