Changeset 3375:9187507cb0dd in roaraudio for libroar


Ignore:
Timestamp:
02/10/10 16:21:28 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support for x11-server in options string

Location:
libroar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroar/config.c

    r3219 r3375  
    5353  if ( home != NULL ) { 
    5454   snprintf(authfile, 1023, "%s/.roarauth", home); 
    55    authfile[1023]  = 0; 
    56    config.authfile = authfile; 
     55   authfile[1023]     = 0; 
     56   config.authfile    = authfile; 
    5757  } 
    5858 
     
    245245   strncpy(config->authfile, v, 1023); 
    246246   config->authfile[1023] = 0; 
     247  } else if ( !strcmp(k, "x11-display") ) { 
     248   config->x11.display = v; 
    247249  } else { 
    248250   ROAR_WARN("roar_libroar_config_parse(*): Unknown option: %s", k); 
  • libroar/roarx11.c

    r3372 r3375  
    3737struct roar_x11_connection * roar_x11_connect(char * display) { 
    3838#ifdef ROAR_HAVE_LIBX11 
     39 struct roar_libroar_config * config = roar_libroar_get_config(); 
    3940 struct roar_x11_connection * con; 
     41 
     42 if ( display == NULL ) 
     43  display = config->x11.display; 
    4044 
    4145 if ( (con = roar_mm_malloc(sizeof(struct roar_x11_connection))) == NULL ) 
Note: See TracChangeset for help on using the changeset viewer.