aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ladspa/0002-plugin-constructor-destructor.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/ladspa/0002-plugin-constructor-destructor.patch')
-rw-r--r--testing/ladspa/0002-plugin-constructor-destructor.patch119
1 files changed, 0 insertions, 119 deletions
diff --git a/testing/ladspa/0002-plugin-constructor-destructor.patch b/testing/ladspa/0002-plugin-constructor-destructor.patch
deleted file mode 100644
index f0061e823d..0000000000
--- a/testing/ladspa/0002-plugin-constructor-destructor.patch
+++ /dev/null
@@ -1,119 +0,0 @@
-From d281f99e3776027e98f3b9d952fad0d456a75b8a Mon Sep 17 00:00:00 2001
-From: Natanael Copa <ncopa@alpinelinux.org>
-Date: Sat, 4 Feb 2012 22:04:33 +0000
-Subject: [PATCH 2/3] plugin constructor destructor
-
----
- src/plugins/amp.c | 8 ++++----
- src/plugins/delay.c | 8 ++++----
- src/plugins/filter.c | 8 ++++----
- src/plugins/noise.c | 8 ++++----
- 4 files changed, 16 insertions(+), 16 deletions(-)
-
-diff --git a/src/plugins/amp.c b/src/plugins/amp.c
-index b6d2345..a447fa1 100644
---- a/src/plugins/amp.c
-+++ b/src/plugins/amp.c
-@@ -152,8 +152,8 @@ LADSPA_Descriptor * g_psStereoDescriptor = NULL;
-
- /* _init() is called automatically when the plugin library is first
- loaded. */
--void
--_init() {
-+void __attribute__ ((constructor))
-+my_init() {
-
- char ** pcPortNames;
- LADSPA_PortDescriptor * piPortDescriptors;
-@@ -335,8 +335,8 @@ deleteDescriptor(LADSPA_Descriptor * psDescriptor) {
- /*****************************************************************************/
-
- /* _fini() is called automatically when the library is unloaded. */
--void
--_fini() {
-+void __attribute__ ((destructor))
-+my_fini() {
- deleteDescriptor(g_psMonoDescriptor);
- deleteDescriptor(g_psStereoDescriptor);
- }
-diff --git a/src/plugins/delay.c b/src/plugins/delay.c
-index 8b03979..22e477b 100644
---- a/src/plugins/delay.c
-+++ b/src/plugins/delay.c
-@@ -228,8 +228,8 @@ LADSPA_Descriptor * g_psDescriptor = NULL;
-
- /* _init() is called automatically when the plugin library is first
- loaded. */
--void
--_init() {
-+void __attribute__ ((constructor))
-+my_init() {
-
- char ** pcPortNames;
- LADSPA_PortDescriptor * piPortDescriptors;
-@@ -322,8 +322,8 @@ _init() {
- /*****************************************************************************/
-
- /* _fini() is called automatically when the library is unloaded. */
--void
--_fini() {
-+void __attribute__ ((destructor))
-+my_fini() {
- long lIndex;
- if (g_psDescriptor) {
- free((char *)g_psDescriptor->Label);
-diff --git a/src/plugins/filter.c b/src/plugins/filter.c
-index 3f50457..06f7bc6 100644
---- a/src/plugins/filter.c
-+++ b/src/plugins/filter.c
-@@ -252,8 +252,8 @@ LADSPA_Descriptor * g_psHPFDescriptor = NULL;
-
- /* _init() is called automatically when the plugin library is first
- loaded. */
--void
--_init() {
-+void __attribute__ ((constructor))
-+my_init() {
-
- char ** pcPortNames;
- LADSPA_PortDescriptor * piPortDescriptors;
-@@ -431,8 +431,8 @@ deleteDescriptor(LADSPA_Descriptor * psDescriptor) {
- /*****************************************************************************/
-
- /* _fini() is called automatically when the library is unloaded. */
--void
--_fini() {
-+void __attribute__ ((destructor))
-+my_fini() {
- deleteDescriptor(g_psLPFDescriptor);
- deleteDescriptor(g_psHPFDescriptor);
- }
-diff --git a/src/plugins/noise.c b/src/plugins/noise.c
-index 0fdd938..de6fc81 100644
---- a/src/plugins/noise.c
-+++ b/src/plugins/noise.c
-@@ -142,8 +142,8 @@ LADSPA_Descriptor * g_psDescriptor;
-
- /* _init() is called automatically when the plugin library is first
- loaded. */
--void
--_init() {
-+void __attribute__ ((constructor))
-+my_init() {
-
- char ** pcPortNames;
- LADSPA_PortDescriptor * piPortDescriptors;
-@@ -219,8 +219,8 @@ _init() {
- /*****************************************************************************/
-
- /* _fini() is called automatically when the library is unloaded. */
--void
--_fini() {
-+void __attribute__ ((destructor))
-+my_fini() {
- long lIndex;
- if (g_psDescriptor) {
- free((char *)g_psDescriptor->Label);
---
-1.7.9
-