blob: 900d4e29767350b6a66163f509dc5c3e88af17eb [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 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012 * 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.
Michiel Van Der Kolk9369d482005-04-28 12:33:38 +000016 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21#ifndef SEARCHENGINE_H
22#define SEARCHENGINE_H
23#include <plugin.h>
24#include <database.h>
Michiel Van Der Kolk4350eec2005-04-28 14:06:20 +000025#include <autoconf.h>
Michiel Van Der Kolk9369d482005-04-28 12:33:38 +000026
27extern int w, h, y;
Jens Arnold6752d132005-04-28 18:01:29 +000028#ifdef HAVE_LCD_BITMAP
Michiel Van Der Kolk9369d482005-04-28 12:33:38 +000029#define PUTS(str) do { \
Michiel Van Der Kolkec407a82005-04-29 21:02:17 +000030 rb->lcd_putsxy(1, y, str); \
31 rb->lcd_getstringsize(str, &w, &h); \
32 y += h + 1; \
Michiel Van Der Kolk9369d482005-04-28 12:33:38 +000033} while (0); \
34rb->lcd_update()
Jens Arnold6752d132005-04-28 18:01:29 +000035#else
36#define PUTS(str) do { \
Michiel Van Der Kolkec407a82005-04-29 21:02:17 +000037 rb->lcd_puts(0, y, str); \
38 y = (y + 1) % 2; \
Jens Arnoldf9b90e92007-04-06 22:55:00 +000039} while (0); \
40rb->lcd_update()
Jens Arnold6752d132005-04-28 18:01:29 +000041#endif
Michiel Van Der Kolk9369d482005-04-28 12:33:38 +000042
Steve Bavin65265772008-05-13 09:57:56 +000043extern const struct plugin_api* rb;
Michiel Van Der Kolk9369d482005-04-28 12:33:38 +000044
45void *my_malloc(size_t size);
46void setmallocpos(void *pointer);
47
48#endif