diff options
author | David Robillard <d@drobilla.net> | 2020-12-26 19:24:02 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-31 13:28:01 +0100 |
commit | 6b1a4297f8114b8833bf5f9c838130bdfa37b234 (patch) | |
tree | 0223d7faefbee1249cb855e12298bbe3f58acb79 /include | |
parent | 6677a42446f0e4aa3a10a42ead4a04891b72ead0 (diff) | |
download | sratom-6b1a4297f8114b8833bf5f9c838130bdfa37b234.tar.gz sratom-6b1a4297f8114b8833bf5f9c838130bdfa37b234.tar.bz2 sratom-6b1a4297f8114b8833bf5f9c838130bdfa37b234.zip |
Format all code with clang-format
Diffstat (limited to 'include')
-rw-r--r-- | include/sratom/sratom.h | 66 |
1 files changed, 31 insertions, 35 deletions
diff --git a/include/sratom/sratom.h b/include/sratom/sratom.h index 22cf39e..9f06e9c 100644 --- a/include/sratom/sratom.h +++ b/include/sratom/sratom.h @@ -31,20 +31,20 @@ #include <stdint.h> #ifdef SRATOM_SHARED -# ifdef _WIN32 -# define SRATOM_LIB_IMPORT __declspec(dllimport) -# define SRATOM_LIB_EXPORT __declspec(dllexport) -# else -# define SRATOM_LIB_IMPORT __attribute__((visibility("default"))) -# define SRATOM_LIB_EXPORT __attribute__((visibility("default"))) -# endif -# ifdef SRATOM_INTERNAL -# define SRATOM_API SRATOM_LIB_EXPORT -# else -# define SRATOM_API SRATOM_LIB_IMPORT -# endif +# ifdef _WIN32 +# define SRATOM_LIB_IMPORT __declspec(dllimport) +# define SRATOM_LIB_EXPORT __declspec(dllexport) +# else +# define SRATOM_LIB_IMPORT __attribute__((visibility("default"))) +# define SRATOM_LIB_EXPORT __attribute__((visibility("default"))) +# endif +# ifdef SRATOM_INTERNAL +# define SRATOM_API SRATOM_LIB_EXPORT +# else +# define SRATOM_API SRATOM_LIB_IMPORT +# endif #else -# define SRATOM_API +# define SRATOM_API #endif #ifdef __cplusplus @@ -75,18 +75,18 @@ typedef struct SratomImpl Sratom; blank node IDs may be added in the future. */ typedef enum { - /** - Read blank nodes as Objects, and named resources as URIs. - */ - SRATOM_OBJECT_MODE_BLANK, - - /** - Read blank nodes and the main subject as Objects, and any other named - resources as URIs. The "main subject" is the subject parameter passed - to sratom_read(); if this is a resource it will be read as an Object, - but all other named resources encountered will be read as URIs. - */ - SRATOM_OBJECT_MODE_BLANK_SUBJECT + /** + Read blank nodes as Objects, and named resources as URIs. + */ + SRATOM_OBJECT_MODE_BLANK, + + /** + Read blank nodes and the main subject as Objects, and any other named + resources as URIs. The "main subject" is the subject parameter passed + to sratom_read(); if this is a resource it will be read as an Object, + but all other named resources encountered will be read as URIs. + */ + SRATOM_OBJECT_MODE_BLANK_SUBJECT } SratomObjectMode; /** @@ -111,8 +111,7 @@ sratom_free(Sratom* sratom); */ SRATOM_API void -sratom_set_env(Sratom* sratom, - SerdEnv* env); +sratom_set_env(Sratom* sratom, SerdEnv* env); /** Set the sink(s) where sratom will write its output. @@ -136,16 +135,14 @@ sratom_set_sink(Sratom* sratom, */ SRATOM_API void -sratom_set_pretty_numbers(Sratom* sratom, - bool pretty_numbers); +sratom_set_pretty_numbers(Sratom* sratom, bool pretty_numbers); /** Configure how resources will be read to form LV2 Objects. */ SRATOM_API void -sratom_set_object_mode(Sratom* sratom, - SratomObjectMode object_mode); +sratom_set_object_mode(Sratom* sratom, SratomObjectMode object_mode); /** Write an Atom to RDF. @@ -217,15 +214,14 @@ sratom_forge_sink(LV2_Atom_Forge_Sink_Handle handle, */ SRATOM_API LV2_Atom* -sratom_forge_deref(LV2_Atom_Forge_Sink_Handle handle, - LV2_Atom_Forge_Ref ref); +sratom_forge_deref(LV2_Atom_Forge_Sink_Handle handle, LV2_Atom_Forge_Ref ref); /** @} */ #ifdef __cplusplus -} /* extern "C" */ +} /* extern "C" */ #endif -#endif /* SRATOM_SRATOM_H */ +#endif /* SRATOM_SRATOM_H */ |