summaryrefslogtreecommitdiffstats
path: root/noatun-plugins
diff options
context:
space:
mode:
Diffstat (limited to 'noatun-plugins')
-rw-r--r--noatun-plugins/alarm/wakeup.cpp9
-rw-r--r--noatun-plugins/alsaplayer/alsaplayerui.cpp2
-rw-r--r--noatun-plugins/blurscope/sdlscope.cpp8
-rw-r--r--noatun-plugins/charlatan/charlatanui.cpp2
-rw-r--r--noatun-plugins/dub/dub/dubplaylist.cpp11
-rw-r--r--noatun-plugins/ffrs/ffrs.cpp9
-rw-r--r--noatun-plugins/luckytag/luckytag.cpp7
-rw-r--r--noatun-plugins/lyrics/lyrics.cpp10
-rw-r--r--noatun-plugins/nexscope/noatunplugin.cpp10
-rw-r--r--noatun-plugins/noatunmadness/madness.cpp8
-rw-r--r--noatun-plugins/oblique/oblique.cpp8
-rw-r--r--noatun-plugins/pitchablespeed/pitchablespeed.cpp2
-rw-r--r--noatun-plugins/synaescope/synaescope.cpp2
-rw-r--r--noatun-plugins/tippercanoe/synaescope.cpp9
-rw-r--r--noatun-plugins/tyler/file.cpp65
-rw-r--r--noatun-plugins/tyler/tyler.cpp9
-rw-r--r--noatun-plugins/wavecapture/wavecapture.cpp2
17 files changed, 106 insertions, 67 deletions
diff --git a/noatun-plugins/alarm/wakeup.cpp b/noatun-plugins/alarm/wakeup.cpp
index 137a3aa..fabec0a 100644
--- a/noatun-plugins/alarm/wakeup.cpp
+++ b/noatun-plugins/alarm/wakeup.cpp
@@ -39,10 +39,13 @@
#include "kminutespinbox.h"
#include "kpercentspinbox.h"
-extern "C" Plugin *create_plugin()
+extern "C"
{
- TDEGlobal::locale()->insertCatalogue("wakeup");
- return new Wakeup();
+ KDE_EXPORT Plugin* create_plugin()
+ {
+ TDEGlobal::locale()->insertCatalogue("wakeup");
+ return new Wakeup();
+ }
}
Wakeup *Wakeup::wakeme = 0;
diff --git a/noatun-plugins/alsaplayer/alsaplayerui.cpp b/noatun-plugins/alsaplayer/alsaplayerui.cpp
index 6f15b4d..84c92e0 100644
--- a/noatun-plugins/alsaplayer/alsaplayerui.cpp
+++ b/noatun-plugins/alsaplayer/alsaplayerui.cpp
@@ -25,7 +25,7 @@
extern "C"
{
- Plugin * create_plugin()
+ KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("alsaplayerui");
return new AlsaPlayer;
diff --git a/noatun-plugins/blurscope/sdlscope.cpp b/noatun-plugins/blurscope/sdlscope.cpp
index 9485c1f..1d153a3 100644
--- a/noatun-plugins/blurscope/sdlscope.cpp
+++ b/noatun-plugins/blurscope/sdlscope.cpp
@@ -29,10 +29,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
extern "C"
{
-Plugin *create_plugin()
-{
- return new SDLScope();
-}
+ KDE_EXPORT Plugin* create_plugin()
+ {
+ return new SDLScope();
+ }
}
SDLScope::SDLScope()
diff --git a/noatun-plugins/charlatan/charlatanui.cpp b/noatun-plugins/charlatan/charlatanui.cpp
index b3e69db..b1ec9ec 100644
--- a/noatun-plugins/charlatan/charlatanui.cpp
+++ b/noatun-plugins/charlatan/charlatanui.cpp
@@ -25,7 +25,7 @@
extern "C"
{
- Plugin * create_plugin()
+ KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("charlatanui");
return new Charlatan;
diff --git a/noatun-plugins/dub/dub/dubplaylist.cpp b/noatun-plugins/dub/dub/dubplaylist.cpp
index 20537a7..a8e91df 100644
--- a/noatun-plugins/dub/dub/dubplaylist.cpp
+++ b/noatun-plugins/dub/dub/dubplaylist.cpp
@@ -24,11 +24,14 @@
#include "dubplaylist.h"
// plugin interface
-extern "C" Plugin *create_plugin()
+extern "C"
{
- TDEGlobal::locale()->insertCatalogue("dub");
- DubPlaylist* dub = new DubPlaylist;
- return dub;
+ KDE_EXPORT Plugin* create_plugin()
+ {
+ TDEGlobal::locale()->insertCatalogue("dub");
+ DubPlaylist* dub = new DubPlaylist;
+ return dub;
+ }
}
/** Construct playlist object */
diff --git a/noatun-plugins/ffrs/ffrs.cpp b/noatun-plugins/ffrs/ffrs.cpp
index 1d219fa..ae2a243 100644
--- a/noatun-plugins/ffrs/ffrs.cpp
+++ b/noatun-plugins/ffrs/ffrs.cpp
@@ -14,10 +14,13 @@
#include "ffrs.h"
-extern "C" Plugin *create_plugin()
+extern "C"
{
- TDEGlobal::locale()->insertCatalogue("ffrs");
- return new FFRS();
+ KDE_EXPORT Plugin* create_plugin()
+ {
+ TDEGlobal::locale()->insertCatalogue("ffrs");
+ return new FFRS();
+ }
}
diff --git a/noatun-plugins/luckytag/luckytag.cpp b/noatun-plugins/luckytag/luckytag.cpp
index d040659..e30ab8d 100644
--- a/noatun-plugins/luckytag/luckytag.cpp
+++ b/noatun-plugins/luckytag/luckytag.cpp
@@ -23,9 +23,12 @@
#include "luckytag.h"
#include "parsedmp3filename.h"
-extern "C" Plugin *create_plugin()
+extern "C"
{
- return new LuckyTagger;
+ KDE_EXPORT Plugin* create_plugin()
+ {
+ return new LuckyTagger;
+ }
}
LuckyTagger::LuckyTagger(void) : Tags(-10)
diff --git a/noatun-plugins/lyrics/lyrics.cpp b/noatun-plugins/lyrics/lyrics.cpp
index df5051d..ad65194 100644
--- a/noatun-plugins/lyrics/lyrics.cpp
+++ b/noatun-plugins/lyrics/lyrics.cpp
@@ -14,11 +14,11 @@
extern "C"
{
- Plugin *create_plugin()
- {
- TDEGlobal::locale()->insertCatalogue("lyrics");
- return new Lyrics();
- }
+ KDE_EXPORT Plugin* create_plugin()
+ {
+ TDEGlobal::locale()->insertCatalogue("lyrics");
+ return new Lyrics();
+ }
}
Lyrics *lyrics;
diff --git a/noatun-plugins/nexscope/noatunplugin.cpp b/noatun-plugins/nexscope/noatunplugin.cpp
index 25deaf6..cb5f9c6 100644
--- a/noatun-plugins/nexscope/noatunplugin.cpp
+++ b/noatun-plugins/nexscope/noatunplugin.cpp
@@ -8,11 +8,11 @@
extern "C"
{
-Plugin *create_plugin()
-{
- TDEGlobal::locale()->insertCatalogue("nexscope");
- return new NexPlugin();
-}
+ KDE_EXPORT Plugin* create_plugin()
+ {
+ TDEGlobal::locale()->insertCatalogue("nexscope");
+ return new NexPlugin();
+ }
}
diff --git a/noatun-plugins/noatunmadness/madness.cpp b/noatun-plugins/noatunmadness/madness.cpp
index 32014f6..07a3581 100644
--- a/noatun-plugins/noatunmadness/madness.cpp
+++ b/noatun-plugins/noatunmadness/madness.cpp
@@ -21,10 +21,10 @@ RMS's novel that I'm supposed to put at the top of every story. He's insane.
extern "C"
{
-Plugin *create_plugin()
-{
- return new Madness();
-}
+ KDE_EXPORT Plugin* create_plugin()
+ {
+ return new Madness();
+ }
}
Madness::Madness()
diff --git a/noatun-plugins/oblique/oblique.cpp b/noatun-plugins/oblique/oblique.cpp
index 2c12588..a74ce3b 100644
--- a/noatun-plugins/oblique/oblique.cpp
+++ b/noatun-plugins/oblique/oblique.cpp
@@ -17,13 +17,15 @@
#include <tqtimer.h>
-extern "C" Plugin *create_plugin()
+extern "C"
{
- return new Oblique();
+ KDE_EXPORT Plugin* create_plugin()
+ {
+ return new Oblique();
+ }
}
-
Oblique::Oblique()
: Playlist(0, 0), mSchemaCollection("oblique/schemas")
{
diff --git a/noatun-plugins/pitchablespeed/pitchablespeed.cpp b/noatun-plugins/pitchablespeed/pitchablespeed.cpp
index 5ebaf27..54527bf 100644
--- a/noatun-plugins/pitchablespeed/pitchablespeed.cpp
+++ b/noatun-plugins/pitchablespeed/pitchablespeed.cpp
@@ -25,7 +25,7 @@
extern "C"
{
- Plugin *create_plugin()
+ KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("pitchablespeed");
return new PitchableSpeed();
diff --git a/noatun-plugins/synaescope/synaescope.cpp b/noatun-plugins/synaescope/synaescope.cpp
index e69e7af..1249953 100644
--- a/noatun-plugins/synaescope/synaescope.cpp
+++ b/noatun-plugins/synaescope/synaescope.cpp
@@ -15,7 +15,7 @@
extern "C"
{
- Plugin *create_plugin()
+ KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("synaescope");
return new SynaeScope();
diff --git a/noatun-plugins/tippercanoe/synaescope.cpp b/noatun-plugins/tippercanoe/synaescope.cpp
index 6100796..a95658b 100644
--- a/noatun-plugins/tippercanoe/synaescope.cpp
+++ b/noatun-plugins/tippercanoe/synaescope.cpp
@@ -19,10 +19,13 @@
#include "syna.h"
#include "synaescope.h"
-extern "C" Plugin *create_plugin()
+extern "C"
{
- TDEGlobal::locale()->insertCatalogue("tippecanoe");
- return new SynaeScope();
+ KDE_EXPORT Plugin* create_plugin()
+ {
+ TDEGlobal::locale()->insertCatalogue("tippecanoe");
+ return new SynaeScope();
+ }
}
SynaeScope::SynaeScope()
diff --git a/noatun-plugins/tyler/file.cpp b/noatun-plugins/tyler/file.cpp
index 432a7be..79fb663 100644
--- a/noatun-plugins/tyler/file.cpp
+++ b/noatun-plugins/tyler/file.cpp
@@ -39,43 +39,62 @@ static TQString getSavePath(void)
return dirs.saveLocation("data", "noatun/") + "tylerstates";
}
-extern "C" void save_effect(t_effect *effect)
+extern "C"
{
- TQFile file(getSavePath());
- if(!file.open(IO_WriteOnly))
- return;
+ KDE_EXPORT void save_effect(t_effect *effect)
+ {
+ TQFile file(getSavePath());
+ if(!file.open(IO_WriteOnly))
+ {
+ return;
+ }
- for(unsigned i = 0; i < sizeof(t_effect); i++)
- file.putch( *((byte *)effect + i) );
+ for(unsigned i = 0; i < sizeof(t_effect); i++)
+ {
+ file.putch( *((byte *)effect + i) );
+ }
+ }
}
t_effect effects[100];
int nb_effects=0;
-extern "C" void load_effects()
+extern "C"
{
- TQFile file(getDataPath());
- if(!file.open(IO_ReadOnly))
- exit(1);
-
- unsigned int i;
- nb_effects = 0;
- while(!file.atEnd())
+ KDE_EXPORT void load_effects()
{
- byte* ptr_effect = (byte *)&effects[nb_effects++];
- for(i = 0; i < sizeof(t_effect); i++)
- ptr_effect[i] = file.getch();
+ TQFile file(getDataPath());
+ if(!file.open(IO_ReadOnly))
+ {
+ exit(1);
+ }
+
+ unsigned int i;
+ nb_effects = 0;
+ while(!file.atEnd())
+ {
+ byte* ptr_effect = (byte *)&effects[nb_effects++];
+ for(i = 0; i < sizeof(t_effect); i++)
+ {
+ ptr_effect[i] = file.getch();
+ }
+ }
}
}
-extern "C" void load_random_effect(t_effect *effect)
+extern "C"
{
- if(nb_effects > 0)
+ KDE_EXPORT void load_random_effect(t_effect *effect)
{
- int num_effect = rand() % nb_effects;
- unsigned int i;
+ if(nb_effects > 0)
+ {
+ int num_effect = rand() % nb_effects;
+ unsigned int i;
- for(i = 0; i < sizeof(t_effect) ; i++)
- *((byte*)effect+i)=*((byte*)(&effects[num_effect])+i);
+ for(i = 0; i < sizeof(t_effect) ; i++)
+ {
+ *((byte*)effect+i) = *((byte*)(&effects[num_effect])+i);
+ }
+ }
}
}
diff --git a/noatun-plugins/tyler/tyler.cpp b/noatun-plugins/tyler/tyler.cpp
index 022f22a..d7690bb 100644
--- a/noatun-plugins/tyler/tyler.cpp
+++ b/noatun-plugins/tyler/tyler.cpp
@@ -12,10 +12,13 @@
#include <noatun/app.h>
#include <kdebug.h>
-extern "C" Plugin *create_plugin()
+extern "C"
{
- TDEGlobal::locale()->insertCatalogue("tyler");
- return new Tyler();
+ KDE_EXPORT Plugin* create_plugin()
+ {
+ TDEGlobal::locale()->insertCatalogue("tyler");
+ return new Tyler();
+ }
}
const int Tyler::bufferSize = 512;
diff --git a/noatun-plugins/wavecapture/wavecapture.cpp b/noatun-plugins/wavecapture/wavecapture.cpp
index a138103..8178ba1 100644
--- a/noatun-plugins/wavecapture/wavecapture.cpp
+++ b/noatun-plugins/wavecapture/wavecapture.cpp
@@ -42,7 +42,7 @@
extern "C"
{
- Plugin *create_plugin()
+ KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("wavecapture");
return new WaveCapture();