aboutsummaryrefslogtreecommitdiffstats
path: root/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-27 15:48:25 +0200
committerDavid Robillard <d@drobilla.net>2018-12-31 12:15:40 -0500
commit6650e22960f4dcd7d66dc560aae0347dc3272e1d (patch)
treec5942a6ae5a510c093eefe9ca3a50c889911518e /serd
parent85627db501282f3cb49223b816dbc226bd99ca16 (diff)
downloadserd-6650e22960f4dcd7d66dc560aae0347dc3272e1d.tar.gz
serd-6650e22960f4dcd7d66dc560aae0347dc3272e1d.tar.bz2
serd-6650e22960f4dcd7d66dc560aae0347dc3272e1d.zip
WIP: Add validation
Diffstat (limited to 'serd')
-rw-r--r--serd/serd.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/serd/serd.h b/serd/serd.h
index 31ea1a22..d4aa5f65 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -103,7 +103,8 @@ typedef enum {
SERD_ERR_ID_CLASH, ///< Encountered clashing blank node IDs
SERD_ERR_BAD_CURIE, ///< Invalid CURIE (e.g. prefix does not exist)
SERD_ERR_INTERNAL, ///< Unexpected internal error (should not happen)
- SERD_ERR_OVERFLOW ///< Stack overflow
+ SERD_ERR_OVERFLOW, ///< Stack overflow
+ SERD_ERR_INVALID ///< Invalid data
} SerdStatus;
/// RDF syntax type
@@ -1413,6 +1414,10 @@ SERD_API
SerdStatus
serd_model_erase_range(SerdModel* model, SerdRange* range);
+SERD_API
+SerdStatus
+serd_validate(const SerdModel* model);
+
/**
@}
@name Inserter