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
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. @file data-access.h
  17. C header for the LV2 Extension Data extension
  18. <http://lv2plug.in/ns/ext/data-access>.
  19. This extension defines a method for (e.g.) plugin UIs to have (possibly
  20. marshalled) access to the extension_data function on a plugin instance.
  21. */
  22. #ifndef LV2_DATA_ACCESS_H
  23. #define LV2_DATA_ACCESS_H
  24. #define LV2_DATA_ACCESS_URI "http://lv2plug.in/ns/ext/data-access"
  25. /**
  26. The data field of the LV2_Feature for this extension.
  27. To support this feature the host must pass an LV2_Feature struct to the
  28. instantiate method with URI "http://lv2plug.in/ns/ext/data-access"
  29. and data pointed to an instance of this struct.
  30. */
  31. typedef struct {
  32. /**
  33. A pointer to a method the UI can call to get data (of a type specified
  34. by some other extension) from the plugin.
  35. This call never is never guaranteed to return anything, UIs should
  36. degrade gracefully if direct access to the plugin data is not possible
  37. (in which case this function will return NULL).
  38. This is for access to large data that can only possibly work if the UI
  39. and plugin are running in the same process. For all other things, use
  40. the normal LV2 UI communication system.
  41. */
  42. const void* (*data_access)(const char* uri);
  43. } LV2_Extension_Data_Feature;
  44. #endif /* LV2_DATA_ACCESS_H */