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.

data-access.h 2.1KB

12 years ago
12 years ago
12 years ago
11 years ago
12 years ago
11 years ago
12 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. LV2 Data Access Extension
  3. Copyright 2008-2011 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"
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /**
  28. The data field of the LV2_Feature for this extension.
  29. To support this feature the host must pass an LV2_Feature struct to the
  30. instantiate method with URI "http://lv2plug.in/ns/ext/data-access"
  31. and data pointed to an instance of this struct.
  32. */
  33. typedef struct {
  34. /**
  35. A pointer to a method the UI can call to get data (of a type specified
  36. by some other extension) from the plugin.
  37. This call never is never guaranteed to return anything, UIs should
  38. degrade gracefully if direct access to the plugin data is not possible
  39. (in which case this function will return NULL).
  40. This is for access to large data that can only possibly work if the UI
  41. and plugin are running in the same process. For all other things, use
  42. the normal LV2 UI communication system.
  43. */
  44. const void* (*data_access)(const char* uri);
  45. } LV2_Extension_Data_Feature;
  46. #ifdef __cplusplus
  47. } /* extern "C" */
  48. #endif
  49. #endif /* LV2_DATA_ACCESS_H */
  50. /**
  51. @}
  52. */