Created
July 3, 2010 20:41
-
-
Save taybin/462824 to your computer and use it in GitHub Desktop.
remove deprecated library initializers from ladspa_sdk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/plugins/amp.so b/plugins/amp.so | |
index 2d0f2dd..f6e5de3 100755 | |
Binary files a/plugins/amp.so and b/plugins/amp.so differ | |
diff --git a/plugins/delay.so b/plugins/delay.so | |
index de567c2..8119c46 100755 | |
Binary files a/plugins/delay.so and b/plugins/delay.so differ | |
diff --git a/plugins/filter.so b/plugins/filter.so | |
index 53e36dc..7043920 100755 | |
Binary files a/plugins/filter.so and b/plugins/filter.so differ | |
diff --git a/plugins/noise.so b/plugins/noise.so | |
index 1a435dd..58e4383 100755 | |
Binary files a/plugins/noise.so and b/plugins/noise.so differ | |
diff --git a/src/plugins/amp.c b/src/plugins/amp.c | |
index b6d2345..eddc635 100644 | |
--- a/src/plugins/amp.c | |
+++ b/src/plugins/amp.c | |
@@ -153,7 +153,7 @@ LADSPA_Descriptor * g_psStereoDescriptor = NULL; | |
/* _init() is called automatically when the plugin library is first | |
loaded. */ | |
void | |
-_init() { | |
+__attribute__((constructor))init() { | |
char ** pcPortNames; | |
LADSPA_PortDescriptor * piPortDescriptors; | |
@@ -336,7 +336,7 @@ deleteDescriptor(LADSPA_Descriptor * psDescriptor) { | |
/* _fini() is called automatically when the library is unloaded. */ | |
void | |
-_fini() { | |
+__attribute((destructor))fini() { | |
deleteDescriptor(g_psMonoDescriptor); | |
deleteDescriptor(g_psStereoDescriptor); | |
} | |
diff --git a/src/plugins/amp.o b/src/plugins/amp.o | |
index 271d720..2cc0295 100644 | |
Binary files a/src/plugins/amp.o and b/src/plugins/amp.o differ | |
diff --git a/src/plugins/delay.c b/src/plugins/delay.c | |
index 8b03979..35172fe 100644 | |
--- a/src/plugins/delay.c | |
+++ b/src/plugins/delay.c | |
@@ -229,7 +229,7 @@ LADSPA_Descriptor * g_psDescriptor = NULL; | |
/* _init() is called automatically when the plugin library is first | |
loaded. */ | |
void | |
-_init() { | |
+__attribute__((constructor))init() { | |
char ** pcPortNames; | |
LADSPA_PortDescriptor * piPortDescriptors; | |
@@ -323,7 +323,7 @@ _init() { | |
/* _fini() is called automatically when the library is unloaded. */ | |
void | |
-_fini() { | |
+__attribute__((destructor))fini() { | |
long lIndex; | |
if (g_psDescriptor) { | |
free((char *)g_psDescriptor->Label); | |
diff --git a/src/plugins/delay.o b/src/plugins/delay.o | |
index 63bac48..00be896 100644 | |
Binary files a/src/plugins/delay.o and b/src/plugins/delay.o differ | |
diff --git a/src/plugins/filter.c b/src/plugins/filter.c | |
index 3f50457..5a907a1 100644 | |
--- a/src/plugins/filter.c | |
+++ b/src/plugins/filter.c | |
@@ -253,7 +253,7 @@ LADSPA_Descriptor * g_psHPFDescriptor = NULL; | |
/* _init() is called automatically when the plugin library is first | |
loaded. */ | |
void | |
-_init() { | |
+__attribute__((constructor))init() { | |
char ** pcPortNames; | |
LADSPA_PortDescriptor * piPortDescriptors; | |
@@ -432,7 +432,7 @@ deleteDescriptor(LADSPA_Descriptor * psDescriptor) { | |
/* _fini() is called automatically when the library is unloaded. */ | |
void | |
-_fini() { | |
+__attribute__((destructor))fini() { | |
deleteDescriptor(g_psLPFDescriptor); | |
deleteDescriptor(g_psHPFDescriptor); | |
} | |
diff --git a/src/plugins/filter.o b/src/plugins/filter.o | |
index 5e0c553..974b4a9 100644 | |
Binary files a/src/plugins/filter.o and b/src/plugins/filter.o differ | |
diff --git a/src/plugins/noise.c b/src/plugins/noise.c | |
index 0fdd938..4c7920f 100644 | |
--- a/src/plugins/noise.c | |
+++ b/src/plugins/noise.c | |
@@ -143,7 +143,7 @@ LADSPA_Descriptor * g_psDescriptor; | |
/* _init() is called automatically when the plugin library is first | |
loaded. */ | |
void | |
-_init() { | |
+__attribute__((constructor))init() { | |
char ** pcPortNames; | |
LADSPA_PortDescriptor * piPortDescriptors; | |
@@ -220,7 +220,7 @@ _init() { | |
/* _fini() is called automatically when the library is unloaded. */ | |
void | |
-_fini() { | |
+__attribute__((destructor))fini() { | |
long lIndex; | |
if (g_psDescriptor) { | |
free((char *)g_psDescriptor->Label); | |
diff --git a/src/plugins/noise.o b/src/plugins/noise.o | |
index 1261a94..5c3f5d8 100644 | |
Binary files a/src/plugins/noise.o and b/src/plugins/noise.o differ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment