Changeset 3375:9187507cb0dd in roaraudio
- Timestamp:
- 02/10/10 16:21:28 (14 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r3343 r3375 1 1 v. 0.3beta5 - ? 2 2 * added tool roardtmf 3 * Support to store server address in X11's root window propertys 3 4 4 5 v. 0.3beta4 - Sat Feb 06 2010 26:02 CET -
include/libroar/config.h
r3218 r3375 93 93 struct roar_audio_info info; 94 94 char * authfile; 95 struct { 96 char * display; 97 } x11; 95 98 }; 96 99 -
include/libroar/roarx11.h
r3372 r3375 49 49 int roar_x11_disconnect(struct roar_x11_connection * con); 50 50 51 #define roar_x11_get_display(con) ((con) == NULL ? NULL : (con)->display) 52 51 53 int roar_x11_set_prop(struct roar_x11_connection * con, const char * key, const char * val); 52 54 int roar_x11_delete_prop(struct roar_x11_connection * con, const char * key); -
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.