aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-12-29 20:05:00 -0500
committerDavid Robillard <d@drobilla.net>2019-04-13 19:15:32 +0200
commitd6060f62d7dd3c9906fb4c58a75874f57d846162 (patch)
tree57b4c23603415f1d274201aeb7ba086ac07f611e /src/writer.c
parentc25fb778a07653c70550e58b22dd599627c0a9a9 (diff)
downloadserd-d6060f62d7dd3c9906fb4c58a75874f57d846162.tar.gz
serd-d6060f62d7dd3c9906fb4c58a75874f57d846162.tar.bz2
serd-d6060f62d7dd3c9906fb4c58a75874f57d846162.zip
Rename SerdStyle to SerdWriterFlags
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/writer.c b/src/writer.c
index 09bffeef..72ecc4ed 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -104,7 +104,7 @@ struct SerdWriterImpl {
SerdWorld* world;
SerdSink iface;
SerdSyntax syntax;
- SerdStyleFlags style;
+ SerdWriterFlags flags;
SerdEnv* env;
SerdNode* root_node;
SerdURI root_uri;
@@ -195,7 +195,7 @@ write_character(SerdWriter* writer, const uint8_t* utf8, size_t* size)
break;
}
- if (!(writer->style & SERD_STYLE_ASCII)) {
+ if (!(writer->flags & SERD_STYLE_ASCII)) {
// Write UTF-8 character directly to UTF-8 output
return sink(utf8, *size, writer);
}
@@ -898,18 +898,18 @@ serd_writer_finish(SerdWriter* writer)
}
SerdWriter*
-serd_writer_new(SerdWorld* world,
- SerdSyntax syntax,
- SerdStyleFlags style,
- SerdEnv* env,
- SerdWriteFunc write_func,
- void* stream)
+serd_writer_new(SerdWorld* world,
+ SerdSyntax syntax,
+ SerdWriterFlags flags,
+ SerdEnv* env,
+ SerdWriteFunc write_func,
+ void* stream)
{
const WriteContext context = WRITE_CONTEXT_NULL;
SerdWriter* writer = (SerdWriter*)calloc(1, sizeof(SerdWriter));
writer->world = world;
writer->syntax = syntax;
- writer->style = style;
+ writer->flags = flags;
writer->env = env;
writer->root_node = NULL;
writer->root_uri = SERD_URI_NULL;