Changeset 5109:4f9fc788fe91 in roaraudio for libroar


Ignore:
Timestamp:
07/28/11 16:32:34 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Started to use compiler attributes (Also see: #130)

Location:
libroar
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • libroar/Makefile

    r5031 r5109  
    1414 
    1515#DEFINES        = -DDEBUG 
     16DEFINES+= -D_LIBROAR_NOATTR_WARNINGS 
    1617INCLUDE = -I../include -I../include/libroar 
    1718CFLAGS += -g -Wall $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC) 
  • libroar/basic.c

    r4945 r5109  
    157157    ) { 
    158158  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 ) 
    160160    return fh; 
    161161 
    162162   /* in case we can not connect to the server given this may be a cache problem, 
    163163      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"); 
    165165   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 ) 
    167167     return fh; 
    168168  } 
     
    175175 if ( list != NULL ) { 
    176176  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 ) { 
    178178    roar_enum_servers_free(list); 
    179179    return fh; 
     
    218218    strncat(user_sock, ROAR_DEFAULT_OBJECT, DN_MAXOBJL+2); 
    219219#else 
    220     ROAR_ERR("roar_connect_raw(*): size of DECnet object unknown."); 
     220    ROAR_ERR("roar_connect_raw2(*): size of DECnet object unknown."); 
    221221#endif 
    222222   } 
     
    235235  roar_err_set(ROAR_ERROR_CONNREFUSED); 
    236236 
    237  ROAR_DBG("roar_connect_raw(*) = %i", fh); 
     237 ROAR_DBG("roar_connect_raw2(*) = %i", fh); 
    238238 
    239239 return fh; 
  • libroar/debug.c

    r4936 r5109  
    6767   ROAR_WARN("%s(*): This function is obsolete. Please use %s(...). %s", func, newfunc, info == NULL ? "" : info); 
    6868  } 
     69 } 
     70} 
     71 
     72void 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); 
    6980 } 
    7081} 
  • libroar/enumdev.c

    r5027 r5109  
    5151 ROAR_DBG("_test_server(c=%p{.server='%s', ...}, flags=0x%.4X) = ?", c, c->server, flags); 
    5252 
    53  if ( roar_connect(&con, (char*)c->server) == -1 ) 
     53 if ( roar_connect2(&con, (char*)c->server, 0, 0) == -1 ) 
    5454  return -1; 
    5555 
  • libroar/socket.c

    r5098 r5109  
    3434 */ 
    3535 
     36#define _LIBROAR_NOATTR_TO_STATIC /* ignore warnings for TO_STATIC functions */ 
    3637#include "libroar.h" 
    3738 
  • libroar/vio.c

    r4973 r5109  
    3434 */ 
    3535 
     36#define _LIBROAR_NOATTR_TO_STATIC /* ignore warnings for TO_STATIC functions */ 
    3637#include "libroar.h" 
    3738 
  • libroar/vs.c

    r5078 r5109  
    854854 sockopt.optlen  = sizeof(val); 
    855855 
    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; 
    857858 
    858859 val /= 2; 
     
    864865 sockopt.optlen  = sizeof(val); 
    865866 
    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; 
    867869} 
    868870#endif 
Note: See TracChangeset for help on using the changeset viewer.