1128080Semax/* 2128080Semax * bthidcontrol.h 3128080Semax * 4128080Semax * Copyright (c) 2004 Maksim Yevmenkin <m_evmenkin@yahoo.com> 5128080Semax * All rights reserved. 6128080Semax * 7128080Semax * Redistribution and use in source and binary forms, with or without 8128080Semax * modification, are permitted provided that the following conditions 9128080Semax * are met: 10128080Semax * 1. Redistributions of source code must retain the above copyright 11128080Semax * notice, this list of conditions and the following disclaimer. 12128080Semax * 2. Redistributions in binary form must reproduce the above copyright 13128080Semax * notice, this list of conditions and the following disclaimer in the 14128080Semax * documentation and/or other materials provided with the distribution. 15128080Semax * 16128080Semax * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17128080Semax * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18128080Semax * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19128080Semax * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20128080Semax * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21128080Semax * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22128080Semax * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23128080Semax * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24128080Semax * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25128080Semax * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26128080Semax * SUCH DAMAGE. 27128080Semax * 28128080Semax * $Id: bthidcontrol.h,v 1.1 2004/02/12 23:25:51 max Exp $ 29128080Semax * $FreeBSD$ 30128080Semax */ 31128080Semax 32128080Semax#ifndef __BTHIDCONTROL_H__ 33128080Semax#define __BTHIDCONTROL_H__ 34128080Semax 35128080Semax#define OK 0 /* everything was OK */ 36128080Semax#define ERROR 1 /* could not execute command */ 37128080Semax#define FAILED 2 /* error was reported */ 38128080Semax#define USAGE 3 /* invalid parameters */ 39128080Semax 40128080Semaxstruct bthid_command { 41128080Semax char const *command; 42128080Semax char const *description; 43128080Semax int (*handler)(bdaddr_t *, int, char **); 44128080Semax}; 45128080Semax 46128080Semaxextern struct bthid_command hid_commands[]; 47128080Semaxextern struct bthid_command sdp_commands[]; 48128080Semax 49128080Semax#endif /* __BTHIDCONTROL_H__ */ 50128080Semax 51