kbd.h revision 137868
1137868Semax/* 2137868Semax * kbd.h 3137868Semax * 4137868Semax * Copyright (c) 2004 Maksim Yevmenkin <m_evmenkin@yahoo.com> 5137868Semax * All rights reserved. 6137868Semax * 7137868Semax * Redistribution and use in source and binary forms, with or without 8137868Semax * modification, are permitted provided that the following conditions 9137868Semax * are met: 10137868Semax * 1. Redistributions of source code must retain the above copyright 11137868Semax * notice, this list of conditions and the following disclaimer. 12137868Semax * 2. Redistributions in binary form must reproduce the above copyright 13137868Semax * notice, this list of conditions and the following disclaimer in the 14137868Semax * documentation and/or other materials provided with the distribution. 15137868Semax * 16137868Semax * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17137868Semax * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18137868Semax * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19137868Semax * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20137868Semax * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21137868Semax * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22137868Semax * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23137868Semax * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24137868Semax * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25137868Semax * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26137868Semax * SUCH DAMAGE. 27137868Semax * 28137868Semax * $Id: kbd.h,v 1.2 2004/11/17 21:59:42 max Exp $ 29137868Semax * $FreeBSD: head/usr.sbin/bluetooth/bthidd/kbd.h 137868 2004-11-18 18:05:15Z emax $ 30137868Semax */ 31137868Semax 32137868Semax#ifndef _KBD_H_ 33137868Semax#define _KBD_H_ 34137868Semax 35137868Semaxint kbd_maxkey (void); 36137868Semaxint kbd_process_keys(bthid_session_p s); 37137868Semaxint kbd_get_index_fd(int fd); 38137868Semaxint kbd_get_index (char const *device); 39137868Semaxint kbd_switch (char const *script, int index); 40137868Semax 41137868Semax#endif /* ndef _KBD_H_ */ 42