Michiel Van Der Kolk | 9369d48 | 2005-04-28 12:33:38 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
Michiel Van Der Kolk | 4350eec | 2005-04-28 14:06:20 +0000 | [diff] [blame] | 8 | * $Id$ |
Michiel Van Der Kolk | 9369d48 | 2005-04-28 12:33:38 +0000 | [diff] [blame] | 9 | * |
| 10 | * Copyright (C) 2005 by Michiel van der Kolk |
| 11 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 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. |
Michiel Van Der Kolk | 9369d48 | 2005-04-28 12:33:38 +0000 | [diff] [blame] | 16 | * |
| 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 Kolk | 4350eec | 2005-04-28 14:06:20 +0000 | [diff] [blame] | 25 | #include <autoconf.h> |
Michiel Van Der Kolk | 9369d48 | 2005-04-28 12:33:38 +0000 | [diff] [blame] | 26 | |
| 27 | extern int w, h, y; |
Jens Arnold | 6752d13 | 2005-04-28 18:01:29 +0000 | [diff] [blame] | 28 | #ifdef HAVE_LCD_BITMAP |
Michiel Van Der Kolk | 9369d48 | 2005-04-28 12:33:38 +0000 | [diff] [blame] | 29 | #define PUTS(str) do { \ |
Michiel Van Der Kolk | ec407a8 | 2005-04-29 21:02:17 +0000 | [diff] [blame] | 30 | rb->lcd_putsxy(1, y, str); \ |
| 31 | rb->lcd_getstringsize(str, &w, &h); \ |
| 32 | y += h + 1; \ |
Michiel Van Der Kolk | 9369d48 | 2005-04-28 12:33:38 +0000 | [diff] [blame] | 33 | } while (0); \ |
| 34 | rb->lcd_update() |
Jens Arnold | 6752d13 | 2005-04-28 18:01:29 +0000 | [diff] [blame] | 35 | #else |
| 36 | #define PUTS(str) do { \ |
Michiel Van Der Kolk | ec407a8 | 2005-04-29 21:02:17 +0000 | [diff] [blame] | 37 | rb->lcd_puts(0, y, str); \ |
| 38 | y = (y + 1) % 2; \ |
Jens Arnold | f9b90e9 | 2007-04-06 22:55:00 +0000 | [diff] [blame] | 39 | } while (0); \ |
| 40 | rb->lcd_update() |
Jens Arnold | 6752d13 | 2005-04-28 18:01:29 +0000 | [diff] [blame] | 41 | #endif |
Michiel Van Der Kolk | 9369d48 | 2005-04-28 12:33:38 +0000 | [diff] [blame] | 42 | |
Steve Bavin | 6526577 | 2008-05-13 09:57:56 +0000 | [diff] [blame] | 43 | extern const struct plugin_api* rb; |
Michiel Van Der Kolk | 9369d48 | 2005-04-28 12:33:38 +0000 | [diff] [blame] | 44 | |
| 45 | void *my_malloc(size_t size); |
| 46 | void setmallocpos(void *pointer); |
| 47 | |
| 48 | #endif |