Changeset 5109:4f9fc788fe91 in roaraudio for libroar
- Timestamp:
- 07/28/11 16:32:34 (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroar
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/Makefile
r5031 r5109 14 14 15 15 #DEFINES = -DDEBUG 16 DEFINES+= -D_LIBROAR_NOATTR_WARNINGS 16 17 INCLUDE = -I../include -I../include/libroar 17 18 CFLAGS += -g -Wall $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC) -
libroar/basic.c
r4945 r5109 157 157 ) { 158 158 if ( (server = roar_slp_find_roard(0)) != NULL ) { 159 if ( (fh = roar_connect_raw (server)) != -1 )159 if ( (fh = roar_connect_raw2(server, 0, 0)) != -1 ) 160 160 return fh; 161 161 162 162 /* in case we can not connect to the server given this may be a cache problem, 163 163 we do a new lookup with the cache disabled in this case */ 164 ROAR_WARN("roar_connect_raw (*): Can not connect to SLP located server, disabling cache");164 ROAR_WARN("roar_connect_raw2(*): Can not connect to SLP located server, disabling cache"); 165 165 if ( (server = roar_slp_find_roard(1)) != NULL ) 166 if ( (fh = roar_connect_raw (server)) != -1 )166 if ( (fh = roar_connect_raw2(server, 0, 0)) != -1 ) 167 167 return fh; 168 168 } … … 175 175 if ( list != NULL ) { 176 176 for (i = 0; list[i].server != NULL; i++) { 177 if ( (fh = roar_connect_raw ((char*)list[i].server)) != -1 ) {177 if ( (fh = roar_connect_raw2((char*)list[i].server, 0, 0)) != -1 ) { 178 178 roar_enum_servers_free(list); 179 179 return fh; … … 218 218 strncat(user_sock, ROAR_DEFAULT_OBJECT, DN_MAXOBJL+2); 219 219 #else 220 ROAR_ERR("roar_connect_raw (*): size of DECnet object unknown.");220 ROAR_ERR("roar_connect_raw2(*): size of DECnet object unknown."); 221 221 #endif 222 222 } … … 235 235 roar_err_set(ROAR_ERROR_CONNREFUSED); 236 236 237 ROAR_DBG("roar_connect_raw (*) = %i", fh);237 ROAR_DBG("roar_connect_raw2(*) = %i", fh); 238 238 239 239 return fh; -
libroar/debug.c
r4936 r5109 67 67 ROAR_WARN("%s(*): This function is obsolete. Please use %s(...). %s", func, newfunc, info == NULL ? "" : info); 68 68 } 69 } 70 } 71 72 void roar_debug_bin_obsolete(const char * progname, const char * newprog, const char * info) { 73 if ( info == NULL ) 74 info = ""; 75 76 if ( newprog == NULL ) { 77 roar_debug_msg(ROAR_DEBUG_TYPE_ERROR, 0, progname, ROAR_DBG_PREFIX, "This program is obsolete and will be removed soon. %s", info); 78 } else { 79 roar_debug_msg(ROAR_DEBUG_TYPE_ERROR, 0, progname, ROAR_DBG_PREFIX, "This program is obsolete and will be removed soon. Please use %s. %s", newprog, info); 69 80 } 70 81 } -
libroar/enumdev.c
r5027 r5109 51 51 ROAR_DBG("_test_server(c=%p{.server='%s', ...}, flags=0x%.4X) = ?", c, c->server, flags); 52 52 53 if ( roar_connect (&con, (char*)c->server) == -1 )53 if ( roar_connect2(&con, (char*)c->server, 0, 0) == -1 ) 54 54 return -1; 55 55 -
libroar/socket.c
r5098 r5109 34 34 */ 35 35 36 #define _LIBROAR_NOATTR_TO_STATIC /* ignore warnings for TO_STATIC functions */ 36 37 #include "libroar.h" 37 38 -
libroar/vio.c
r4973 r5109 34 34 */ 35 35 36 #define _LIBROAR_NOATTR_TO_STATIC /* ignore warnings for TO_STATIC functions */ 36 37 #include "libroar.h" 37 38 -
libroar/vs.c
r5078 r5109 854 854 sockopt.optlen = sizeof(val); 855 855 856 roar_vio_ctl(&(vss->vio), ROAR_VIO_CTL_GET_SYSIO_SOCKOPT, &sockopt); 856 if ( roar_vio_ctl(&(vss->vio), ROAR_VIO_CTL_GET_SYSIO_SOCKOPT, &sockopt) == -1 ) 857 return; 857 858 858 859 val /= 2; … … 864 865 sockopt.optlen = sizeof(val); 865 866 866 roar_vio_ctl(&(vss->vio), ROAR_VIO_CTL_SET_SYSIO_SOCKOPT, &sockopt); 867 if ( roar_vio_ctl(&(vss->vio), ROAR_VIO_CTL_SET_SYSIO_SOCKOPT, &sockopt) == -1 ) 868 return; 867 869 } 868 870 #endif
Note: See TracChangeset
for help on using the changeset viewer.