Home | History | Annotate | Download | only in network
      1 /*
      2  *
      3  *  BlueZ - Bluetooth protocol stack for Linux
      4  *
      5  *  Copyright (C) 2004-2010  Marcel Holtmann <marcel (at) holtmann.org>
      6  *
      7  *
      8  *  This program is free software; you can redistribute it and/or modify
      9  *  it under the terms of the GNU General Public License as published by
     10  *  the Free Software Foundation; either version 2 of the License, or
     11  *  (at your option) any later version.
     12  *
     13  *  This program is distributed in the hope that it will be useful,
     14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     16  *  GNU General Public License for more details.
     17  *
     18  *  You should have received a copy of the GNU General Public License
     19  *  along with this program; if not, write to the Free Software
     20  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     21  *
     22  */
     23 
     24 #define PANU_UUID	"00001115-0000-1000-8000-00805f9b34fb"
     25 #define NAP_UUID	"00001116-0000-1000-8000-00805f9b34fb"
     26 #define GN_UUID		"00001117-0000-1000-8000-00805f9b34fb"
     27 #define BNEP_SVC_UUID	"0000000f-0000-1000-8000-00805f9b34fb"
     28 
     29 int bnep_init(void);
     30 int bnep_cleanup(void);
     31 
     32 uint16_t bnep_service_id(const char *svc);
     33 const char *bnep_uuid(uint16_t id);
     34 const char *bnep_name(uint16_t id);
     35 
     36 int bnep_kill_connection(bdaddr_t *dst);
     37 int bnep_kill_all_connections(void);
     38 
     39 int bnep_connadd(int sk, uint16_t role, char *dev);
     40 int bnep_if_up(const char *devname);
     41 int bnep_if_down(const char *devname);
     42 int bnep_add_to_bridge(const char *devname, const char *bridge);
     43