Introduce __attribute__((unused)) (#defined to UNUSED_ATTR) to mark possibly unused...
[kugel-rb.git] / apps / plugins / searchengine / searchengine.h
blob090adb7051e2d073d5e2c425166a80962ebd6900
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2005 by Michiel van der Kolk
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 #ifndef SEARCHENGINE_H
22 #define SEARCHENGINE_H
23 #include <plugin.h>
24 #include <database.h>
25 #include <autoconf.h>
27 extern int w, h, y;
28 #ifdef HAVE_LCD_BITMAP
29 #define PUTS(str) do { \
30 rb->lcd_putsxy(1, y, str); \
31 rb->lcd_getstringsize(str, &w, &h); \
32 y += h + 1; \
33 } while (0); \
34 rb->lcd_update()
35 #else
36 #define PUTS(str) do { \
37 rb->lcd_puts(0, y, str); \
38 y = (y + 1) % 2; \
39 } while (0); \
40 rb->lcd_update()
41 #endif
43 void *my_malloc(size_t size);
44 void setmallocpos(void *pointer);
46 #endif