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.

530 lines
18KB

  1. diff --git a/source/modules/lilv/lilv-0.20.0/lilv/lilv.h b/source/modules/lilv/lilv-0.20.0/lilv/lilv.h
  2. index 5c26681..ca673e4 100644
  3. --- a/source/modules/lilv/lilv-0.20.0/lilv/lilv.h
  4. +++ b/source/modules/lilv/lilv-0.20.0/lilv/lilv.h
  5. @@ -26,8 +26,9 @@
  6. #include <stdint.h>
  7. #include <stdio.h>
  8. -#include "lv2/lv2plug.in/ns/lv2core/lv2.h"
  9. -#include "lv2/lv2plug.in/ns/ext/urid/urid.h"
  10. +#include "lv2/lv2.h"
  11. +#include "lv2/state.h"
  12. +#include "lv2/urid.h"
  13. #ifdef LILV_SHARED
  14. # ifdef _WIN32
  15. @@ -1152,9 +1153,9 @@ lilv_port_get_scale_points(const LilvPlugin* plugin,
  16. @return A new LilvState which must be freed with lilv_state_free(), or NULL.
  17. */
  18. LILV_API LilvState*
  19. -lilv_state_new_from_world(LilvWorld* world,
  20. - LV2_URID_Map* map,
  21. - const LilvNode* subject);
  22. +lilv_state_new_from_world(LilvWorld* world,
  23. + const LV2_URID_Map* map,
  24. + const LilvNode* subject);
  25. /**
  26. Load a state snapshot from a file.
  27. @@ -1172,18 +1173,18 @@ lilv_state_new_from_world(LilvWorld* world,
  28. new memory consumed once this function returns.
  29. */
  30. LILV_API LilvState*
  31. -lilv_state_new_from_file(LilvWorld* world,
  32. - LV2_URID_Map* map,
  33. - const LilvNode* subject,
  34. - const char* path);
  35. +lilv_state_new_from_file(LilvWorld* world,
  36. + const LV2_URID_Map* map,
  37. + const LilvNode* subject,
  38. + const char* path);
  39. /**
  40. Load a state snapshot from a string made by lilv_state_to_string().
  41. */
  42. LILV_API LilvState*
  43. -lilv_state_new_from_string(LilvWorld* world,
  44. - LV2_URID_Map* map,
  45. - const char* str);
  46. +lilv_state_new_from_string(LilvWorld* world,
  47. + const LV2_URID_Map* map,
  48. + const char* str);
  49. /**
  50. Function to get a port value.
  51. @@ -1352,7 +1353,8 @@ typedef void (*LilvSetPortValueFunc)(const char* port_symbol,
  52. */
  53. LILV_API void
  54. lilv_state_restore(const LilvState* state,
  55. - LilvInstance* instance,
  56. + const LV2_State_Interface* iface,
  57. + LV2_Handle handle,
  58. LilvSetPortValueFunc set_value,
  59. void* user_data,
  60. uint32_t flags,
  61. @@ -1695,6 +1697,21 @@ LILV_API const LilvNode*
  62. lilv_ui_get_binary_uri(const LilvUI* ui);
  63. /**
  64. + Custom calls
  65. +*/
  66. +LILV_API const LilvNodes*
  67. +lilv_ui_get_supported_features(const LilvUI* ui);
  68. +
  69. +LILV_API const LilvNodes*
  70. +lilv_ui_get_required_features(const LilvUI* ui);
  71. +
  72. +LILV_API const LilvNodes*
  73. +lilv_ui_get_optional_features(const LilvUI* ui);
  74. +
  75. +LILV_API const LilvNodes*
  76. +lilv_ui_get_extension_data(const LilvUI* ui);
  77. +
  78. +/**
  79. @}
  80. @}
  81. */
  82. diff --git a/source/modules/lilv/lilv-0.20.0/lilv/lilvmm.hpp b/source/modules/lilv/lilv-0.20.0/lilv/lilvmm.hpp
  83. index b9b3a69..0d82f3f 100644
  84. --- a/source/modules/lilv/lilv-0.20.0/lilv/lilvmm.hpp
  85. +++ b/source/modules/lilv/lilv-0.20.0/lilv/lilvmm.hpp
  86. @@ -17,6 +17,8 @@
  87. #ifndef LILV_LILVMM_HPP
  88. #define LILV_LILVMM_HPP
  89. +#include "CarlaDefines.h"
  90. +
  91. #include "lilv/lilv.h"
  92. #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
  93. @@ -35,6 +37,9 @@ uri_to_path(const char* uri) {
  94. #define LILV_WRAP0(RT, prefix, name) \
  95. inline RT name() { return lilv_ ## prefix ## _ ## name (me); }
  96. +#define LILV_WRAP0_CONST(RT, prefix, name) \
  97. + inline RT name() const { return lilv_ ## prefix ## _ ## name (me); }
  98. +
  99. #define LILV_WRAP0_VOID(prefix, name) \
  100. inline void name() { lilv_ ## prefix ## _ ## name(me); }
  101. @@ -65,6 +70,7 @@ uri_to_path(const char* uri) {
  102. #endif
  103. struct Node {
  104. + inline Node(LilvNode* node) : me(node) {}
  105. inline Node(const LilvNode* node) : me(lilv_node_duplicate(node)) {}
  106. inline Node(const Node& copy) : me(lilv_node_duplicate(copy.me)) {}
  107. @@ -78,20 +84,26 @@ struct Node {
  108. LILV_WRAP_CONVERSION(LilvNode);
  109. - LILV_WRAP0(char*, node, get_turtle_token);
  110. - LILV_WRAP0(bool, node, is_uri);
  111. - LILV_WRAP0(const char*, node, as_uri);
  112. - LILV_WRAP0(bool, node, is_blank);
  113. - LILV_WRAP0(const char*, node, as_blank);
  114. - LILV_WRAP0(bool, node, is_literal);
  115. - LILV_WRAP0(bool, node, is_string);
  116. - LILV_WRAP0(const char*, node, as_string);
  117. - LILV_WRAP0(bool, node, is_float);
  118. - LILV_WRAP0(float, node, as_float);
  119. - LILV_WRAP0(bool, node, is_int);
  120. - LILV_WRAP0(int, node, as_int);
  121. - LILV_WRAP0(bool, node, is_bool);
  122. - LILV_WRAP0(bool, node, as_bool);
  123. + LILV_WRAP0_CONST(char*, node, get_turtle_token);
  124. + LILV_WRAP0_CONST(bool, node, is_uri);
  125. + LILV_WRAP0_CONST(const char*, node, as_uri);
  126. + LILV_WRAP0_CONST(bool, node, is_blank);
  127. + LILV_WRAP0_CONST(const char*, node, as_blank);
  128. + LILV_WRAP0_CONST(bool, node, is_literal);
  129. + LILV_WRAP0_CONST(bool, node, is_string);
  130. + LILV_WRAP0_CONST(const char*, node, as_string);
  131. + LILV_WRAP0_CONST(bool, node, is_float);
  132. + LILV_WRAP0_CONST(float, node, as_float);
  133. + LILV_WRAP0_CONST(bool, node, is_int);
  134. + LILV_WRAP0_CONST(int, node, as_int);
  135. + LILV_WRAP0_CONST(bool, node, is_bool);
  136. + LILV_WRAP0_CONST(bool, node, as_bool);
  137. +
  138. + Node& operator=(const Node& copy) {
  139. + lilv_node_free(me);
  140. + me = lilv_node_duplicate(copy.me);
  141. + return *this;
  142. + }
  143. LilvNode* me;
  144. };
  145. @@ -126,7 +138,7 @@ struct PluginClass {
  146. LILV_WRAP0(LilvIter*, prefix, begin); \
  147. LILV_WRAP1(LilvIter*, prefix, next, LilvIter*, i); \
  148. LILV_WRAP1(bool, prefix, is_end, LilvIter*, i); \
  149. - const Lilv ## CT* me; \
  150. + const Lilv ## CT* me
  151. struct PluginClasses {
  152. LILV_WRAP_COLL(PluginClasses, PluginClass, plugin_classes);
  153. @@ -141,22 +153,24 @@ struct ScalePoints {
  154. struct Nodes {
  155. LILV_WRAP_COLL(Nodes, Node, nodes);
  156. LILV_WRAP1(bool, nodes, contains, const Node, node);
  157. - LILV_WRAP0(Node, nodes, get_first);
  158. +
  159. + inline Node get_first() const {
  160. + return Node((const LilvNode*)lilv_nodes_get_first(me));
  161. + }
  162. };
  163. struct UI {
  164. inline UI(const LilvUI* c_obj) : me(c_obj) {}
  165. LILV_WRAP_CONVERSION(const LilvUI);
  166. - LILV_WRAP0(const LilvNode*, ui, get_uri);
  167. - LILV_WRAP0(const LilvNode*, ui, get_bundle_uri);
  168. - LILV_WRAP0(const LilvNode*, ui, get_binary_uri);
  169. - LILV_WRAP0(const LilvNodes*, ui, get_classes);
  170. - /*LILV_WRAP3(bool, ui, is_supported,
  171. - LilvUISupportedFunc, supported_func,
  172. - const LilvNode*, container_type,
  173. - const LilvNode**, ui_type);*/
  174. - LILV_WRAP1(bool, ui, is_a, const LilvNode*, class_uri);
  175. + LILV_WRAP0(Node, ui, get_uri);
  176. + LILV_WRAP1(bool, ui, is_a, LilvNode*, ui_class);
  177. + LILV_WRAP0(Node, ui, get_bundle_uri);
  178. + LILV_WRAP0(Node, ui, get_binary_uri);
  179. + LILV_WRAP0(Nodes, ui, get_supported_features);
  180. + LILV_WRAP0(Nodes, ui, get_required_features);
  181. + LILV_WRAP0(Nodes, ui, get_optional_features);
  182. + LILV_WRAP0(Nodes, ui, get_extension_data);
  183. const LilvUI* me;
  184. };
  185. @@ -258,16 +272,14 @@ struct Plugins {
  186. struct Instance {
  187. inline Instance(LilvInstance* instance) : me(instance) {}
  188. - LILV_DEPRECATED
  189. - inline Instance(Plugin plugin, double sample_rate) {
  190. - me = lilv_plugin_instantiate(plugin, sample_rate, NULL);
  191. - }
  192. + LILV_DEPRECATED
  193. + inline Instance(Plugin plugin, double sample_rate)
  194. + : me(lilv_plugin_instantiate(plugin, sample_rate, NULL)) {}
  195. - LILV_DEPRECATED inline Instance(Plugin plugin,
  196. - double sample_rate,
  197. - LV2_Feature* const* features) {
  198. - me = lilv_plugin_instantiate(plugin, sample_rate, features);
  199. - }
  200. + LILV_DEPRECATED inline Instance(Plugin plugin,
  201. + double sample_rate,
  202. + LV2_Feature* const* features)
  203. + : me(lilv_plugin_instantiate(plugin, sample_rate, features)) {}
  204. static inline Instance* create(Plugin plugin,
  205. double sample_rate,
  206. @@ -304,22 +316,22 @@ struct Instance {
  207. };
  208. struct World {
  209. - inline World() : me(lilv_world_new()) {}
  210. - inline ~World() { lilv_world_free(me); }
  211. + inline World() : me(lilv_world_new()) {}
  212. + inline virtual ~World() { lilv_world_free(me); }
  213. - inline LilvNode* new_uri(const char* uri) {
  214. + inline LilvNode* new_uri(const char* uri) const {
  215. return lilv_new_uri(me, uri);
  216. }
  217. - inline LilvNode* new_string(const char* str) {
  218. + inline LilvNode* new_string(const char* str) const {
  219. return lilv_new_string(me, str);
  220. }
  221. - inline LilvNode* new_int(int val) {
  222. + inline LilvNode* new_int(int val) const {
  223. return lilv_new_int(me, val);
  224. }
  225. - inline LilvNode* new_float(float val) {
  226. + inline LilvNode* new_float(float val) const {
  227. return lilv_new_float(me, val);
  228. }
  229. - inline LilvNode* new_bool(bool val) {
  230. + inline LilvNode* new_bool(bool val) const {
  231. return lilv_new_bool(me, val);
  232. }
  233. inline Nodes find_nodes(const LilvNode* subject,
  234. @@ -337,6 +349,8 @@ struct World {
  235. LILV_WRAP1(int, world, load_resource, const LilvNode*, resource);
  236. LilvWorld* me;
  237. +
  238. + CARLA_DECLARE_NON_COPY_STRUCT(World)
  239. };
  240. } /* namespace Lilv */
  241. diff --git a/source/modules/lilv/lilv-0.20.0/src/lilv_internal.h b/source/modules/lilv/lilv-0.20.0/src/lilv_internal.h
  242. index ed2c13a..8d30b39 100644
  243. --- a/source/modules/lilv/lilv-0.20.0/src/lilv_internal.h
  244. +++ b/source/modules/lilv/lilv-0.20.0/src/lilv_internal.h
  245. @@ -50,7 +50,7 @@ static inline char* dlerror(void) { return "Unknown error"; }
  246. #include "lilv/lilv.h"
  247. #ifdef LILV_DYN_MANIFEST
  248. -# include "lv2/lv2plug.in/ns/ext/dynmanifest/dynmanifest.h"
  249. +# include "lv2/dynmanifest.h"
  250. #endif
  251. /*
  252. diff --git a/source/modules/lilv/lilv-0.20.0/src/plugin.c b/source/modules/lilv/lilv-0.20.0/src/plugin.c
  253. index 9c966b6..7bd6e60 100644
  254. --- a/source/modules/lilv/lilv-0.20.0/src/plugin.c
  255. +++ b/source/modules/lilv/lilv-0.20.0/src/plugin.c
  256. @@ -27,7 +27,7 @@
  257. #include "lilv_config.h"
  258. #include "lilv_internal.h"
  259. -#include "lv2/lv2plug.in/ns/extensions/ui/ui.h"
  260. +#include "lv2/ui.h"
  261. #define NS_DOAP (const uint8_t*)"http://usefulinc.com/ns/doap#"
  262. #define NS_FOAF (const uint8_t*)"http://xmlns.com/foaf/0.1/"
  263. diff --git a/source/modules/lilv/lilv-0.20.0/src/port.c b/source/modules/lilv/lilv-0.20.0/src/port.c
  264. index 6bf8fc7..0a50891 100644
  265. --- a/source/modules/lilv/lilv-0.20.0/src/port.c
  266. +++ b/source/modules/lilv/lilv-0.20.0/src/port.c
  267. @@ -20,8 +20,8 @@
  268. #include <stdlib.h>
  269. #include <string.h>
  270. -#include "lv2/lv2plug.in/ns/ext/atom/atom.h"
  271. -#include "lv2/lv2plug.in/ns/ext/event/event.h"
  272. +#include "lv2/atom.h"
  273. +#include "lv2/event.h"
  274. #include "lilv_internal.h"
  275. diff --git a/source/modules/lilv/lilv-0.20.0/src/state.c b/source/modules/lilv/lilv-0.20.0/src/state.c
  276. index 68d48f1..fa54484 100644
  277. --- a/source/modules/lilv/lilv-0.20.0/src/state.c
  278. +++ b/source/modules/lilv/lilv-0.20.0/src/state.c
  279. @@ -18,10 +18,10 @@
  280. #include <stdio.h>
  281. #include <string.h>
  282. -#include "lv2/lv2plug.in/ns/ext/atom/atom.h"
  283. -#include "lv2/lv2plug.in/ns/ext/atom/forge.h"
  284. -#include "lv2/lv2plug.in/ns/ext/presets/presets.h"
  285. -#include "lv2/lv2plug.in/ns/ext/state/state.h"
  286. +#include "lv2/atom.h"
  287. +#include "lv2/atom-forge.h"
  288. +#include "lv2/presets.h"
  289. +#include "lv2/state.h"
  290. #include "lilv_config.h"
  291. #include "lilv_internal.h"
  292. @@ -397,30 +397,18 @@ lilv_state_new_from_instance(const LilvPlugin* plugin,
  293. LILV_API void
  294. lilv_state_restore(const LilvState* state,
  295. - LilvInstance* instance,
  296. + const LV2_State_Interface* iface,
  297. + LV2_Handle handle,
  298. LilvSetPortValueFunc set_value,
  299. void* user_data,
  300. uint32_t flags,
  301. const LV2_Feature *const * features)
  302. {
  303. - LV2_State_Map_Path map_path = {
  304. - (LilvState*)state, abstract_path, absolute_path };
  305. - LV2_Feature map_feature = { LV2_STATE__mapPath, &map_path };
  306. -
  307. - const LV2_Feature** sfeatures = add_features(features, &map_feature, NULL);
  308. -
  309. - const LV2_Descriptor* desc = instance ? instance->lv2_descriptor : NULL;
  310. - const LV2_State_Interface* iface = (desc && desc->extension_data)
  311. - ? (const LV2_State_Interface*)desc->extension_data(LV2_STATE__interface)
  312. - : NULL;
  313. -
  314. if (iface) {
  315. - iface->restore(instance->lv2_handle, retrieve_callback,
  316. - (LV2_State_Handle)state, flags, sfeatures);
  317. + iface->restore(handle, retrieve_callback,
  318. + (LV2_State_Handle)state, flags, features);
  319. }
  320. - free(sfeatures);
  321. -
  322. if (set_value) {
  323. for (uint32_t i = 0; i < state->num_values; ++i) {
  324. const PortValue* val = &state->values[i];
  325. @@ -571,9 +559,9 @@ new_state_from_model(LilvWorld* world,
  326. }
  327. LILV_API LilvState*
  328. -lilv_state_new_from_world(LilvWorld* world,
  329. - LV2_URID_Map* map,
  330. - const LilvNode* node)
  331. +lilv_state_new_from_world(LilvWorld* world,
  332. + const LV2_URID_Map* map,
  333. + const LilvNode* node)
  334. {
  335. if (!lilv_node_is_uri(node) && !lilv_node_is_blank(node)) {
  336. LILV_ERRORF("Subject `%s' is not a URI or blank node.\n",
  337. @@ -588,10 +576,10 @@ lilv_state_new_from_world(LilvWorld* world,
  338. }
  339. LILV_API LilvState*
  340. -lilv_state_new_from_file(LilvWorld* world,
  341. - LV2_URID_Map* map,
  342. - const LilvNode* subject,
  343. - const char* path)
  344. +lilv_state_new_from_file(LilvWorld* world,
  345. + const LV2_URID_Map* map,
  346. + const LilvNode* subject,
  347. + const char* path)
  348. {
  349. if (subject && !lilv_node_is_uri(subject)
  350. && !lilv_node_is_blank(subject)) {
  351. @@ -641,9 +629,9 @@ set_prefixes(SerdEnv* env)
  352. }
  353. LILV_API LilvState*
  354. -lilv_state_new_from_string(LilvWorld* world,
  355. - LV2_URID_Map* map,
  356. - const char* str)
  357. +lilv_state_new_from_string(LilvWorld* world,
  358. + const LV2_URID_Map* map,
  359. + const char* str)
  360. {
  361. if (!str) {
  362. return NULL;
  363. diff --git a/source/modules/lilv/lilv-0.20.0/src/ui.c b/source/modules/lilv/lilv-0.20.0/src/ui.c
  364. index 0f4f2f6..a3e17da 100644
  365. --- a/source/modules/lilv/lilv-0.20.0/src/ui.c
  366. +++ b/source/modules/lilv/lilv-0.20.0/src/ui.c
  367. @@ -109,3 +109,54 @@ lilv_ui_get_binary_uri(const LilvUI* ui)
  368. {
  369. return ui->binary_uri;
  370. }
  371. +
  372. +static LilvNodes*
  373. +lilv_ui_get_value_internal(const LilvUI* ui, const SordNode* predicate)
  374. +{
  375. + assert(ui);
  376. + return lilv_world_find_nodes_internal(ui->world, ui->uri->node, predicate, NULL);
  377. +}
  378. +
  379. +LILV_API const LilvNodes*
  380. +lilv_ui_get_supported_features(const LilvUI* ui)
  381. +{
  382. + assert(ui);
  383. + LilvNodes* optional = lilv_ui_get_optional_features(ui);
  384. + LilvNodes* required = lilv_ui_get_required_features(ui);
  385. + LilvNodes* result = lilv_nodes_new();
  386. +
  387. + LILV_FOREACH(nodes, i, optional)
  388. + zix_tree_insert((ZixTree*)result, lilv_node_duplicate(lilv_nodes_get(optional, i)), NULL);
  389. +
  390. + LILV_FOREACH(nodes, i, required)
  391. + zix_tree_insert((ZixTree*)result, lilv_node_duplicate(lilv_nodes_get(required, i)), NULL);
  392. +
  393. + lilv_nodes_free(optional);
  394. + lilv_nodes_free(required);
  395. +
  396. + return result;
  397. +}
  398. +
  399. +LILV_API const LilvNodes*
  400. +lilv_ui_get_required_features(const LilvUI* ui)
  401. +{
  402. + assert(ui);
  403. + assert(ui->world);
  404. + return lilv_ui_get_value_internal(ui, ui->world->uris.lv2_requiredFeature);
  405. +}
  406. +
  407. +LILV_API const LilvNodes*
  408. +lilv_ui_get_optional_features(const LilvUI* ui)
  409. +{
  410. + assert(ui);
  411. + assert(ui->world);
  412. + return lilv_ui_get_value_internal(ui, ui->world->uris.lv2_optionalFeature);
  413. +}
  414. +
  415. +LILV_API const LilvNodes*
  416. +lilv_ui_get_extension_data(const LilvUI* ui)
  417. +{
  418. + assert(ui);
  419. + assert(ui->world);
  420. + return lilv_ui_get_value_internal(ui, ui->world->uris.lv2_extensionData);
  421. +}
  422. diff --git a/source/modules/lilv/lilv-0.20.0/src/util.c b/source/modules/lilv/lilv-0.20.0/src/util.c
  423. index f1c9c1c..7ca7ca0 100644
  424. --- a/source/modules/lilv/lilv-0.20.0/src/util.c
  425. +++ b/source/modules/lilv/lilv-0.20.0/src/util.c
  426. @@ -29,7 +29,6 @@
  427. #include <string.h>
  428. #ifdef _WIN32
  429. -# define _WIN32_WINNT 0x0600 /* for CreateSymbolicLink */
  430. # include <windows.h>
  431. # include <direct.h>
  432. # include <io.h>
  433. @@ -426,7 +425,7 @@ lilv_symlink(const char* oldpath, const char* newpath)
  434. int ret = 0;
  435. if (strcmp(oldpath, newpath)) {
  436. #ifdef _WIN32
  437. - ret = !CreateSymbolicLink(newpath, oldpath, 0);
  438. + ret = 0;
  439. #else
  440. ret = symlink(oldpath, newpath);
  441. #endif
  442. diff --git a/source/modules/lilv/lilv-0.20.0/src/world.c b/source/modules/lilv/lilv-0.20.0/src/world.c
  443. index 41fe16f..76db7fc 100644
  444. --- a/source/modules/lilv/lilv-0.20.0/src/world.c
  445. +++ b/source/modules/lilv/lilv-0.20.0/src/world.c
  446. @@ -19,7 +19,7 @@
  447. #include <stdlib.h>
  448. #include <string.h>
  449. -#include "lv2/lv2plug.in/ns/ext/presets/presets.h"
  450. +#include "lv2/presets.h"
  451. #include "lilv_internal.h"
  452. diff --git a/source/modules/lilv/sratom-0.4.6/sratom/sratom.h b/source/modules/lilv/sratom-0.4.6/sratom/sratom.h
  453. index bb1af95..67855d5 100644
  454. --- a/source/modules/lilv/sratom-0.4.6/sratom/sratom.h
  455. +++ b/source/modules/lilv/sratom-0.4.6/sratom/sratom.h
  456. @@ -23,9 +23,9 @@
  457. #include <stdint.h>
  458. -#include "lv2/lv2plug.in/ns/ext/urid/urid.h"
  459. -#include "lv2/lv2plug.in/ns/ext/atom/atom.h"
  460. -#include "lv2/lv2plug.in/ns/ext/atom/forge.h"
  461. +#include "lv2/atom.h"
  462. +#include "lv2/atom-forge.h"
  463. +#include "lv2/urid.h"
  464. #include "serd/serd.h"
  465. #include "sord/sord.h"
  466. diff --git a/source/modules/lilv/sratom-0.4.6/src/sratom.c b/source/modules/lilv/sratom-0.4.6/src/sratom.c
  467. index 4d8add7..555bbda 100644
  468. --- a/source/modules/lilv/sratom-0.4.6/src/sratom.c
  469. +++ b/source/modules/lilv/sratom-0.4.6/src/sratom.c
  470. @@ -22,9 +22,9 @@
  471. #include <stdlib.h>
  472. #include <string.h>
  473. -#include "lv2/lv2plug.in/ns/ext/atom/forge.h"
  474. -#include "lv2/lv2plug.in/ns/ext/atom/util.h"
  475. -#include "lv2/lv2plug.in/ns/ext/midi/midi.h"
  476. +#include "lv2/atom-forge.h"
  477. +#include "lv2/atom-util.h"
  478. +#include "lv2/midi.h"
  479. #include "sratom/sratom.h"