Changeset 4934:a88414aa5705 in roaraudio for roard/include/rolestack.h


Ignore:
Timestamp:
05/09/11 01:39:41 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Added support for role based handling in roard (Closes: #49)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/include/rolestack.h

    r4932 r4934  
    2929#include <roaraudio.h> 
    3030 
     31enum rs_action { 
     32 RS_ERROR = -1, 
     33 RS_MIX = 0, 
     34 RS_KICK, 
     35 RS_MUTE, 
     36 RS_PAUSE 
     37}; 
     38 
     39struct rolestack { 
     40 int index; 
     41 int role; 
     42 enum rs_action action; 
     43}; 
     44 
     45void rolestack_init(void); 
     46void print_rolestack(void); 
     47 
     48const struct rolestack * rolestack_get_role(int role); 
     49int rolestack_push(const struct rolestack * role); 
     50 
     51enum rs_action rolestack_str2action(const char * str); 
     52const char * rolestack_action2str(enum rs_action action); 
     53 
     54const struct rolestack * rolestack_parse(const char * str); 
     55 
    3156#endif 
    3257 
Note: See TracChangeset for help on using the changeset viewer.