Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sord_internal.h 1.4KB

12 years ago
12 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. Copyright 2011-2012 David Robillard <http://drobilla.net>
  3. Permission to use, copy, modify, and/or distribute this software for any
  4. purpose with or without fee is hereby granted, provided that the above
  5. copyright notice and this permission notice appear in all copies.
  6. THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  7. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  8. MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  9. ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  10. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  11. ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  12. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  13. */
  14. #ifndef SORD_SORD_INTERNAL_H
  15. #define SORD_SORD_INTERNAL_H
  16. #include <stddef.h>
  17. #include <stdint.h>
  18. #include "sord/sord.h"
  19. /** Resource node metadata */
  20. typedef struct {
  21. size_t refs_as_obj; ///< References as a quad object
  22. } SordResourceMetadata;
  23. /** Literal node metadata */
  24. typedef struct {
  25. SordNode* datatype; ///< Optional literal data type URI
  26. char lang[16]; ///< Optional language tag
  27. } SordLiteralMetadata;
  28. /** Node */
  29. struct SordNodeImpl {
  30. SerdNode node; ///< Serd node
  31. size_t refs; ///< Reference count (# of containing quads)
  32. union {
  33. SordResourceMetadata res;
  34. SordLiteralMetadata lit;
  35. } meta;
  36. };
  37. #endif /* SORD_SORD_INTERNAL_H */