2008-11-30 22:31:20 +00:00
|
|
|
/** \file server/driver.h
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* This file is part of LCDd, the lcdproc server.
|
2001-12-30 00:15:25 +00:00
|
|
|
*
|
2008-11-30 22:31:20 +00:00
|
|
|
* This file is released under the GNU General Public License.
|
|
|
|
|
* Refer to the COPYING file distributed with this package.
|
2001-12-30 00:15:25 +00:00
|
|
|
*
|
|
|
|
|
* Copyright (c) 2001, Joris Robijn
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef DRIVER_H
|
|
|
|
|
#define DRIVER_H
|
|
|
|
|
|
|
|
|
|
#include "drivers/lcd.h"
|
|
|
|
|
|
2012-02-22 22:25:32 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
|
# include "config.h"
|
2002-05-26 19:21:23 +00:00
|
|
|
#endif
|
2012-02-22 22:25:32 +00:00
|
|
|
#ifdef HAVE_STDBOOL_H
|
|
|
|
|
# include <stdbool.h>
|
|
|
|
|
#endif
|
|
|
|
|
#include "shared/defines.h"
|
2001-12-30 00:15:25 +00:00
|
|
|
|
|
|
|
|
Driver *
|
2007-04-02 21:29:53 +00:00
|
|
|
driver_load(const char *name, const char *filename);
|
2001-12-30 00:15:25 +00:00
|
|
|
|
|
|
|
|
int
|
2007-04-02 21:29:53 +00:00
|
|
|
driver_unload(Driver *driver);
|
2001-12-30 00:15:25 +00:00
|
|
|
|
|
|
|
|
int
|
2007-04-02 21:29:53 +00:00
|
|
|
driver_bind_module(Driver *driver);
|
2001-12-30 00:15:25 +00:00
|
|
|
|
|
|
|
|
int
|
2007-04-02 21:29:53 +00:00
|
|
|
driver_unbind_module(Driver *driver);
|
2001-12-30 00:15:25 +00:00
|
|
|
|
|
|
|
|
bool
|
2007-04-02 21:29:53 +00:00
|
|
|
driver_does_output(Driver *driver);
|
2001-12-30 00:15:25 +00:00
|
|
|
|
|
|
|
|
bool
|
2007-04-02 21:29:53 +00:00
|
|
|
driver_does_input(Driver *driver);
|
2001-12-30 00:15:25 +00:00
|
|
|
|
|
|
|
|
bool
|
2007-04-02 21:29:53 +00:00
|
|
|
driver_support_multiple(Driver *driver);
|
2001-12-30 00:15:25 +00:00
|
|
|
|
|
|
|
|
bool
|
2007-04-02 21:29:53 +00:00
|
|
|
driver_stay_in_foreground(Driver *driver);
|
2001-12-30 00:15:25 +00:00
|
|
|
|
2002-05-13 22:25:04 +00:00
|
|
|
|
|
|
|
|
/* Alternative functions for all extended functions */
|
|
|
|
|
|
2007-04-02 21:29:53 +00:00
|
|
|
void driver_alt_vbar(Driver *drv, int x, int y, int len, int promille, int pattern);
|
2002-05-13 22:25:04 +00:00
|
|
|
|
2007-04-02 21:29:53 +00:00
|
|
|
void driver_alt_hbar(Driver *drv, int x, int y, int len, int promille, int pattern);
|
2002-05-13 22:25:04 +00:00
|
|
|
|
2007-04-02 21:29:53 +00:00
|
|
|
void driver_alt_num(Driver *drv, int x, int num);
|
2002-05-13 22:25:04 +00:00
|
|
|
|
2007-04-02 21:29:53 +00:00
|
|
|
void driver_alt_heartbeat(Driver *drv, int state);
|
2002-05-13 22:25:04 +00:00
|
|
|
|
2007-04-02 21:29:53 +00:00
|
|
|
void driver_alt_icon(Driver *drv, int x, int y, int icon);
|
2002-05-13 22:25:04 +00:00
|
|
|
|
2007-04-02 21:29:53 +00:00
|
|
|
void driver_alt_cursor(Driver *drv, int x, int y, int state);
|
2002-05-13 22:25:04 +00:00
|
|
|
|
2001-12-30 00:15:25 +00:00
|
|
|
#endif
|