blob: 18b68a8b35ccbd9853b08164d6400e0c26290494 [file] [log] [blame]
Michiel Van Der Kolk9369d482005-04-28 12:33:38 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
Michiel Van Der Kolk4350eec2005-04-28 14:06:20 +00008 * $Id$
Michiel Van Der Kolk9369d482005-04-28 12:33:38 +00009 *
10 * Copyright (C) 2005 by Michiel van der Kolk
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19#ifndef SEARCHENGINE_H
20#define SEARCHENGINE_H
21#include <plugin.h>
22#include <database.h>
Michiel Van Der Kolk4350eec2005-04-28 14:06:20 +000023#include <autoconf.h>
Michiel Van Der Kolk9369d482005-04-28 12:33:38 +000024
25extern int w, h, y;
Jens Arnold6752d132005-04-28 18:01:29 +000026#ifdef HAVE_LCD_BITMAP
Michiel Van Der Kolk9369d482005-04-28 12:33:38 +000027#define PUTS(str) do { \
Michiel Van Der Kolkec407a82005-04-29 21:02:17 +000028 rb->lcd_putsxy(1, y, str); \
29 rb->lcd_getstringsize(str, &w, &h); \
30 y += h + 1; \
Michiel Van Der Kolk9369d482005-04-28 12:33:38 +000031} while (0); \
32rb->lcd_update()
Jens Arnold6752d132005-04-28 18:01:29 +000033#else
34#define PUTS(str) do { \
Michiel Van Der Kolkec407a82005-04-29 21:02:17 +000035 rb->lcd_puts(0, y, str); \
36 y = (y + 1) % 2; \
Jens Arnold6752d132005-04-28 18:01:29 +000037} while (0);
38#endif
Michiel Van Der Kolk9369d482005-04-28 12:33:38 +000039
40extern struct plugin_api* rb;
41
42void *my_malloc(size_t size);
43void setmallocpos(void *pointer);
44
45#endif