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.98 2003/12/23 01:55:35 cmdjb Exp $ | * $Id: raptor.h,v 1.99 2003/12/31 21:44:55 cmdjb Exp $ | |||
* | * | |||
* Copyright (C) 2000-2003 David Beckett - http://purl.org/net/dajobe/ | * Copyright (C) 2000-2003 David Beckett - http://purl.org/net/dajobe/ | |||
* Institute for Learning and Research Technology - http://www.ilrt.org/ | * Institute for Learning and Research Technology - http://www.ilrt.org/ | |||
* 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 182 | skipping to change at line 182 | |||
typedef void (*raptor_www_write_bytes_handler)(raptor_www* www, void *userd ata, const void *ptr, size_t size, size_t nmemb); | typedef void (*raptor_www_write_bytes_handler)(raptor_www* www, void *userd ata, const void *ptr, size_t size, size_t nmemb); | |||
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); | |||
/* Public functions */ | /* Public functions */ | |||
RAPTOR_API void raptor_init(void); | RAPTOR_API void raptor_init(void); | |||
RAPTOR_API void raptor_finish(void); | RAPTOR_API void raptor_finish(void); | |||
/* Get parser names */ | /* Get parser names */ | |||
RAPTOR_API int raptor_parsers_enumerate(const unsigned int counter, const c har **name, const char **label); | RAPTOR_API int raptor_parsers_enumerate(const unsigned int counter, const c har **name, const char **label); | |||
RAPTOR_API int raptor_syntaxes_enumerate(const unsigned int counter, const char **name, const char **label, const char **mime_type, const unsigned cha r **uri_string); | ||||
/* Create */ | /* Create */ | |||
RAPTOR_API raptor_parser* raptor_new_parser(const char *name); | RAPTOR_API raptor_parser* raptor_new_parser(const char *name); | |||
RAPTOR_API int raptor_start_parse(raptor_parser *rdf_parser, raptor_uri *ur i); | RAPTOR_API int raptor_start_parse(raptor_parser *rdf_parser, raptor_uri *ur i); | |||
/* Destroy */ | /* Destroy */ | |||
RAPTOR_API void raptor_free_parser(raptor_parser* parser); | RAPTOR_API void raptor_free_parser(raptor_parser* parser); | |||
/* Handlers */ | /* Handlers */ | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added | |||