[0] | 1 | //auth.h: |
---|
| 2 | |
---|
| 3 | #ifndef _LIBROARCTL_H_ |
---|
| 4 | #define _LIBROARCTL_H_ |
---|
| 5 | |
---|
| 6 | #include "libroar.h" |
---|
| 7 | |
---|
| 8 | #define ROAR_CTL_FILTER_ANY 0 |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | int roar_get_standby (struct roar_connection * con); |
---|
| 12 | int roar_set_standby (struct roar_connection * con, int state); |
---|
| 13 | |
---|
| 14 | int roar_exit (struct roar_connection * con); |
---|
| 15 | int roar_server_oinfo (struct roar_connection * con, struct roar_stream * s); |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | int roar_list (struct roar_connection * con, int * items, int max, int cmd); |
---|
| 19 | |
---|
| 20 | /* |
---|
| 21 | int roar_list_clients (struct roar_connection * con, int * clients, int max); |
---|
| 22 | int roar_list_streams (struct roar_connection * con, int * streams, int max); |
---|
| 23 | */ |
---|
| 24 | #define roar_list_clients(c,i,m) roar_list((c),(i),(m),ROAR_CMD_LIST_CLIENTS) |
---|
| 25 | #define roar_list_streams(c,i,m) roar_list((c),(i),(m),ROAR_CMD_LIST_STREAMS) |
---|
| 26 | |
---|
| 27 | int roar_get_client (struct roar_connection * con, struct roar_client * client, int id); |
---|
| 28 | int roar_get_stream (struct roar_connection * con, struct roar_stream * stream, int id); |
---|
| 29 | |
---|
| 30 | int roar_kick (struct roar_connection * con, int type, int id); |
---|
| 31 | |
---|
[27] | 32 | int roar_set_vol (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int channels); |
---|
| 33 | int roar_get_vol (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int * channels); |
---|
[17] | 34 | |
---|
[0] | 35 | // filter... |
---|
| 36 | int roar_ctl_f2m (struct roar_message * m, unsigned char filter, unsigned char cmp, uint32_t id); |
---|
| 37 | int roar_ctl_m2f (struct roar_message * m, unsigned char * filter, unsigned char * cmp, uint32_t * id); |
---|
| 38 | #define roar_ctl_f2m_any(m) roar_ctl_f2m((m), ROAR_CTL_FILTER_ANY, ROAR_CTL_FILTER_ANY, ROAR_CTL_FILTER_ANY) |
---|
| 39 | |
---|
| 40 | // int array |
---|
| 41 | int roar_ctl_ia2m (struct roar_message * m, int * data, int len); |
---|
| 42 | int roar_ctl_m2ia (struct roar_message * m, int * data, int len); |
---|
| 43 | |
---|
| 44 | // client |
---|
| 45 | int roar_ctl_c2m (struct roar_message * m, struct roar_client * c); |
---|
| 46 | int roar_ctl_m2c (struct roar_message * m, struct roar_client * c); |
---|
| 47 | |
---|
| 48 | #endif |
---|
| 49 | |
---|
| 50 | //ll |
---|