2005-04-28 12:33:38 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
2005-04-28 14:06:20 +00:00
|
|
|
* $Id$
|
2005-04-28 12:33:38 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2005 by Michiel van der Kolk
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2005-04-28 12:33:38 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef SEARCHENGINE_H
|
|
|
|
#define SEARCHENGINE_H
|
|
|
|
#include <plugin.h>
|
|
|
|
#include <database.h>
|
2005-04-28 14:06:20 +00:00
|
|
|
#include <autoconf.h>
|
2005-04-28 12:33:38 +00:00
|
|
|
|
|
|
|
extern int w, h, y;
|
2005-04-28 18:01:29 +00:00
|
|
|
#ifdef HAVE_LCD_BITMAP
|
2005-04-28 12:33:38 +00:00
|
|
|
#define PUTS(str) do { \
|
2005-04-29 21:02:17 +00:00
|
|
|
rb->lcd_putsxy(1, y, str); \
|
|
|
|
rb->lcd_getstringsize(str, &w, &h); \
|
|
|
|
y += h + 1; \
|
2005-04-28 12:33:38 +00:00
|
|
|
} while (0); \
|
|
|
|
rb->lcd_update()
|
2005-04-28 18:01:29 +00:00
|
|
|
#else
|
|
|
|
#define PUTS(str) do { \
|
2005-04-29 21:02:17 +00:00
|
|
|
rb->lcd_puts(0, y, str); \
|
|
|
|
y = (y + 1) % 2; \
|
2007-04-06 22:55:00 +00:00
|
|
|
} while (0); \
|
|
|
|
rb->lcd_update()
|
2005-04-28 18:01:29 +00:00
|
|
|
#endif
|
2005-04-28 12:33:38 +00:00
|
|
|
|
|
|
|
void *my_malloc(size_t size);
|
|
|
|
void setmallocpos(void *pointer);
|
|
|
|
|
|
|
|
#endif
|