bluetooth.h (e175072f377047e28e399c5c661e39e69722f35b) | bluetooth.h (e1447d8d8da5ceea60dca027e78274e6ea9b660e) |
---|---|
1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 62 unchanged lines hidden (view full) --- 71 72#define BT_POWER 9 73struct bt_power { 74 __u8 force_active; 75}; 76#define BT_POWER_FORCE_ACTIVE_OFF 0 77#define BT_POWER_FORCE_ACTIVE_ON 1 78 | 1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 62 unchanged lines hidden (view full) --- 71 72#define BT_POWER 9 73struct bt_power { 74 __u8 force_active; 75}; 76#define BT_POWER_FORCE_ACTIVE_OFF 0 77#define BT_POWER_FORCE_ACTIVE_ON 1 78 |
79#define BT_INFO(fmt, arg...) printk(KERN_INFO "Bluetooth: " fmt "\n" , ## arg) 80#define BT_ERR(fmt, arg...) printk(KERN_ERR "%s: " fmt "\n" , __func__ , ## arg) 81#define BT_DBG(fmt, arg...) pr_debug("%s: " fmt "\n" , __func__ , ## arg) | 79__attribute__((format (printf, 2, 3))) 80int bt_printk(const char *level, const char *fmt, ...); |
82 | 81 |
82#define BT_INFO(fmt, arg...) bt_printk(KERN_INFO, pr_fmt(fmt), ##arg) 83#define BT_ERR(fmt, arg...) bt_printk(KERN_ERR, pr_fmt(fmt), ##arg) 84#define BT_DBG(fmt, arg...) pr_debug(fmt "\n", ##arg) 85 |
|
83/* Connection and socket states */ 84enum { 85 BT_CONNECTED = 1, /* Equal to TCP_ESTABLISHED to make net code happy */ 86 BT_OPEN, 87 BT_BOUND, 88 BT_LISTEN, 89 BT_CONNECT, 90 BT_CONNECT2, --- 155 unchanged lines hidden --- | 86/* Connection and socket states */ 87enum { 88 BT_CONNECTED = 1, /* Equal to TCP_ESTABLISHED to make net code happy */ 89 BT_OPEN, 90 BT_BOUND, 91 BT_LISTEN, 92 BT_CONNECT, 93 BT_CONNECT2, --- 155 unchanged lines hidden --- |