aboutsummaryrefslogtreecommitdiffstats
path: root/serd/serd.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-27 15:48:25 +0200
committerDavid Robillard <d@drobilla.net>2019-04-13 19:48:23 +0200
commit25a0c50bb95f9523e700a2ca91b6b4a61c8243c5 (patch)
treeabcfe360917617b09de82ca01a4c361186cde36c /serd/serd.h
parent2afbb905c47b12dab0ceddbe8516675d291a4345 (diff)
downloadserd-25a0c50bb95f9523e700a2ca91b6b4a61c8243c5.tar.gz
serd-25a0c50bb95f9523e700a2ca91b6b4a61c8243c5.tar.bz2
serd-25a0c50bb95f9523e700a2ca91b6b4a61c8243c5.zip
WIP: Add validation
Diffstat (limited to 'serd/serd.h')
-rw-r--r--serd/serd.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/serd/serd.h b/serd/serd.h
index 6d95ad22..0b798abc 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -109,7 +109,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
@@ -1485,6 +1486,10 @@ SERD_API
SerdStatus
serd_model_erase_range(SerdModel* model, SerdRange* range);
+SERD_API
+SerdStatus
+serd_validate(const SerdModel* model);
+
/**
@}
@name Inserter