00001 /*************************************************************************** 00002 * Copyright (C) 2009 by Benjamin Hadorn (b_hadorn@bluewin.ch) * 00003 *************************************************************************** 00004 * Projekt : Zeus Base Library 00005 * Module : BluetoothForLinux 00006 * Package : Net/Bluetooth 00007 * Author : Benjamin Hadorn 00008 * Datum : $Date: 31.01.11 8:47 $ 00009 * Ablage : $File$ 00010 * System : Cell Computing Model 00011 *************************************************************************** 00012 * Licence: * 00013 * This library is free software; you can redistribute it and/or modify * 00014 * it under the terms of the GNU Lesser General Public License as * 00015 * published by the Free Software Foundation; either version * 00016 * 2.1 of the License, or (at your option) any later version. * 00017 * * 00018 * This library is distributed in the hope that it will be useful, * 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00021 * GNU Lesser General Public License for more details. * 00022 * * 00023 * You should have received a copy of the GNU Lesser General Public * 00024 * License along with this library; if not, write to the Free Software * 00025 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA * 00026 ***************************************************************************/ 00027 00028 /*************************************************************************** 00029 Changes : 00030 $Log: /Development_F/StuderWIN/dev/Zeus/src/zeusbase/Net/Bluetooth/linux/BluetoothForLinux.h $ 00031 ** 00032 ** 2 31.01.11 8:47 Bha 00033 ** implementation of bluetooth for linux 00034 ** 00035 ** 1 21.09.09 6:16 Bha 00036 ** created 00037 ***************************************************************************/ 00038 00039 00040 #ifndef BluetoothForLinuxH 00041 #define BluetoothForLinuxH 00042 00043 #include <zeusbase/Config/PlatformDefines.hpp> 00044 #include <bluetooth/bluetooth.h> 00045 #include <bluetooth/hci.h> 00046 #include <bluetooth/hci_lib.h> 00047 #include <bluetooth/rfcomm.h> 00048 00049 00050 #define BT_PORT_ANY ((NAMESPACE_Zeus::Uint8)-1) 00051 #define BT_PORT_MIN 0x1 00052 #define BT_PORT_MAX 0xff 00053 00054 #ifndef AF_BTH 00055 #define AF_BTH AF_BLUETOOTH 00056 #endif 00057 00058 #ifndef PF_BTH 00059 #define PF_BTH PF_BLUETOOTH 00060 #endif 00061 00062 #ifndef NS_BTH 00063 #define NS_BTH 16 00064 #endif 00065 00066 #ifndef BTHPROTO_RFCOMM 00067 #define BTHPROTO_RFCOMM BTPROTO_RFCOMM 00068 #endif 00069 00070 // *************************************************************************** 00071 // 00072 // Bluetooth Address 00073 // 00074 // *************************************************************************** 00075 typedef sockaddr_rc SOCKADDR_BTH; 00076 00077 00078 #endif //BluetoothForLinuxH