Changeset 3375:9187507cb0dd in roaraudio for libroar
- Timestamp:
- 02/10/10 16:21:28 (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/config.c
r3219 r3375 53 53 if ( home != NULL ) { 54 54 snprintf(authfile, 1023, "%s/.roarauth", home); 55 authfile[1023] = 0;56 config.authfile = authfile;55 authfile[1023] = 0; 56 config.authfile = authfile; 57 57 } 58 58 … … 245 245 strncpy(config->authfile, v, 1023); 246 246 config->authfile[1023] = 0; 247 } else if ( !strcmp(k, "x11-display") ) { 248 config->x11.display = v; 247 249 } else { 248 250 ROAR_WARN("roar_libroar_config_parse(*): Unknown option: %s", k); -
libroar/roarx11.c
r3372 r3375 37 37 struct roar_x11_connection * roar_x11_connect(char * display) { 38 38 #ifdef ROAR_HAVE_LIBX11 39 struct roar_libroar_config * config = roar_libroar_get_config(); 39 40 struct roar_x11_connection * con; 41 42 if ( display == NULL ) 43 display = config->x11.display; 40 44 41 45 if ( (con = roar_mm_malloc(sizeof(struct roar_x11_connection))) == NULL )
Note: See TracChangeset
for help on using the changeset viewer.