Changeset 4577:e9b3b3b521dd in roaraudio for roard/roard.c


Ignore:
Timestamp:
11/02/10 21:31:36 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Announce standards via OpenSLP (Closes: #5)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r4482 r4577  
    13251325 char * location; 
    13261326 char * description; 
     1327 char * standards; 
    13271328 
    13281329 if ( sockname != NULL ) 
     
    13521353  } 
    13531354 
     1355  standards = stds_string(); 
     1356 
     1357  if ( standards == NULL ) { 
     1358   if ( (standards = roar_mm_malloc(1)) == NULL ) { 
     1359    SLPClose(hslp); 
     1360    return -1; 
     1361   } 
     1362   standards[0] = 0; 
     1363  } 
     1364 
    13541365  snprintf(attr, sizeof(attr), "(wave-rate=%i),(wave-channels=%i),(wave-bits=%i)," 
    13551366#ifndef ROAR_WITHOUT_DCOMP_LIGHT 
    13561367                               "(light-channels=%i)," 
    13571368#endif 
     1369                               "(standards=%s)," 
    13581370                               "(location=%s),(description=%s)", 
    13591371           g_sa->rate, g_sa->channels, g_sa->bits, 
     
    13611373           g_light_state.channels, 
    13621374#endif 
     1375           standards, 
    13631376           location, description 
    13641377          ); 
     1378 
     1379  roar_mm_free(standards); 
    13651380 
    13661381  /* Register a service with SLP */ 
Note: See TracChangeset for help on using the changeset viewer.