Changeset 4934:a88414aa5705 in roaraudio for roard/roard.c
- Timestamp:
- 05/09/11 01:39:41 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/roard.c
r4924 r4934 248 248 " a flag as default or remove it from the default\n" 249 249 ); 250 printf("\nStream Options:\n\n"); 251 printf( 252 " --list-rolestack - Show the current role stack\n" 253 " --rolestack-push R:A - Add a rule for role R with action A on top\n" 254 " of the role stack.\n" 255 ); 250 256 251 257 printf("\nOutput Options:\n\n"); … … 1332 1338 struct roar_audio_info sa, max_sa; 1333 1339 struct roard_config config; 1340 const struct rolestack * rolestack; 1334 1341 #ifdef ROAR_HAVE_FORK 1335 1342 int daemon = 0; … … 1461 1468 #endif 1462 1469 1470 rolestack_init(); 1471 1463 1472 if ( auth_init() == -1 ) { 1464 1473 ROAR_ERR("Can not init auth subsystem!"); … … 1712 1721 return 1; 1713 1722 } 1723 1724 } else if ( strcmp(k, "--list-rolestack") == 0 ) { 1725 print_rolestack(); 1726 return 0; 1727 } else if ( strcmp(k, "--rolestack-push") == 0 ) { 1728 _CKHAVEARGS(1); 1729 if ( (rolestack = rolestack_parse(argv[++i])) == NULL ) { 1730 ROAR_ERR("Can not parse rolestack request: %s", roar_error2str(roar_error)); 1731 } else { 1732 if ( rolestack_push(rolestack) == -1 ) { 1733 ROAR_ERR("Can not push request to rolestack: %s", roar_error2str(roar_error)); 1734 } 1735 } 1714 1736 1715 1737 } else if ( strcmp(k, "--list-aiprofiles") == 0 ) {
Note: See TracChangeset
for help on using the changeset viewer.