serd.h   serd.h 
skipping to change at line 86 skipping to change at line 86
stream. These functions are deliberately compatible with the sink funct ions stream. These functions are deliberately compatible with the sink funct ions
used by SerdReader, so a reader can be directly connected to a writer to used by SerdReader, so a reader can be directly connected to a writer to
re-serialise a document with minimal overhead. re-serialise a document with minimal overhead.
*/ */
typedef struct SerdWriterImpl SerdWriter; typedef struct SerdWriterImpl SerdWriter;
/** /**
Return status code. Return status code.
*/ */
typedef enum { typedef enum {
SERD_SUCCESS = 0, /**< No error */ SERD_SUCCESS, /**< No error */
SERD_FAILURE = 1, /**< Non-fatal failure */ SERD_FAILURE, /**< Non-fatal failure */
SERD_ERR_UNKNOWN = 2, /**< Unknown error */ SERD_ERR_UNKNOWN, /**< Unknown error */
SERD_ERR_BAD_SYNTAX = 3, /**< Invalid syntax */ SERD_ERR_BAD_SYNTAX, /**< Invalid syntax */
SERD_ERR_BAD_ARG = 3, /**< Invalid argument */ SERD_ERR_BAD_ARG, /**< Invalid argument */
SERD_ERR_NOT_FOUND = 4 /**< Not found */ SERD_ERR_NOT_FOUND /**< Not found */
} SerdStatus; } SerdStatus;
SERD_API
const uint8_t*
serd_strerror(SerdStatus status);
/** /**
RDF syntax type. RDF syntax type.
*/ */
typedef enum { typedef enum {
/** /**
Turtle - Terse RDF Triple Language (UTF-8). Turtle - Terse RDF Triple Language (UTF-8).
@see <a href="http://www.w3.org/TeamSubmission/turtle/">Turtle</a > @see <a href="http://www.w3.org/TeamSubmission/turtle/">Turtle</a >
*/ */
SERD_TURTLE = 1, SERD_TURTLE = 1,
skipping to change at line 471 skipping to change at line 475
/** /**
Set a namespace prefix. Set a namespace prefix.
*/ */
SERD_API SERD_API
SerdStatus SerdStatus
serd_env_set_prefix(SerdEnv* env, serd_env_set_prefix(SerdEnv* env,
const SerdNode* name, const SerdNode* name,
const SerdNode* uri); const SerdNode* uri);
/** /**
Set a namespace prefix.
*/
SERD_API
SerdStatus
serd_env_set_prefix_from_strings(SerdEnv* env,
const uint8_t* name,
const uint8_t* uri);
/**
Qualify @c uri into a CURIE if possible. Qualify @c uri into a CURIE if possible.
*/ */
SERD_API SERD_API
bool bool
serd_env_qualify(const SerdEnv* env, serd_env_qualify(const SerdEnv* env,
const SerdNode* uri, const SerdNode* uri,
SerdNode* prefix, SerdNode* prefix,
SerdChunk* suffix); SerdChunk* suffix);
/** /**
 End of changes. 3 change blocks. 
6 lines changed or deleted 19 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/