KXStudio Website https://kx.studio/
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.

84 lines
2.2KB

  1. /*
  2. LV2 Configure Extension
  3. Copyright 2013 Filipe Coelho <falktx@falktx.com>
  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 lv2_configure.h
  17. C header for the LV2 configure extension <http://kxstudio.sf.net/ns/lv2ext/configure>.
  18. */
  19. #ifndef LV2_CONFIGURE_H
  20. #define LV2_CONFIGURE_H
  21. #include "lv2/lv2plug.in/ns/extensions/ui/ui.h"
  22. #define LV2_CONFIGURE_URI "http://kxstudio.sf.net/ns/lv2ext/configure"
  23. #define LV2_CONFIGURE_PREFIX LV2_CONFIGURE_URI "#"
  24. #define LV2_CONFIGURE__Host LV2_CONFIGURE_PREFIX "Host"
  25. #define LV2_CONFIGURE__UIInterface LV2_CONFIGURE_PREFIX "UIInterface"
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. typedef void* LV2_Configure_Handle;
  30. /**
  31. Configure extension, UI data.
  32. When the UI's extension_data is called with argument LV2_CONFIGURE__UIInterface,
  33. the UI MUST return an LV2_Configure_UI_Interface structure, which remains valid
  34. for the lifetime of the UI.
  35. */
  36. typedef struct _LV2_Configure_UI_Interface {
  37. /**
  38. * configure()
  39. *
  40. * TODO
  41. */
  42. void (*configure)(LV2UI_Handle handle,
  43. const char* key,
  44. const char* value);
  45. } LV2_Configure_UI_Interface;
  46. /**
  47. Feature data for LV2_CONFIGURE__Host.
  48. */
  49. typedef struct _LV2_Configure_Host {
  50. /**
  51. * Opaque host data.
  52. */
  53. LV2_Configure_Handle handle;
  54. /**
  55. * configure()
  56. *
  57. * TODO
  58. */
  59. void (*configure)(LV2_Configure_Handle handle,
  60. const char* key,
  61. const char* value);
  62. } LV2_Configure_Host;
  63. #ifdef __cplusplus
  64. } /* extern "C" */
  65. #endif
  66. #endif /* LV2_CONFIGURE_H */