source: roaraudio/include/libroar/ctl.h @ 27:87f2808d4c17

Last change on this file since 27:87f2808d4c17 was 27:87f2808d4c17, checked in by phi, 16 years ago

added prototype and some protection code for roar_get_vol()

File size: 1.9 KB
Line 
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
11int roar_get_standby   (struct roar_connection * con);
12int roar_set_standby   (struct roar_connection * con, int state);
13
14int roar_exit   (struct roar_connection * con);
15int roar_server_oinfo   (struct roar_connection * con, struct roar_stream * s);
16
17
18int roar_list         (struct roar_connection * con, int * items,   int max, int cmd);
19
20/*
21int roar_list_clients (struct roar_connection * con, int * clients, int max);
22int 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
27int roar_get_client   (struct roar_connection * con, struct roar_client * client, int id);
28int roar_get_stream   (struct roar_connection * con, struct roar_stream * stream, int id);
29
30int roar_kick         (struct roar_connection * con, int type, int id);
31
32int roar_set_vol      (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int   channels);
33int roar_get_vol      (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int * channels);
34
35// filter...
36int roar_ctl_f2m      (struct roar_message * m, unsigned char   filter, unsigned char   cmp, uint32_t   id);
37int 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
41int roar_ctl_ia2m     (struct roar_message * m, int * data, int len);
42int roar_ctl_m2ia     (struct roar_message * m, int * data, int len);
43
44// client
45int roar_ctl_c2m      (struct roar_message * m, struct roar_client * c);
46int roar_ctl_m2c      (struct roar_message * m, struct roar_client * c);
47
48#endif
49
50//ll
Note: See TracBrowser for help on using the repository browser.