summaryrefslogtreecommitdiffstats
path: root/src/plugin.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-12-11 14:30:13 -0500
committerDavid Robillard <d@drobilla.net>2024-12-11 14:57:06 -0500
commit8ce82a873ac1667ee4cbdc83b812a91e4ada0edf (patch)
tree9b9ca40afd075df80d5addc7a1408a70a0755687 /src/plugin.c
parentb1b2a693ba14627a2170cecfd7ece313224888cd (diff)
downloadlilv-8ce82a873ac1667ee4cbdc83b812a91e4ada0edf.tar.gz
lilv-8ce82a873ac1667ee4cbdc83b812a91e4ada0edf.tar.bz2
lilv-8ce82a873ac1667ee4cbdc83b812a91e4ada0edf.zip
Add dylib abstraction to isolate platform-specific code
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/plugin.c b/src/plugin.c
index abb6b31..d828f6f 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -3,6 +3,11 @@
#include "lilv_internal.h"
+#ifdef LILV_DYN_MANIFEST
+# include "dylib.h"
+# include <lv2/dynmanifest/dynmanifest.h>
+#endif
+
#include <lilv/lilv.h>
#include <lv2/core/lv2.h>
#include <lv2/ui/ui.h>
@@ -10,10 +15,6 @@
#include <sord/sord.h>
#include <zix/tree.h>
-#ifdef LILV_DYN_MANIFEST
-# include <lv2/dynmanifest/dynmanifest.h>
-#endif
-
#include <math.h>
#include <stdarg.h>
#include <stdbool.h>
@@ -212,7 +213,7 @@ lilv_plugin_load(LilvPlugin* plugin)
if (plugin->dynmanifest) {
typedef int (*GetDataFunc)(
LV2_Dyn_Manifest_Handle handle, FILE* fp, const char* uri);
- GetDataFunc get_data_func = (GetDataFunc)lilv_dlfunc(
+ GetDataFunc get_data_func = (GetDataFunc)dylib_func(
plugin->dynmanifest->lib, "lv2_dyn_manifest_get_data");
if (get_data_func) {
const SordNode* bundle = plugin->dynmanifest->bundle->node;