1*e5a7441dSplunky /* $NetBSD: btkey.h,v 1.1 2007/11/09 21:18:25 plunky Exp $ */ 2*e5a7441dSplunky 3*e5a7441dSplunky /*- 4*e5a7441dSplunky * Copyright (c) 2007 Iain Hibbert 5*e5a7441dSplunky * All rights reserved. 6*e5a7441dSplunky * 7*e5a7441dSplunky * Redistribution and use in source and binary forms, with or without 8*e5a7441dSplunky * modification, are permitted provided that the following conditions 9*e5a7441dSplunky * are met: 10*e5a7441dSplunky * 1. Redistributions of source code must retain the above copyright 11*e5a7441dSplunky * notice, this list of conditions and the following disclaimer. 12*e5a7441dSplunky * 2. Redistributions in binary form must reproduce the above copyright 13*e5a7441dSplunky * notice, this list of conditions and the following disclaimer in the 14*e5a7441dSplunky * documentation and/or other materials provided with the distribution. 15*e5a7441dSplunky * 3. The name of the author may not be used to endorse or promote products 16*e5a7441dSplunky * derived from this software without specific prior written permission. 17*e5a7441dSplunky * 18*e5a7441dSplunky * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 19*e5a7441dSplunky * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20*e5a7441dSplunky * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21*e5a7441dSplunky * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22*e5a7441dSplunky * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23*e5a7441dSplunky * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24*e5a7441dSplunky * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25*e5a7441dSplunky * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26*e5a7441dSplunky * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27*e5a7441dSplunky * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28*e5a7441dSplunky */ 29*e5a7441dSplunky 30*e5a7441dSplunky /* btkey.c */ 31*e5a7441dSplunky extern bdaddr_t laddr; 32*e5a7441dSplunky extern bdaddr_t raddr; 33*e5a7441dSplunky extern uint8_t key[]; 34*e5a7441dSplunky 35*e5a7441dSplunky void print_key(const char *, const uint8_t *); 36*e5a7441dSplunky void print_addr(const char *, const bdaddr_t *); 37*e5a7441dSplunky 38*e5a7441dSplunky /* device.c */ 39*e5a7441dSplunky bool list_device(void); 40*e5a7441dSplunky bool read_device(void); 41*e5a7441dSplunky bool write_device(void); 42*e5a7441dSplunky bool clear_device(void); 43*e5a7441dSplunky 44*e5a7441dSplunky /* file.c */ 45*e5a7441dSplunky bool list_file(void); 46*e5a7441dSplunky bool read_file(void); 47*e5a7441dSplunky bool write_file(void); 48*e5a7441dSplunky bool clear_file(void); 49