00001 /***************************************************************************** 00002 * Copyright (C) 2011 by Benjamin Hadorn (b_hadorn@bluewin.ch) 00003 ***************************************************************************** 00004 * Project : Zeus Base Library 00005 * Module : BTDefines 00006 * Package : Zeus.ZeusBase.Net.Bluetooth 00007 * Author : Benjamin Hadorn 00008 * Date : 27.12.2011 00009 * System : Zeus-Framework 00010 ***************************************************************************** 00011 * Licence: * 00012 * This library is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU Lesser General Public License as * 00014 * published by the Free Software Foundation; either version * 00015 * 2.1 of the License, or (at your option) any later version. * 00016 * * 00017 * This library is distributed in the hope that it will be useful, * 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00020 * GNU Lesser General Public License for more details. * 00021 * * 00022 * You should have received a copy of the GNU Lesser General Public * 00023 * License along with this library; if not, write to the Free Software * 00024 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA * 00025 *****************************************************************************/ 00026 00027 /***************************************************************************** 00028 * Changes: 00029 * 27.12.2011 bha: created zeus 2.0 00030 *****************************************************************************/ 00031 00032 #ifndef BTDefinesHPP 00033 #define BTDefinesHPP 00034 00035 #include <zeusbase/Config/PlatformDefines.hpp> 00036 00037 #if defined(ENABLE_BLUEZ_BLUETOOTH) 00038 #include <zeusbase/Net/Bluetooth/linux/BluetoothForLinux.h> 00039 00040 #elif defined(ENABLE_WIN32_BLUETOOTH) 00041 00042 //--------------------------------------------------------------------- 00043 //Borland and derivates 00044 #if defined(__BCPLUSPLUS__) 00045 //Bluetooth defines are not included within borland C++ Builder 6 and lower 00046 #if __BCPLUSPLUS__ < 0x0570 00047 #include <zeusbase/Net/Bluetooth/bcb6/ws2bth.h> 00048 #include <zeusbase/Net/Bluetooth/bcb6/btapi.h> 00049 #include <zeusbase/Net/Bluetooth/bcb6/bthsdpdef.h> 00050 00051 #ifndef DISABLE_BLUETOOTH 00052 //BCB needs a special lib for linking 00053 #pragma link "bthprops.lib" 00054 00055 #endif //DISABLE_BLUETOOTH 00056 00057 //Newer versions support bluetooth in their header files 00058 #else 00059 #include "ws2bth.h" 00060 #include "BluetoothAPIs.h" 00061 #endif 00062 00063 //--------------------------------------------------------------------- 00064 //Studio and derivates 00065 #else //not defined(__BCPLUSPLUS__) 00066 00067 #ifndef DISABLE_BLUETOOTH 00068 #if _MSC_VER >= 1500 00069 #include <ws2bth.h> 00070 #include <zeusbase/Net/Bluetooth/vc2010/BluetoothAPIs.h> 00071 #elif _MSC_VER > 1200 00072 #include "windows.h" 00073 #include <zeusbase/Net/Bluetooth/vc2005/specstrings_strict.h> 00074 #include <zeusbase/Net/Bluetooth/vc2005/bthsdpdef.h> 00075 #include <zeusbase/Net/Bluetooth/vc2005/BluetoothAPIs.h> 00076 #include <zeusbase/Net/Bluetooth/vc2005/ws2bth.h> 00077 #else 00078 #include <zeusbase/Net/Bluetooth/vc6/bthsdpdef.h> 00079 #include <zeusbase/Net/Bluetooth/vc6/ws2bth.h> 00080 #include <zeusbase/Net/Bluetooth/vc6/BluetoothAPIs.h> 00081 #endif 00082 00083 #endif //DISABLE_BLUETOOTH 00084 00085 #endif ////not defined(__BCPLUSPLUS__) 00086 00087 #else 00088 struct SOCKADDR_BTH 00089 { 00090 }; 00091 #endif 00092 00093 00094 #endif