aboutsummaryrefslogtreecommitdiffstats
path: root/serd/serd.h
AgeCommit message (Collapse)AuthorFilesLines
2020-06-21Replace serd_reader_set_strict() with SerdReaderFlagsDavid Robillard1-12/+10
This makes reader options extensible and should hopefully prevent the need for grafting on more similar functions in the future.
2020-06-21Report writer errors and add strict write modeDavid Robillard1-3/+5
2020-06-21Add support for writing terse collectionsDavid Robillard1-1/+3
2020-06-21Add option for writing terse output without newlinesDavid Robillard1-0/+1
2020-06-21Rename SERD_STYLE_ASCII to SERD_WRITE_ASCIIDavid Robillard1-1/+1
2020-06-21Add serd_new_boolean()David Robillard1-0/+5
2020-06-21Remove reader status and handle errors more preciselyDavid Robillard1-1/+2
2020-06-21Add model validationDavid Robillard1-1/+17
2020-06-21Add modelDavid Robillard1-0/+422
2020-06-21Use consistent naming for function typesDavid Robillard1-11/+11
2020-06-21Add extensible logging APIDavid Robillard1-23/+102
2020-06-21Use line comments where appropriate and clean up headerDavid Robillard1-433/+210
2020-06-21Add Env to SinkDavid Robillard1-8/+9
This isn't technically necessary for any sink, but is a pattern common to every sink implementation in serd, so having it here reduces boilerplate and parameters in user code.
2020-06-21Rename SerdStyle to SerdWriterFlagsDavid Robillard1-5/+5
2020-06-21Rename SerdType to SerdNodeTypeDavid Robillard1-3/+3
The old name has become ambiguous with the expanded scope of serd.
2020-06-21Clean up and expose base64 implementationDavid Robillard1-4/+45
2020-06-21Expose the node cache in the worldDavid Robillard1-0/+11
2020-06-21Remove serd_env_foreach()David Robillard1-9/+0
2020-06-21Add serd_env_write_prefixes()David Robillard1-0/+7
2020-06-21Add serd_node_compare()David Robillard1-0/+11
2020-06-21Use simpler names for statement flagsDavid Robillard1-5/+5
2020-06-21Simplify streaming API and improve pretty printingDavid Robillard1-8/+5
This removes the obligation from the caller to correctly maintain flags to describe the current anonymous context, instead making the writer handle this itself as much as possible. Flags remain for the cases the writer can not infer from context: the start of anonymous subject and object nodes.
2020-06-21Add SerdNodes class for storing a cache of nodesDavid Robillard1-0/+65
2020-06-21Add serd_env_copy() and serd_env_equals()David Robillard1-0/+14
2020-06-21Separate ByteSink from WriterDavid Robillard1-2/+1
2020-06-21Expose SerdByteSink in public APIDavid Robillard1-0/+42
2020-06-21Remove serd_reader_set_default_graph()David Robillard1-12/+0
2020-06-21Simplify writer style optionsDavid Robillard1-5/+2
2020-06-21Separate style enum from style flags typesDavid Robillard1-1/+6
2020-06-21Automatically finish reader on destructionDavid Robillard1-0/+5
2020-06-21Make SerdSink opaqueDavid Robillard1-11/+52
2020-06-21Simplify SerdEnv APIDavid Robillard1-24/+6
2020-06-21Add cursor to statementDavid Robillard1-0/+7
This allows the file and position of statements to be used in sinks, for example for more helpful error reporting outside the parser.
2020-06-21Add SerdCursor to public APIDavid Robillard1-8/+77
2020-06-21Remove escape parameter from serd_new_file_uriDavid Robillard1-4/+3
Since characters are escaped because they are not valid characters in a URI, any use of this function without escaping is problematic at best.
2020-06-21Shorten node constructor namesDavid Robillard1-23/+60
2020-06-21Make statement sink take a statement rather than nodesDavid Robillard1-6/+3
This makes the interface more extensible, towards associating more information with statements. The serd_sink_write_nodes wrapper remains so that user code does not need to allocate in order to write statement.
2020-06-21Add sink interfaceDavid Robillard1-0/+60
2020-06-21Add SerdStatementDavid Robillard1-0/+48
2020-06-21Move syntax name/extension utilities to public APIDavid Robillard1-0/+35
2020-06-21Move SerdField to public APIDavid Robillard1-0/+10
2020-06-21Use a fixed-size reader stackDavid Robillard1-2/+6
This improves performance, and makes the reader more suitable for embedded or network-facing applications, at the cost of requiring the user to specify a maximum stack size.
2020-06-21Set datatypes on integer, decimal, and base64 nodesDavid Robillard1-4/+20
2020-06-21Add serd_world_get_blank()David Robillard1-0/+10
2020-06-21Clean up node construction APIDavid Robillard1-51/+52
2020-06-21Hide fopen wrapper and use reader interface consistentlyDavid Robillard1-11/+3
2020-06-21Add blank node APIDavid Robillard1-0/+10
2020-06-21Make serd_node_new_literal take datatype as a nodeDavid Robillard1-1/+3
2020-06-21Add SerdWorld for shared library stateDavid Robillard1-26/+45
2020-06-21Add SerdSink interface and hide individual function implementationsDavid Robillard1-49/+19