An Overlay-based
Virtual Network Substrate
SpoVNet

Ignore:
Timestamp:
Aug 22, 2012, 2:09:00 PM (7 years ago)
Author:
Michael Tänzer
Message:

Merge CMake branch into trunk

Location:
source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • source

    • Property svn:ignore deleted
  • source/ariba

    • Property svn:ignore deleted
  • source/ariba/utility

    • Property svn:ignore deleted
  • 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  
    4040#include "ariba/overlay/OverlayBootstrap.h"
    4141
    42 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
     42#ifdef HAVE_LIBBLUETOOTH
    4343
    4444// Attribute descriptors for SDP
     
    5858const char *service_prov = "ITM Uni Karlsruhe";
    5959
    60 #endif // HAVE_BLUETOOTH_BLUETOOTH_H
     60#endif // HAVE_LIBBLUETOOTH
    6161
    6262
     
    6464namespace utility {
    6565
    66 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
     66#ifdef HAVE_LIBBLUETOOTH
    6767static bdaddr_t bd_addr_any = {{0, 0, 0, 0, 0, 0}};
    6868static bdaddr_t bd_addr_local = {{0, 0, 0, 0xff, 0xff, 0xff}};
     
    7575        : BootstrapModule(_callback), scan_timer_(io_service_) {
    7676        srand( time(NULL) );
    77 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
     77#ifdef HAVE_LIBBLUETOOTH
    7878
    7979        // This can be ignored, as the channel we really be saved in one
    8080        // of the info strings (as an attribute)
    8181        channel_ = 1;
    82 #endif // HAVE_BLUETOOTH_BLUETOOTH_H
     82#endif // HAVE_LIBBLUETOOTH
    8383}
    8484
     
    9595
    9696bool BluetoothSdp::isFunctional() {
    97 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
     97#ifdef HAVE_LIBBLUETOOTH
    9898        return true;
    9999#else
     
    103103
    104104void BluetoothSdp::start() {
    105 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
     105#ifdef HAVE_LIBBLUETOOTH
    106106
    107107        /*
     
    112112        t_ = boost::thread(boost::bind(&boost::asio::io_service::run, &io_service_));
    113113
    114 #endif // HAVE_BLUETOOTH_BLUETOOTH_H
     114#endif // HAVE_LIBBLUETOOTH
    115115}
    116116
    117117void BluetoothSdp::stop() {
    118 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
     118#ifdef HAVE_LIBBLUETOOTH
    119119
    120120        /*
     
    129129                sdp_close(sdp_session_);
    130130
    131 #endif // HAVE_BLUETOOTH_BLUETOOTH_H
     131#endif // HAVE_LIBBLUETOOTH
    132132}
    133133
    134134void BluetoothSdp::publishService(string name, string info1, string info2,
    135135                string info3) {
    136 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
     136#ifdef HAVE_LIBBLUETOOTH
    137137
    138138        /*
     
    244244        sdp_list_free(profile_list, 0);
    245245
    246 #endif // HAVE_BLUETOOTH_BLUETOOTH_H
     246#endif // HAVE_LIBBLUETOOTH
    247247}
    248248
    249249void BluetoothSdp::revokeService(string name) {
    250 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
     250#ifdef HAVE_LIBBLUETOOTH
    251251
    252252        logging_debug("unregistering SDP service");
    253253        sdp_close(sdp_session_);
    254254
    255 #endif // HAVE_BLUETOOTH_BLUETOOTH_H
    256 }
    257 
    258 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
     255#endif // HAVE_LIBBLUETOOTH
     256}
     257
     258#ifdef HAVE_LIBBLUETOOTH
    259259
    260260void BluetoothSdp::bt_scan() {
     
    461461}
    462462
    463 #endif // HAVE_BLUETOOTH_BLUETOOTH_H
     463#endif // HAVE_LIBBLUETOOTH
    464464
    465465}} //namespace ariba, utility
Note: See TracChangeset for help on using the changeset viewer.