Home | History | Annotate | Line # | Download | only in bthcid
      1  1.4   plunky /*	$NetBSD: bthcid.h,v 1.4 2009/10/05 12:34:26 plunky Exp $	*/
      2  1.1  gdamore 
      3  1.1  gdamore /*-
      4  1.1  gdamore  * Copyright (c) 2006 Itronix Inc.
      5  1.1  gdamore  * All rights reserved.
      6  1.1  gdamore  *
      7  1.1  gdamore  * Redistribution and use in source and binary forms, with or without
      8  1.1  gdamore  * modification, are permitted provided that the following conditions
      9  1.1  gdamore  * are met:
     10  1.1  gdamore  * 1. Redistributions of source code must retain the above copyright
     11  1.1  gdamore  *    notice, this list of conditions and the following disclaimer.
     12  1.1  gdamore  * 2. Redistributions in binary form must reproduce the above copyright
     13  1.1  gdamore  *    notice, this list of conditions and the following disclaimer in the
     14  1.1  gdamore  *    documentation and/or other materials provided with the distribution.
     15  1.1  gdamore  * 3. The name of Itronix Inc. may not be used to endorse
     16  1.1  gdamore  *    or promote products derived from this software without specific
     17  1.1  gdamore  *    prior written permission.
     18  1.1  gdamore  *
     19  1.1  gdamore  * THIS SOFTWARE IS PROVIDED BY ITRONIX INC. ``AS IS'' AND
     20  1.1  gdamore  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     21  1.1  gdamore  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     22  1.1  gdamore  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL ITRONIX INC. BE LIABLE FOR ANY
     23  1.1  gdamore  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     24  1.1  gdamore  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
     25  1.1  gdamore  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
     26  1.1  gdamore  * ON ANY THEORY OF LIABILITY, WHETHER IN
     27  1.1  gdamore  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     28  1.1  gdamore  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     29  1.1  gdamore  * POSSIBILITY OF SUCH DAMAGE.
     30  1.1  gdamore  */
     31  1.1  gdamore 
     32  1.1  gdamore #ifndef _BTHCID_H_
     33  1.1  gdamore #define _BTHCID_H_	1
     34  1.1  gdamore 
     35  1.1  gdamore /* config.c */
     36  1.1  gdamore uint8_t		*lookup_key		(bdaddr_t *, bdaddr_t *);
     37  1.1  gdamore void		 save_key		(bdaddr_t *, bdaddr_t *, uint8_t *);
     38  1.1  gdamore 
     39  1.1  gdamore /* client.c */
     40  1.1  gdamore int		 init_control		(const char *, mode_t);
     41  1.1  gdamore int		 send_client_request	(bdaddr_t *, bdaddr_t *, int);
     42  1.2     tron uint8_t		*lookup_pin		(bdaddr_t *, bdaddr_t *);
     43  1.1  gdamore 
     44  1.1  gdamore /* hci.c */
     45  1.4   plunky int		 init_hci		(const char *);
     46  1.1  gdamore int		 send_pin_code_reply	(int, struct sockaddr_bt *, bdaddr_t *, uint8_t *);
     47  1.1  gdamore 
     48  1.1  gdamore #endif	/* _BTHCID_H_ */
     49