bluetooth.h (c87985a3ce723995fc7b25e598238d67154108a1) | bluetooth.h (256a06c8a85df676e80263af349daad1283e529e) |
---|---|
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 --- 13 unchanged lines hidden (view full) --- 22 SOFTWARE IS DISCLAIMED. 23*/ 24 25#ifndef __BLUETOOTH_H 26#define __BLUETOOTH_H 27 28#include <linux/poll.h> 29#include <net/sock.h> | 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 --- 13 unchanged lines hidden (view full) --- 22 SOFTWARE IS DISCLAIMED. 23*/ 24 25#ifndef __BLUETOOTH_H 26#define __BLUETOOTH_H 27 28#include <linux/poll.h> 29#include <net/sock.h> |
30#include <linux/seq_file.h> |
|
30 31#ifndef AF_BLUETOOTH 32#define AF_BLUETOOTH 31 33#define PF_BLUETOOTH AF_BLUETOOTH 34#endif 35 36/* Bluetooth versions */ 37#define BLUETOOTH_VER_1_1 1 --- 159 unchanged lines hidden (view full) --- 197enum { 198 BT_SK_DEFER_SETUP, 199 BT_SK_SUSPEND, 200}; 201 202struct bt_sock_list { 203 struct hlist_head head; 204 rwlock_t lock; | 31 32#ifndef AF_BLUETOOTH 33#define AF_BLUETOOTH 31 34#define PF_BLUETOOTH AF_BLUETOOTH 35#endif 36 37/* Bluetooth versions */ 38#define BLUETOOTH_VER_1_1 1 --- 159 unchanged lines hidden (view full) --- 198enum { 199 BT_SK_DEFER_SETUP, 200 BT_SK_SUSPEND, 201}; 202 203struct bt_sock_list { 204 struct hlist_head head; 205 rwlock_t lock; |
206#ifdef CONFIG_PROC_FS 207 struct file_operations fops; 208 int (* custom_seq_show)(struct seq_file *, void *); 209#endif |
|
205}; 206 207int bt_sock_register(int proto, const struct net_proto_family *ops); 208int bt_sock_unregister(int proto); 209void bt_sock_link(struct bt_sock_list *l, struct sock *s); 210void bt_sock_unlink(struct bt_sock_list *l, struct sock *s); 211int bt_sock_recvmsg(struct kiocb *iocb, struct socket *sock, 212 struct msghdr *msg, size_t len, int flags); --- 74 unchanged lines hidden (view full) --- 287int bt_to_errno(__u16 code); 288 289extern int hci_sock_init(void); 290extern void hci_sock_cleanup(void); 291 292extern int bt_sysfs_init(void); 293extern void bt_sysfs_cleanup(void); 294 | 210}; 211 212int bt_sock_register(int proto, const struct net_proto_family *ops); 213int bt_sock_unregister(int proto); 214void bt_sock_link(struct bt_sock_list *l, struct sock *s); 215void bt_sock_unlink(struct bt_sock_list *l, struct sock *s); 216int bt_sock_recvmsg(struct kiocb *iocb, struct socket *sock, 217 struct msghdr *msg, size_t len, int flags); --- 74 unchanged lines hidden (view full) --- 292int bt_to_errno(__u16 code); 293 294extern int hci_sock_init(void); 295extern void hci_sock_cleanup(void); 296 297extern int bt_sysfs_init(void); 298extern void bt_sysfs_cleanup(void); 299 |
300extern int bt_procfs_init(struct module* module, struct net *net, const char *name, 301 struct bt_sock_list* sk_list, 302 int (* seq_show)(struct seq_file *, void *)); 303extern void bt_procfs_cleanup(struct net *net, const char *name); 304 |
|
295extern struct dentry *bt_debugfs; 296 297int l2cap_init(void); 298void l2cap_exit(void); 299 300int sco_init(void); 301void sco_exit(void); 302 303void bt_sock_reclassify_lock(struct sock *sk, int proto); 304 305#endif /* __BLUETOOTH_H */ | 305extern struct dentry *bt_debugfs; 306 307int l2cap_init(void); 308void l2cap_exit(void); 309 310int sco_init(void); 311void sco_exit(void); 312 313void bt_sock_reclassify_lock(struct sock *sk, int proto); 314 315#endif /* __BLUETOOTH_H */ |