aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-12-29 19:56:13 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 16:27:02 -0500
commit7a179e568a3576819d0e600cf35c94051e107d33 (patch)
treeadbd2666b07fc2811987760d73139499be842efc /include
parent53c28210b9e81ba33fddce89b2d61fb7c99445dc (diff)
downloadserd-7a179e568a3576819d0e600cf35c94051e107d33.tar.gz
serd-7a179e568a3576819d0e600cf35c94051e107d33.tar.bz2
serd-7a179e568a3576819d0e600cf35c94051e107d33.zip
Rename SerdType to SerdNodeType
The old name will be even more ambiguous with the increased scope.
Diffstat (limited to 'include')
-rw-r--r--include/serd/serd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index bf0740b6..c2308b16 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -343,14 +343,14 @@ typedef enum {
Turtle](http://www.w3.org/TR/turtle/#grammar-production-BLANK_NODE_LABEL)
*/
SERD_BLANK = 4,
-} SerdType;
+} SerdNodeType;
/// A syntactic RDF node
typedef struct {
const char* SERD_NULLABLE buf; ///< Value string
size_t n_bytes; ///< Size in bytes (excluding null)
SerdNodeFlags flags; ///< Node flags (string properties)
- SerdType type; ///< Node type
+ SerdNodeType type; ///< Node type
} SerdNode;
static const SerdNode SERD_NODE_NULL = {NULL, 0, 0, SERD_NOTHING};
@@ -361,7 +361,7 @@ static const SerdNode SERD_NODE_NULL = {NULL, 0, 0, SERD_NOTHING};
This measures, but does not copy, `str`. No memory is allocated.
*/
SERD_API SerdNode
-serd_node_from_string(SerdType type, const char* SERD_NULLABLE str);
+serd_node_from_string(SerdNodeType type, const char* SERD_NULLABLE str);
/**
Make a (shallow) node from a prefix of `str`.
@@ -370,7 +370,7 @@ serd_node_from_string(SerdType type, const char* SERD_NULLABLE str);
Note that the returned node may not be null terminated.
*/
SERD_API SerdNode
-serd_node_from_substring(SerdType type,
+serd_node_from_substring(SerdNodeType type,
const char* SERD_NULLABLE str,
size_t len);