/*Copyright 2011 Jun Wako <wakojun@gmail.com>This program is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation, either version 2 of the License, or(at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/#ifndef HOST_H#define HOST_H#include<stdint.h>#include<stdbool.h>#include"report.h"#include"host_driver.h"#ifdef __cplusplusextern"C"{#endifexternuint8_tkeyboard_idle;externuint8_tkeyboard_protocol;/* host driver */voidhost_set_driver(host_driver_t*driver);host_driver_t*host_get_driver(void);/* host driver interface */uint8_thost_keyboard_leds(void);voidhost_keyboard_send(report_keyboard_t*report);voidhost_mouse_send(report_mouse_t*report);voidhost_system_send(uint16_tdata);voidhost_consumer_send(uint16_tdata);uint16_thost_last_system_report(void);uint16_thost_last_consumer_report(void);#ifdef __cplusplus}#endif#endif