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.

libjack_metadata.cpp 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /*
  2. * Carla JACK API for external applications
  3. * Copyright (C) 2016-2017 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the doc/GPL.txt file.
  16. */
  17. #include "libjack.hpp"
  18. #define JACK_UUID_SIZE 36
  19. #define JACK_UUID_STRING_SIZE (JACK_UUID_SIZE+1) /* includes trailing null */
  20. #define JACK_UUID_EMPTY_INITIALIZER 0
  21. CARLA_BACKEND_USE_NAMESPACE
  22. // --------------------------------------------------------------------------------------------------------------------
  23. CARLA_EXPORT
  24. const char* JACK_METADATA_PRETTY_NAME;
  25. const char* JACK_METADATA_PRETTY_NAME = "http://jackaudio.org/metadata/pretty-name";
  26. CARLA_EXPORT
  27. const char* JACK_METADATA_HARDWARE;
  28. const char* JACK_METADATA_HARDWARE = "http://jackaudio.org/metadata/hardware";
  29. CARLA_EXPORT
  30. const char* JACK_METADATA_CONNECTED;
  31. const char* JACK_METADATA_CONNECTED = "http://jackaudio.org/metadata/connected";
  32. CARLA_EXPORT
  33. const char* JACK_METADATA_PORT_GROUP;
  34. const char* JACK_METADATA_PORT_GROUP = "http://jackaudio.org/metadata/port-group";
  35. CARLA_EXPORT
  36. const char* JACK_METADATA_ICON_SMALL;
  37. const char* JACK_METADATA_ICON_SMALL = "http://jackaudio.org/metadata/icon-small";
  38. CARLA_EXPORT
  39. const char* JACK_METADATA_ICON_LARGE;
  40. const char* JACK_METADATA_ICON_LARGE = "http://jackaudio.org/metadata/icon-large";
  41. // --------------------------------------------------------------------------------------------------------------------
  42. CARLA_EXPORT
  43. int jack_set_property(jack_client_t*, jack_uuid_t, const char*, const char*, const char*)
  44. {
  45. return -1;
  46. }
  47. CARLA_EXPORT
  48. int jack_get_property(jack_uuid_t, const char*, char**, char**)
  49. {
  50. return -1;
  51. }
  52. CARLA_EXPORT
  53. void jack_free_description(jack_description_t*, int)
  54. {
  55. }
  56. CARLA_EXPORT
  57. int jack_get_properties(jack_uuid_t, jack_description_t*)
  58. {
  59. return -1;
  60. }
  61. CARLA_EXPORT
  62. int jack_get_all_properties(jack_description_t**)
  63. {
  64. return -1;
  65. }
  66. CARLA_EXPORT
  67. int jack_remove_property(jack_client_t*, jack_uuid_t, const char*)
  68. {
  69. return -1;
  70. }
  71. CARLA_EXPORT
  72. int jack_remove_properties(jack_client_t*, jack_uuid_t)
  73. {
  74. return -1;
  75. }
  76. CARLA_EXPORT
  77. int jack_remove_all_properties(jack_client_t*)
  78. {
  79. return -1;
  80. }
  81. CARLA_EXPORT
  82. int jack_set_property_change_callback(jack_client_t*, JackPropertyChangeCallback, void*)
  83. {
  84. return -1;
  85. }
  86. // --------------------------------------------------------------------------------------------------------------------
  87. CARLA_EXPORT
  88. jack_uuid_t jack_client_uuid_generate()
  89. {
  90. return 0;
  91. }
  92. CARLA_EXPORT
  93. jack_uuid_t jack_port_uuid_generate(uint32_t)
  94. {
  95. return 0;
  96. }
  97. CARLA_EXPORT
  98. uint32_t jack_uuid_to_index(jack_uuid_t)
  99. {
  100. return 0;
  101. }
  102. CARLA_EXPORT
  103. int jack_uuid_compare(jack_uuid_t, jack_uuid_t)
  104. {
  105. return 0;
  106. }
  107. CARLA_EXPORT
  108. void jack_uuid_copy(jack_uuid_t*, jack_uuid_t)
  109. {
  110. }
  111. CARLA_EXPORT
  112. void jack_uuid_clear(jack_uuid_t*)
  113. {
  114. }
  115. CARLA_EXPORT
  116. int jack_uuid_parse(const char*, jack_uuid_t*)
  117. {
  118. return 0;
  119. }
  120. CARLA_EXPORT
  121. void jack_uuid_unparse(jack_uuid_t, char buf[JACK_UUID_STRING_SIZE])
  122. {
  123. return;
  124. // unused
  125. (void)buf;
  126. }
  127. CARLA_EXPORT
  128. int jack_uuid_empty(jack_uuid_t)
  129. {
  130. return 0;
  131. }
  132. // --------------------------------------------------------------------------------------------------------------------