Changeset 3788:fe1762804632 in roaraudio for libroar/slp.c
- Timestamp:
- 05/07/10 15:44:52 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/slp.c
r3517 r3788 36 36 #include "libroar.h" 37 37 38 #if defined(ROAR_HAVE_LIBSLP) && defined(ROAR_HAVE_TIME) 39 #define _CAN_OPERATE 40 #endif 41 38 42 SLPBoolean roar_slp_url_callback(SLPHandle hslp, 39 43 const char * srvurl, … … 41 45 SLPError errcode, 42 46 void * cookie) { 43 #ifdef ROAR_HAVE_LIBSLP47 #ifdef _CAN_OPERATE 44 48 struct roar_slp_cookie * self = cookie; 45 49 … … 78 82 79 83 int roar_slp_search (struct roar_slp_cookie * cookie, char * type) { 80 #ifdef ROAR_HAVE_LIBSLP84 #ifdef _CAN_OPERATE 81 85 SLPError err; 82 86 SLPHandle hslp; … … 151 155 152 156 int roar_slp_find_roard_r (char * addr, size_t len, int nocache) { 157 #ifdef _CAN_OPERATE 153 158 static struct roar_slp_match cache = {"", 0}; 154 159 struct roar_slp_cookie cookie; … … 207 212 208 213 return 0; 214 #else 215 return -1; 216 #endif 209 217 } 210 218
Note: See TracChangeset
for help on using the changeset viewer.