LMMS
Loading...
Searching...
No Matches
sratom.h File Reference
#include <stdint.h>
#include "lv2/urid.h"
#include "lv2/atom.h"
#include "lv2/atom-forge.h"
#include "serd/serd.h"
#include "sord/sord.h"

Go to the source code of this file.

Macros

#define SRATOM_API

Typedefs

typedef struct SratomImpl Sratom

Enumerations

enum  SratomObjectMode { SRATOM_OBJECT_MODE_BLANK , SRATOM_OBJECT_MODE_BLANK_SUBJECT }

Functions

SRATOM_API Sratomsratom_new (LV2_URID_Map *map)
SRATOM_API void sratom_free (Sratom *sratom)
SRATOM_API void sratom_set_env (Sratom *sratom, SerdEnv *env)
SRATOM_API void sratom_set_sink (Sratom *sratom, const char *base_uri, SerdStatementSink sink, SerdEndSink end_sink, void *handle)
SRATOM_API void sratom_set_pretty_numbers (Sratom *sratom, bool pretty_numbers)
SRATOM_API void sratom_set_object_mode (Sratom *sratom, SratomObjectMode object_mode)
SRATOM_API int sratom_write (Sratom *sratom, LV2_URID_Unmap *unmap, uint32_t flags, const SerdNode *subject, const SerdNode *predicate, uint32_t type_urid, uint32_t size, const void *body)
SRATOM_API void sratom_read (Sratom *sratom, LV2_Atom_Forge *forge, SordWorld *world, SordModel *model, const SordNode *node)
SRATOM_API char * sratom_to_turtle (Sratom *sratom, LV2_URID_Unmap *unmap, const char *base_uri, const SerdNode *subject, const SerdNode *predicate, uint32_t type, uint32_t size, const void *body)
SRATOM_API LV2_Atomsratom_from_turtle (Sratom *sratom, const char *base_uri, const SerdNode *subject, const SerdNode *predicate, const char *str)
SRATOM_API LV2_Atom_Forge_Ref sratom_forge_sink (LV2_Atom_Forge_Sink_Handle handle, const void *buf, uint32_t size)
SRATOM_API LV2_Atomsratom_forge_deref (LV2_Atom_Forge_Sink_Handle handle, LV2_Atom_Forge_Ref ref)

Detailed Description

API for Sratom, an LV2 Atom RDF serialisation library.

Macro Definition Documentation

◆ SRATOM_API

#define SRATOM_API