- Timestamp:
- Aug 22, 2012, 2:09:00 PM (12 years ago)
- Location:
- source
- Files:
-
- 49 added
- 4 deleted
- 42 edited
Legend:
- Unmodified
- Added
- Removed
-
source
- Property svn:ignore deleted
-
source/ariba
- Property svn:ignore deleted
-
source/ariba/communication
- Property svn:ignore deleted
-
source/ariba/communication/messages
- Property svn:ignore deleted
-
source/ariba/communication/networkinfo
- Property svn:ignore deleted
-
source/ariba/communication/networkinfo/AddressDiscovery.cpp
r10653 r10700 49 49 #include <ifaddrs.h> 50 50 51 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H51 #ifdef HAVE_LIBBLUETOOTH 52 52 #include <bluetooth/bluetooth.h> 53 53 #include <bluetooth/hci.h> … … 60 60 mac_address AddressDiscovery::getMacFromIF( const char* name ) { 61 61 mac_address addr; 62 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H62 #ifdef HAVE_LIBBLUETOOTH 63 63 int s; 64 64 struct ifreq buffer; … … 74 74 75 75 int AddressDiscovery::dev_info(int s, int dev_id, long arg) { 76 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H76 #ifdef HAVE_LIBBLUETOOTH 77 77 endpoint_set* set = (endpoint_set*)arg; 78 78 struct hci_dev_info di; … … 89 89 90 90 void AddressDiscovery::discover_bluetooth( endpoint_set& endpoints ) { 91 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H91 #ifdef HAVE_LIBBLUETOOTH 92 92 hci_for_each_dev(HCI_UP, &AddressDiscovery::dev_info, (long)&endpoints ); 93 93 #endif -
source/ariba/communication/networkinfo/NetworkInformation.cpp
r5860 r10700 40 40 #include "ariba/config.h" 41 41 42 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H42 #ifdef HAVE_LIBBLUETOOTH 43 43 #include <bluetooth/bluetooth.h> 44 44 #include <bluetooth/hci.h> … … 211 211 // 212 212 213 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H213 #ifdef HAVE_LIBBLUETOOTH 214 214 215 215 int btsock = socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI); -
source/ariba/overlay
- Property svn:ignore deleted
-
source/ariba/overlay/messages
- Property svn:ignore deleted
-
source/ariba/overlay/modules
- Property svn:ignore deleted
-
source/ariba/overlay/modules/chord
- Property svn:ignore deleted
-
source/ariba/overlay/modules/chord/messages
- Property svn:ignore deleted
-
source/ariba/overlay/modules/onehop
- Property svn:ignore deleted
-
source/ariba/overlay/modules/onehop/messages
- Property svn:ignore deleted
-
source/ariba/utility
- Property svn:ignore deleted
-
source/ariba/utility/addressing
- Property svn:mergeinfo changed (with no actual effect on merging)
-
source/ariba/utility/bootstrap/modules/bluetoothsdp
- Property svn:mergeinfo changed (with no actual effect on merging)
-
source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.cpp
r7532 r10700 40 40 #include "ariba/overlay/OverlayBootstrap.h" 41 41 42 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H42 #ifdef HAVE_LIBBLUETOOTH 43 43 44 44 // Attribute descriptors for SDP … … 58 58 const char *service_prov = "ITM Uni Karlsruhe"; 59 59 60 #endif // HAVE_ BLUETOOTH_BLUETOOTH_H60 #endif // HAVE_LIBBLUETOOTH 61 61 62 62 … … 64 64 namespace utility { 65 65 66 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H66 #ifdef HAVE_LIBBLUETOOTH 67 67 static bdaddr_t bd_addr_any = {{0, 0, 0, 0, 0, 0}}; 68 68 static bdaddr_t bd_addr_local = {{0, 0, 0, 0xff, 0xff, 0xff}}; … … 75 75 : BootstrapModule(_callback), scan_timer_(io_service_) { 76 76 srand( time(NULL) ); 77 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H77 #ifdef HAVE_LIBBLUETOOTH 78 78 79 79 // This can be ignored, as the channel we really be saved in one 80 80 // of the info strings (as an attribute) 81 81 channel_ = 1; 82 #endif // HAVE_ BLUETOOTH_BLUETOOTH_H82 #endif // HAVE_LIBBLUETOOTH 83 83 } 84 84 … … 95 95 96 96 bool BluetoothSdp::isFunctional() { 97 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H97 #ifdef HAVE_LIBBLUETOOTH 98 98 return true; 99 99 #else … … 103 103 104 104 void BluetoothSdp::start() { 105 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H105 #ifdef HAVE_LIBBLUETOOTH 106 106 107 107 /* … … 112 112 t_ = boost::thread(boost::bind(&boost::asio::io_service::run, &io_service_)); 113 113 114 #endif // HAVE_ BLUETOOTH_BLUETOOTH_H114 #endif // HAVE_LIBBLUETOOTH 115 115 } 116 116 117 117 void BluetoothSdp::stop() { 118 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H118 #ifdef HAVE_LIBBLUETOOTH 119 119 120 120 /* … … 129 129 sdp_close(sdp_session_); 130 130 131 #endif // HAVE_ BLUETOOTH_BLUETOOTH_H131 #endif // HAVE_LIBBLUETOOTH 132 132 } 133 133 134 134 void BluetoothSdp::publishService(string name, string info1, string info2, 135 135 string info3) { 136 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H136 #ifdef HAVE_LIBBLUETOOTH 137 137 138 138 /* … … 244 244 sdp_list_free(profile_list, 0); 245 245 246 #endif // HAVE_ BLUETOOTH_BLUETOOTH_H246 #endif // HAVE_LIBBLUETOOTH 247 247 } 248 248 249 249 void BluetoothSdp::revokeService(string name) { 250 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H250 #ifdef HAVE_LIBBLUETOOTH 251 251 252 252 logging_debug("unregistering SDP service"); 253 253 sdp_close(sdp_session_); 254 254 255 #endif // HAVE_ BLUETOOTH_BLUETOOTH_H256 } 257 258 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H255 #endif // HAVE_LIBBLUETOOTH 256 } 257 258 #ifdef HAVE_LIBBLUETOOTH 259 259 260 260 void BluetoothSdp::bt_scan() { … … 461 461 } 462 462 463 #endif // HAVE_ BLUETOOTH_BLUETOOTH_H463 #endif // HAVE_LIBBLUETOOTH 464 464 465 465 }} //namespace ariba, utility -
source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.h
r7532 r10700 54 54 #include "ariba/utility/logging/Logging.h" 55 55 56 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H56 #ifdef HAVE_LIBBLUETOOTH 57 57 #include <bluetooth/bluetooth.h> 58 58 #include <bluetooth/sdp.h> … … 94 94 private: 95 95 96 #ifdef HAVE_ BLUETOOTH_BLUETOOTH_H96 #ifdef HAVE_LIBBLUETOOTH 97 97 void bt_scan(); 98 98 void sdp_search(bdaddr_t target, string devicename); … … 104 104 105 105 bool haveConnections(); 106 #endif // HAVE_ BLUETOOTH_BLUETOOTH_H106 #endif // HAVE_LIBBLUETOOTH 107 107 108 108 boost::asio::io_service io_service_; -
source/ariba/utility/bootstrap/modules/multicastdns/MulticastDns.cpp
r7532 r10700 48 48 MulticastDns::MulticastDns(BootstrapInformationCallback* _callback, string info) 49 49 : BootstrapModule(_callback) { 50 #ifdef HAVE_AVAHI _CLIENT_CLIENT_H50 #ifdef HAVE_AVAHI 51 51 avahiclient = NULL; 52 52 avahipoll = NULL; 53 53 avahibrowser = NULL; 54 #endif // HAVE_AVAHI _CLIENT_CLIENT_H54 #endif // HAVE_AVAHI 55 55 } 56 56 … … 67 67 68 68 bool MulticastDns::isFunctional(){ 69 #ifdef HAVE_AVAHI _CLIENT_CLIENT_H69 #ifdef HAVE_AVAHI 70 70 return true; 71 71 #else … … 75 75 76 76 void MulticastDns::start(){ 77 #ifdef HAVE_AVAHI _CLIENT_CLIENT_H77 #ifdef HAVE_AVAHI 78 78 79 79 int error = 0; … … 119 119 avahi_threaded_poll_start( avahipoll ); 120 120 121 #endif // HAVE_AVAHI _CLIENT_CLIENT_H121 #endif // HAVE_AVAHI 122 122 } 123 123 124 124 void MulticastDns::stop(){ 125 #ifdef HAVE_AVAHI _CLIENT_CLIENT_H125 #ifdef HAVE_AVAHI 126 126 127 127 // … … 155 155 avahipoll = NULL; 156 156 157 #endif // HAVE_AVAHI _CLIENT_CLIENT_H157 #endif // HAVE_AVAHI 158 158 } 159 159 160 160 void MulticastDns::publishService(string name, string info1, string info2, string info3){ 161 #ifdef HAVE_AVAHI _CLIENT_CLIENT_H161 #ifdef HAVE_AVAHI 162 162 163 163 if(name.length() > 63){ … … 234 234 avahi_threaded_poll_unlock(avahipoll); 235 235 236 #endif // HAVE_AVAHI _CLIENT_CLIENT_H236 #endif // HAVE_AVAHI 237 237 } 238 238 239 239 void MulticastDns::revokeService(string name){ 240 #ifdef HAVE_AVAHI _CLIENT_CLIENT_H240 #ifdef HAVE_AVAHI 241 241 242 242 avahi_threaded_poll_lock(avahipoll); … … 254 254 avahi_threaded_poll_unlock(avahipoll); 255 255 256 #endif // HAVE_AVAHI _CLIENT_CLIENT_H257 } 258 259 #ifdef HAVE_AVAHI _CLIENT_CLIENT_H256 #endif // HAVE_AVAHI 257 } 258 259 #ifdef HAVE_AVAHI 260 260 261 261 void MulticastDns::client_callback(AvahiClient* client, AvahiClientState state, void* userdata){ … … 440 440 } 441 441 442 #endif // HAVE_AVAHI _CLIENT_CLIENT_H442 #endif // HAVE_AVAHI 443 443 444 444 }} //namespace ariba, utility -
source/ariba/utility/bootstrap/modules/multicastdns/MulticastDns.h
r7532 r10700 42 42 #include "ariba/config.h" 43 43 44 #ifdef HAVE_AVAHI _CLIENT_CLIENT_H44 #ifdef HAVE_AVAHI 45 45 #include <avahi-client/client.h> 46 46 #include <avahi-client/lookup.h> … … 51 51 #include <avahi-common/error.h> 52 52 #include <avahi-common/timeval.h> 53 #endif // HAVE_AVAHI _CLIENT_CLIENT_H53 #endif // HAVE_AVAHI 54 54 55 55 #include <iostream> … … 86 86 static const string serviceType; 87 87 88 #ifdef HAVE_AVAHI _CLIENT_CLIENT_H88 #ifdef HAVE_AVAHI 89 89 90 90 AvahiClient* avahiclient; … … 133 133 ); 134 134 135 #endif // HAVE_AVAHI _CLIENT_CLIENT_H135 #endif // HAVE_AVAHI 136 136 137 137 }; -
source/ariba/utility/bootstrap/modules/periodicbroadcast
- Property svn:mergeinfo changed (with no actual effect on merging)
-
source/ariba/utility/configuration
- Property svn:ignore deleted
-
source/ariba/utility/internal
- Property svn:ignore deleted
-
source/ariba/utility/logging
- Property svn:ignore deleted
-
source/ariba/utility/logging/Logging.h
r9894 r10700 44 44 #include "ariba/config.h" 45 45 46 #ifdef HAVE_LOG4CXX _LOGGER_H46 #ifdef HAVE_LOG4CXX 47 47 #include <log4cxx/logger.h> 48 48 #include <log4cxx/basicconfigurator.h> 49 #endif // HAVE_LOG4CXX _LOGGER_H49 #endif // HAVE_LOG4CXX 50 50 51 51 #ifdef LOGCOLORS … … 64 64 65 65 66 #ifdef HAVE_LOG4CXX _LOGGER_H66 #ifdef HAVE_LOG4CXX 67 67 68 68 #define use_logging_h(x) \ … … 89 89 #define logging_classlevel_error(x) {log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger(#x)); if(logger != NULL) logger->setLevel(log4cxx::Level::getError()); } 90 90 91 #else // HAVE_LOG4CXX _LOGGER_H91 #else // HAVE_LOG4CXX 92 92 93 93 #define use_logging_h(x) … … 115 115 #define logging_classlevel_error(x) {std::cout << "individual class logging only available with log4cxx library" << std::endl;} 116 116 117 #endif // HAVE_LOG4CXX _LOGGER_H117 #endif // HAVE_LOG4CXX 118 118 119 119 #endif //LOGGING_H__ -
source/ariba/utility/measurement
- Property svn:ignore deleted
-
source/ariba/utility/messages
- Property svn:ignore deleted
-
source/ariba/utility/misc
- Property svn:ignore deleted
-
source/ariba/utility/serialization
- Property svn:ignore deleted
-
source/ariba/utility/system
- Property svn:ignore deleted
-
source/ariba/utility/system/StartupWrapper.cpp
r9737 r10700 40 40 #include "ariba/config.h" 41 41 42 #ifdef HAVE_LOG4CXX _LOGGER_H42 #ifdef HAVE_LOG4CXX 43 43 #include <log4cxx/logger.h> 44 44 #include <log4cxx/basicconfigurator.h> 45 #endif // HAVE_LOG4CXX _LOGGER_H45 #endif // HAVE_LOG4CXX 46 46 47 47 namespace ariba { … … 97 97 // 98 98 99 #ifdef HAVE_LOG4CXX _LOGGER_H99 #ifdef HAVE_LOG4CXX 100 100 log4cxx::BasicConfigurator::configure(); 101 #endif //HAVE_LOG4CXX _LOGGER_H101 #endif //HAVE_LOG4CXX 102 102 103 103 // -
source/ariba/utility/transport
- Property svn:mergeinfo changed (with no actual effect on merging)
-
source/ariba/utility/transport/messages/shared_buffer.hpp
r10653 r10700 11 11 #include <boost/shared_ptr.hpp> 12 12 13 #include "ariba/config.h" 13 14 #ifdef DEBUG 14 15 #include <boost/thread/mutex.hpp> -
source/ariba/utility/transport/rfcomm/bluetooth_endpoint.hpp
r10653 r10700 192 192 }}} // namespace boost::asio::bluetooth 193 193 194 #endif /* BOOST_ASIO_BLUETOOTH_BLUETOOTH_ENDPOINT_HPP__ */ 194 195 #endif /* HAVE_LIBBLUETOOTH */ 195 #endif /* BOOST_ASIO_BLUETOOTH_BLUETOOTH_ENDPOINT_HPP__ */ -
source/ariba/utility/transport/rfcomm/bluetooth_rfcomm.hpp
r10653 r10700 1 #include "ariba/config.h" 2 3 #ifdef HAVE_LIBBLUETOOTH 4 1 5 #ifndef BOOST_ASIO_BLUETOOTH_RFCOMM_HPP__ 2 6 #define BOOST_ASIO_BLUETOOTH_RFCOMM_HPP__ … … 53 57 54 58 #endif /* BOOST_ASIO_BLUETOOTH_RFCOMM_HPP__ */ 59 #endif /* HAVE_LIBBLUETOOTH */ -
source/ariba/utility/transport/transport_peer.cpp
r10653 r10700 3 3 #include "transport_peer.hpp" 4 4 #include "transport.hpp" 5 #include "ariba/utility/logging/Logging.h"6 5 #include <boost/asio/ip/tcp.hpp> 7 6 #include <boost/asio/error.hpp> -
source/ariba/utility/transport/transport_peer.hpp
r10653 r10700 3 3 4 4 #include "ariba/config.h" 5 #include "ariba/utility/logging/Logging.h" 5 6 #include "transport_protocol.hpp" 6 7 #include "ariba/utility/addressing/endpoint_set.hpp" … … 29 30 /// protocols and can send messages to an entire set of endpoints 30 31 class transport_peer : public transport_protocol { 32 use_logging_h(transport_peer); 31 33 public: 32 34 transport_peer( endpoint_set& local_set ); -
source/ariba/utility/types
- Property svn:ignore deleted
-
source/ariba/utility/vtypes
- Property svn:ignore deleted
-
source/ariba/utility/vtypes/detail
- Property svn:ignore deleted
-
source/services
- Property svn:ignore deleted
Note:
See TracChangeset
for help on using the changeset viewer.