Collection of tools useful for audio production
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.

54 lines
1.7KB

  1. /*
  2. Copyright 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 LV2_OPTIONS_H
  15. #define LV2_OPTIONS_H
  16. #include <stdint.h>
  17. #include "urid.h"
  18. #define LV2_OPTIONS_URI "http://lv2plug.in/ns/ext/options"
  19. #define LV2_OPTIONS_PREFIX LV2_OPTIONS_URI "#"
  20. #define LV2_OPTIONS__Option LV2_OPTIONS_PREFIX "Option"
  21. #define LV2_OPTIONS__options LV2_OPTIONS_PREFIX "options"
  22. #define LV2_OPTIONS__requiredOption LV2_OPTIONS_PREFIX "requiredOption"
  23. #define LV2_OPTIONS__supportedOption LV2_OPTIONS_PREFIX "supportedOption"
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /**
  28. An instantiation time option.
  29. An array of these is passed to the instantiate method in a Feature with URI
  30. LV2_OPTIONS__options .
  31. */
  32. typedef struct {
  33. LV2_URID key; /**< Key (a property URID). */
  34. uint32_t size; /**< Size of value in bytes. */
  35. LV2_URID type; /**< Type of value (a datatype URID). */
  36. const void* value; /**< Pointer to value. */
  37. } LV2_Options_Option;
  38. #ifdef __cplusplus
  39. } /* extern "C" */
  40. #endif
  41. #endif /* LV2_OPTIONS_H */