Changeset 10700 for source/ariba/utility/bootstrap/modules/multicastdns
- Timestamp:
- Aug 22, 2012, 2:09:00 PM (12 years ago)
- Location:
- source
- Files:
-
- 1 added
- 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/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 };
Note:
See TracChangeset
for help on using the changeset viewer.