aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/reader.c10
-rw-r--r--src/serdi.c6
-rw-r--r--src/writer.c28
3 files changed, 22 insertions, 22 deletions
diff --git a/src/reader.c b/src/reader.c
index 1c7f6f1c..c747ca38 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -46,10 +46,10 @@ typedef uint32_t uchar;
typedef size_t Ref;
typedef struct {
- SerdNodeType type;
- Ref value;
- Ref datatype;
- Ref lang;
+ SerdType type;
+ Ref value;
+ Ref datatype;
+ Ref lang;
} Node;
typedef struct {
@@ -103,7 +103,7 @@ error(SerdReader reader, const char* fmt, ...)
}
static Node
-make_node(SerdNodeType type, Ref value, Ref datatype, Ref lang)
+make_node(SerdType type, Ref value, Ref datatype, Ref lang)
{
const Node ret = { type, value, datatype, lang };
return ret;
diff --git a/src/serdi.c b/src/serdi.c
index 2aa0a08e..5c176ce8 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -98,11 +98,11 @@ static bool
event_statement(void* handle,
const SerdString* graph,
const SerdString* subject,
- SerdNodeType subject_type,
+ SerdType subject_type,
const SerdString* predicate,
- SerdNodeType predicate_type,
+ SerdType predicate_type,
const SerdString* object,
- SerdNodeType object_type,
+ SerdType object_type,
const SerdString* object_datatype,
const SerdString* object_lang)
{
diff --git a/src/writer.c b/src/writer.c
index 3e91bcd2..aa9b7b76 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -33,16 +33,16 @@ static const WriteContext WRITE_CONTEXT_NULL = { 0, 0, 0 };
typedef bool (*StatementWriter)(SerdWriter writer,
const SerdString* graph,
const SerdString* subject,
- SerdNodeType subject_type,
+ SerdType subject_type,
const SerdString* predicate,
- SerdNodeType predicate_type,
+ SerdType predicate_type,
const SerdString* object,
- SerdNodeType object_type,
+ SerdType object_type,
const SerdString* object_datatype,
const SerdString* object_lang);
typedef bool (*NodeWriter)(SerdWriter writer,
- SerdNodeType type,
+ SerdType type,
const SerdString* str,
const SerdString* datatype,
const SerdString* lang);
@@ -183,7 +183,7 @@ serd_writer_write_delim(SerdWriter writer, const uint8_t delim)
static bool
write_node(SerdWriter writer,
- SerdNodeType type,
+ SerdType type,
const SerdString* str,
const SerdString* datatype,
const SerdString* lang)
@@ -266,11 +266,11 @@ bool
serd_writer_write_statement(SerdWriter writer,
const SerdString* graph,
const SerdString* subject,
- SerdNodeType subject_type,
+ SerdType subject_type,
const SerdString* predicate,
- SerdNodeType predicate_type,
+ SerdType predicate_type,
const SerdString* object,
- SerdNodeType object_type,
+ SerdType object_type,
const SerdString* object_datatype,
const SerdString* object_lang)
{
@@ -285,11 +285,11 @@ static bool
serd_writer_write_statement_abbrev(SerdWriter writer,
const SerdString* graph,
const SerdString* subject,
- SerdNodeType subject_type,
+ SerdType subject_type,
const SerdString* predicate,
- SerdNodeType predicate_type,
+ SerdType predicate_type,
const SerdString* object,
- SerdNodeType object_type,
+ SerdType object_type,
const SerdString* object_datatype,
const SerdString* object_lang)
{
@@ -359,11 +359,11 @@ bool
serd_writer_write_statement_flat(SerdWriter writer,
const SerdString* graph,
const SerdString* subject,
- SerdNodeType subject_type,
+ SerdType subject_type,
const SerdString* predicate,
- SerdNodeType predicate_type,
+ SerdType predicate_type,
const SerdString* object,
- SerdNodeType object_type,
+ SerdType object_type,
const SerdString* object_datatype,
const SerdString* object_lang)
{