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.117 2004/05/04 22:46:31 cmdjb Exp $ * $Id: raptor.h,v 1.120 2004/05/30 21:37:07 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 .uk/ * Institute for Learning and Research Technology - http://www.ilrt.bris.ac .uk/
* University of Bristol - http://www.bristol.ac.uk/ * University of Bristol - http://www.bristol.ac.uk/
* *
* This package is Free Software or Open Source available under the * This package is Free Software or Open Source available under the
* following licenses (these are alternatives): * following licenses (these are alternatives):
* 1. GNU Lesser General Public License (LGPL) * 1. GNU Lesser General Public License (LGPL)
* 2. GNU General Public License (GPL) * 2. GNU General Public License (GPL)
* 3. Mozilla Public License (MPL) * 3. Mozilla Public License (MPL)
skipping to change at line 31 skipping to change at line 31
#ifndef RAPTOR_H #ifndef RAPTOR_H
#define RAPTOR_H #define RAPTOR_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#include <stdio.h> #include <stdio.h>
/* Required for va_list in raptor_vsnprintf */
#include <stdarg.h>
#ifdef WIN32 #ifdef WIN32
# ifdef RAPTOR_INTERNAL # ifdef RAPTOR_STATIC
# define RAPTOR_API _declspec(dllexport) # define RAPTOR_API
# else # else
# define RAPTOR_API _declspec(dllimport) # ifdef RAPTOR_INTERNAL
# define RAPTOR_API _declspec(dllexport)
# else
# define RAPTOR_API _declspec(dllimport)
# endif
# endif # endif
#else #else
# define RAPTOR_API # define RAPTOR_API
#endif #endif
/* Use gcc 3.1+ feature to allow marking of deprecated API calls. /* Use gcc 3.1+ feature to allow marking of deprecated API calls.
* This gives a warning during compiling. * This gives a warning during compiling.
*/ */
#if ( __GNUC__ == 3 && __GNUC_MINOR__ > 0 ) || __GNUC__ > 3 #if ( __GNUC__ == 3 && __GNUC_MINOR__ > 0 ) || __GNUC__ > 3
#ifdef __APPLE_CC__ #ifdef __APPLE_CC__
skipping to change at line 114 skipping to change at line 121
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_LAST=RAPTOR_FEATURE_NON_NFC_FATAL RAPTOR_FEATURE_WARN_OTHER_PARSETYPES,
RAPTOR_FEATURE_LAST=RAPTOR_FEATURE_WARN_OTHER_PARSETYPES
} 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 207 skipping to change at line 215
/* Destroy */ /* Destroy */
RAPTOR_API void raptor_free_parser(raptor_parser* parser); RAPTOR_API void raptor_free_parser(raptor_parser* parser);
/* Handlers */ /* Handlers */
RAPTOR_API void raptor_set_fatal_error_handler(raptor_parser* parser, void *user_data, raptor_message_handler handler); RAPTOR_API void raptor_set_fatal_error_handler(raptor_parser* parser, void *user_data, raptor_message_handler handler);
RAPTOR_API void raptor_set_error_handler(raptor_parser* parser, void *user_ data, raptor_message_handler handler); RAPTOR_API void raptor_set_error_handler(raptor_parser* parser, void *user_ data, raptor_message_handler handler);
RAPTOR_API void raptor_set_warning_handler(raptor_parser* parser, void *use r_data, raptor_message_handler handler); RAPTOR_API void raptor_set_warning_handler(raptor_parser* parser, void *use r_data, raptor_message_handler handler);
RAPTOR_API void raptor_set_statement_handler(raptor_parser* parser, void *u ser_data, raptor_statement_handler handler); RAPTOR_API void raptor_set_statement_handler(raptor_parser* parser, void *u ser_data, raptor_statement_handler handler);
RAPTOR_API void raptor_set_generate_id_handler(raptor_parser* parser, void *user_data, raptor_generate_id_handler handler); RAPTOR_API void raptor_set_generate_id_handler(raptor_parser* parser, void *user_data, raptor_generate_id_handler handler);
RAPTOR_API void raptor_print_statement(const raptor_statement * const state ment, FILE *stream); RAPTOR_API void raptor_print_statement(const raptor_statement * statement, FILE *stream);
RAPTOR_API void raptor_print_statement_as_ntriples(const raptor_statement * statement, FILE *stream); RAPTOR_API void raptor_print_statement_as_ntriples(const raptor_statement * statement, FILE *stream);
RAPTOR_API RAPTOR_DEPRECATED void raptor_print_statement_detailed(const rap tor_statement * statement, int detailed, FILE *stream); RAPTOR_API RAPTOR_DEPRECATED void raptor_print_statement_detailed(const rap tor_statement * statement, int detailed, FILE *stream);
RAPTOR_API unsigned char* raptor_statement_part_as_counted_string(const voi d *term, raptor_identifier_type type, raptor_uri* literal_datatype, const u nsigned char *literal_language, size_t* len_p); RAPTOR_API unsigned char* raptor_statement_part_as_counted_string(const voi d *term, raptor_identifier_type type, raptor_uri* literal_datatype, const u nsigned char *literal_language, size_t* len_p);
RAPTOR_API unsigned char* raptor_statement_part_as_string(const void *term, raptor_identifier_type type, raptor_uri* literal_datatype, const unsigned char *literal_language); RAPTOR_API unsigned char* raptor_statement_part_as_string(const void *term, raptor_identifier_type type, raptor_uri* literal_datatype, const unsigned char *literal_language);
RAPTOR_API raptor_locator* raptor_get_locator(raptor_parser* rdf_parser); RAPTOR_API raptor_locator* raptor_get_locator(raptor_parser* rdf_parser);
RAPTOR_API void raptor_set_default_generate_id_parameters(raptor_parser* rd f_parser, char *prefix, int base); RAPTOR_API void raptor_set_default_generate_id_parameters(raptor_parser* rd f_parser, char *prefix, int base);
/* Parsing functions */ /* Parsing functions */
 End of changes. 6 change blocks. 
6 lines changed or deleted 14 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/