Changeset 64:93c00fbc439a in roaraudio
- Timestamp:
- 07/12/08 12:45:45 (16 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/include/sources.h
r0 r64 11 11 int sources_free (void); 12 12 13 int sources_set_client (int client); 14 13 15 int sources_add (char * driver, char * device, char * containe, char * options, int primary); 14 16 -
roard/roard.c
r63 r64 87 87 } 88 88 89 if ( (g_self_client = clients_new()) == -1 ) { 90 ROAR_ERR("Can not create self client!"); 91 return 1; 92 } 93 89 94 if ( sources_init() == -1 ) { 90 95 ROAR_ERR("Can not init sources!"); 96 return 1; 97 } 98 99 if ( (sources_set_client(g_self_client)) == -1 ) { 100 ROAR_ERR("Can not init set source client!"); 91 101 return 1; 92 102 } … … 187 197 188 198 189 if ( (g_self_client = clients_new()) == -1 ) {190 ROAR_ERR("Can not create self client!");191 return 1;192 }193 194 199 clients_set_pid(g_self_client, getpid()); 195 200 clients_get(g_self_client, &self); -
roard/sources.c
r0 r64 8 8 } 9 9 10 int sources_set_client (int client) { 11 if ( client >= 0 ) { 12 g_source_client = client; 13 return 0; 14 } else { 15 return -1; 16 } 17 } 10 18 11 19 int sources_free (void) {
Note: See TracChangeset
for help on using the changeset viewer.