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.

69 lines
2.2KB

  1. /*
  2. LV2 Data Access Extension
  3. Copyright 2008-2016 David Robillard <http://drobilla.net>
  4. Permission to use, copy, modify, and/or distribute this software for any
  5. purpose with or without fee is hereby granted, provided that the above
  6. copyright notice and this permission notice appear in all copies.
  7. THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  8. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  9. MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  10. ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  11. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  12. ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  13. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  14. */
  15. /**
  16. @defgroup data-access Data Access
  17. Access to plugin extension_data() for UIs, see
  18. <http://lv2plug.in/ns/ext/data-acess> for details.
  19. @{
  20. */
  21. #ifndef LV2_DATA_ACCESS_H
  22. #define LV2_DATA_ACCESS_H
  23. #define LV2_DATA_ACCESS_URI "http://lv2plug.in/ns/ext/data-access" ///< http://lv2plug.in/ns/ext/data-access
  24. #define LV2_DATA_ACCESS_PREFIX LV2_DATA_ACCESS_URI "#" ///< http://lv2plug.in/ns/ext/data-access#
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. /**
  29. The data field of the LV2_Feature for this extension.
  30. To support this feature the host must pass an LV2_Feature struct to the
  31. instantiate method with URI "http://lv2plug.in/ns/ext/data-access"
  32. and data pointed to an instance of this struct.
  33. */
  34. typedef struct {
  35. /**
  36. A pointer to a method the UI can call to get data (of a type specified
  37. by some other extension) from the plugin.
  38. This call never is never guaranteed to return anything, UIs should
  39. degrade gracefully if direct access to the plugin data is not possible
  40. (in which case this function will return NULL).
  41. This is for access to large data that can only possibly work if the UI
  42. and plugin are running in the same process. For all other things, use
  43. the normal LV2 UI communication system.
  44. */
  45. const void* (*data_access)(const char* uri);
  46. } LV2_Extension_Data_Feature;
  47. #ifdef __cplusplus
  48. } /* extern "C" */
  49. #endif
  50. #endif /* LV2_DATA_ACCESS_H */
  51. /**
  52. @}
  53. */