aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-23 08:16:49 +0000
committerDavid Robillard <d@drobilla.net>2011-01-23 08:16:49 +0000
commitc7dfad1db675f417b09fd3748473b26cc0ea85be (patch)
treec9c52766184c0fa6d28c0dafe64b2a8de5cdee25 /src
parenta3c9e1dacb76cf0282d8419fa13a41d322046e60 (diff)
downloadserd-c7dfad1db675f417b09fd3748473b26cc0ea85be.tar.gz
serd-c7dfad1db675f417b09fd3748473b26cc0ea85be.tar.bz2
serd-c7dfad1db675f417b09fd3748473b26cc0ea85be.zip
SerdNodeType => SerdType.
git-svn-id: http://svn.drobilla.net/serd/trunk@43 490d8e77-9747-427b-9fa3-0b8f29cee8a0
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)
{