summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-01-31 12:34:17 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2004-01-31 12:34:17 (GMT)
commit12af0485f858c8eca9a8c9ed9894a8a60f975b4c (patch)
tree3126f0ddfe46bfc9d855254230ebaea2723451d2 /Modules/socketmodule.h
parent4d205e366cc48535f70c1fe939ce726658e46d98 (diff)
downloadcpython-12af0485f858c8eca9a8c9ed9894a8a60f975b4c.zip
cpython-12af0485f858c8eca9a8c9ed9894a8a60f975b4c.tar.gz
cpython-12af0485f858c8eca9a8c9ed9894a8a60f975b4c.tar.bz2
Patch #874083: Bluetooth support for socket module.
Diffstat (limited to 'Modules/socketmodule.h')
-rw-r--r--Modules/socketmodule.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h
index 167d507..9756a47 100644
--- a/Modules/socketmodule.h
+++ b/Modules/socketmodule.h
@@ -32,6 +32,13 @@
# undef AF_UNIX
#endif
+#ifdef HAVE_BLUETOOTH_BLUETOOTH_H
+#include <bluetooth/bluetooth.h>
+#include <bluetooth/rfcomm.h>
+#include <bluetooth/l2cap.h>
+#include <bluetooth/sco.h>
+#endif
+
#ifdef HAVE_NETPACKET_PACKET_H
# include <sys/ioctl.h>
# include <net/if.h>
@@ -80,6 +87,11 @@ typedef struct {
struct sockaddr_in6 in6;
struct sockaddr_storage storage;
#endif
+#ifdef HAVE_BLUETOOTH_BLUETOOTH_H
+ struct sockaddr_l2 bt_l2;
+ struct sockaddr_rc bt_rc;
+ struct sockaddr_sco bt_sco;
+#endif
#ifdef HAVE_NETPACKET_PACKET_H
struct sockaddr_ll ll;
#endif