summaryrefslogtreecommitdiff
path: root/apps/plugins/searchengine/searchengine.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/searchengine/searchengine.c')
-rw-r--r--apps/plugins/searchengine/searchengine.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/plugins/searchengine/searchengine.c b/apps/plugins/searchengine/searchengine.c
index 8953ba7552..b585c25f13 100644
--- a/apps/plugins/searchengine/searchengine.c
+++ b/apps/plugins/searchengine/searchengine.c
@@ -21,6 +21,8 @@
21#include "token.h" 21#include "token.h"
22#include "dbinterface.h" 22#include "dbinterface.h"
23 23
24PLUGIN_HEADER
25
24void *audio_bufferbase; 26void *audio_bufferbase;
25void *audio_bufferpointer; 27void *audio_bufferpointer;
26unsigned int audio_buffer_free; 28unsigned int audio_buffer_free;
@@ -58,15 +60,10 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
58{ 60{
59 unsigned char *result,buf[500]; 61 unsigned char *result,buf[500];
60 int parsefd,hits; 62 int parsefd,hits;
61 /* this macro should be called as the first thing you do in the plugin.
62 it test that the api version and model the plugin was compiled for
63 matches the machine it is running on */
64 TEST_PLUGIN_API(api);
65
66 /* if you are using a global api pointer, don't forget to copy it! 63 /* if you are using a global api pointer, don't forget to copy it!
67 otherwise you will get lovely "I04: IllInstr" errors... :-) */ 64 otherwise you will get lovely "I04: IllInstr" errors... :-) */
68 rb = api; 65 rb = api;
69 66
70 audio_bufferbase=audio_bufferpointer=0; 67 audio_bufferbase=audio_bufferpointer=0;
71 audio_buffer_free=0; 68 audio_buffer_free=0;
72 69