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

Merge CMake branch into trunk

Location:
source
Files:
4 added
9 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
  • source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.h

    r7532 r10700  
    5454#include "ariba/utility/logging/Logging.h"
    5555
    56 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
     56#ifdef HAVE_LIBBLUETOOTH
    5757  #include <bluetooth/bluetooth.h>
    5858  #include <bluetooth/sdp.h>
     
    9494private:
    9595
    96 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
     96#ifdef HAVE_LIBBLUETOOTH
    9797        void bt_scan();
    9898        void sdp_search(bdaddr_t target, string devicename);
     
    104104
    105105        bool haveConnections();
    106 #endif // HAVE_BLUETOOTH_BLUETOOTH_H
     106#endif // HAVE_LIBBLUETOOTH
    107107
    108108        boost::asio::io_service io_service_;
  • source/ariba/utility/bootstrap/modules/multicastdns/MulticastDns.cpp

    r7532 r10700  
    4848MulticastDns::MulticastDns(BootstrapInformationCallback* _callback, string info)
    4949        : BootstrapModule(_callback) {
    50   #ifdef HAVE_AVAHI_CLIENT_CLIENT_H
     50  #ifdef HAVE_AVAHI
    5151        avahiclient = NULL;
    5252        avahipoll = NULL;
    5353        avahibrowser = NULL;
    54   #endif // HAVE_AVAHI_CLIENT_CLIENT_H
     54  #endif // HAVE_AVAHI
    5555}
    5656
     
    6767
    6868bool MulticastDns::isFunctional(){
    69   #ifdef HAVE_AVAHI_CLIENT_CLIENT_H
     69  #ifdef HAVE_AVAHI
    7070        return true;
    7171  #else
     
    7575
    7676void MulticastDns::start(){
    77   #ifdef HAVE_AVAHI_CLIENT_CLIENT_H
     77  #ifdef HAVE_AVAHI
    7878
    7979        int error = 0;
     
    119119        avahi_threaded_poll_start( avahipoll );
    120120
    121   #endif // HAVE_AVAHI_CLIENT_CLIENT_H
     121  #endif // HAVE_AVAHI
    122122}
    123123
    124124void MulticastDns::stop(){
    125   #ifdef HAVE_AVAHI_CLIENT_CLIENT_H
     125  #ifdef HAVE_AVAHI
    126126
    127127        //
     
    155155        avahipoll = NULL;
    156156
    157   #endif // HAVE_AVAHI_CLIENT_CLIENT_H
     157  #endif // HAVE_AVAHI
    158158}
    159159
    160160void MulticastDns::publishService(string name, string info1, string info2, string info3){
    161   #ifdef HAVE_AVAHI_CLIENT_CLIENT_H
     161  #ifdef HAVE_AVAHI
    162162
    163163        if(name.length() > 63){
     
    234234        avahi_threaded_poll_unlock(avahipoll);
    235235
    236   #endif // HAVE_AVAHI_CLIENT_CLIENT_H
     236  #endif // HAVE_AVAHI
    237237}
    238238
    239239void MulticastDns::revokeService(string name){
    240   #ifdef HAVE_AVAHI_CLIENT_CLIENT_H
     240  #ifdef HAVE_AVAHI
    241241
    242242        avahi_threaded_poll_lock(avahipoll);
     
    254254        avahi_threaded_poll_unlock(avahipoll);
    255255
    256   #endif // HAVE_AVAHI_CLIENT_CLIENT_H
    257 }
    258 
    259 #ifdef HAVE_AVAHI_CLIENT_CLIENT_H
     256  #endif // HAVE_AVAHI
     257}
     258
     259#ifdef HAVE_AVAHI
    260260
    261261void MulticastDns::client_callback(AvahiClient* client, AvahiClientState state, void* userdata){
     
    440440}
    441441
    442 #endif // HAVE_AVAHI_CLIENT_CLIENT_H
     442#endif // HAVE_AVAHI
    443443
    444444}} //namespace ariba, utility
  • source/ariba/utility/bootstrap/modules/multicastdns/MulticastDns.h

    r7532 r10700  
    4242#include "ariba/config.h"
    4343
    44 #ifdef HAVE_AVAHI_CLIENT_CLIENT_H
     44#ifdef HAVE_AVAHI
    4545  #include <avahi-client/client.h>
    4646  #include <avahi-client/lookup.h>
     
    5151  #include <avahi-common/error.h>
    5252  #include <avahi-common/timeval.h>
    53 #endif // HAVE_AVAHI_CLIENT_CLIENT_H
     53#endif // HAVE_AVAHI
    5454
    5555#include <iostream>
     
    8686        static const string serviceType;
    8787
    88 #ifdef HAVE_AVAHI_CLIENT_CLIENT_H
     88#ifdef HAVE_AVAHI
    8989
    9090        AvahiClient*         avahiclient;
     
    133133                        );
    134134
    135 #endif // HAVE_AVAHI_CLIENT_CLIENT_H
     135#endif // HAVE_AVAHI
    136136
    137137};
  • source/ariba/utility/bootstrap/modules/periodicbroadcast

    • Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset for help on using the changeset viewer.