Changeset 5109:4f9fc788fe91 in roaraudio for include/libroar/ctl.h
- Timestamp:
- 07/28/11 16:32:34 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/ctl.h
r4740 r5109 39 39 #include "libroar.h" 40 40 41 int roar_get_clientid (struct roar_connection * con); 41 #define _LIBROAR_CTL_STDATTRS _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL 42 42 43 int roar_get_standby (struct roar_connection * con); 44 int roar_set_standby (struct roar_connection * con, int state); 43 int roar_get_clientid (struct roar_connection * con) _LIBROAR_CTL_STDATTRS; 45 44 46 int roar_exit (struct roar_connection * con); 47 int roar_terminate (struct roar_connection * con, int terminate); 48 int roar_server_oinfo (struct roar_connection * con, struct roar_stream * s); 49 int roar_server_oinfo2 (struct roar_connection * con, struct roar_stream * s, int dir); 45 int roar_get_standby (struct roar_connection * con) _LIBROAR_CTL_STDATTRS; 46 int roar_set_standby (struct roar_connection * con, int state) _LIBROAR_CTL_STDATTRS; 47 48 int roar_exit (struct roar_connection * con) _LIBROAR_CTL_STDATTRS _LIBROAR_ATTR_DEPRECATED; 49 int roar_terminate (struct roar_connection * con, int terminate) _LIBROAR_CTL_STDATTRS; 50 int roar_server_oinfo (struct roar_connection * con, struct roar_stream * s) _LIBROAR_CTL_STDATTRS _LIBROAR_ATTR_DEPRECATED; 51 int roar_server_oinfo2 (struct roar_connection * con, struct roar_stream * s, int dir) _LIBROAR_CTL_STDATTRS; 50 52 51 53 52 int roar_list (struct roar_connection * con, int * items, int max, int cmd) ;53 int roar_list_filtered(struct roar_connection * con, int * items, int max, int cmd, unsigned char filter, unsigned char cmp, uint32_t id) ;54 int roar_list (struct roar_connection * con, int * items, int max, int cmd) _LIBROAR_CTL_STDATTRS; 55 int roar_list_filtered(struct roar_connection * con, int * items, int max, int cmd, unsigned char filter, unsigned char cmp, uint32_t id) _LIBROAR_CTL_STDATTRS; 54 56 55 57 /* … … 60 62 #define roar_list_streams(c,i,m) roar_list((c),(i),(m),ROAR_CMD_LIST_STREAMS) 61 63 62 int roar_get_client (struct roar_connection * con, struct roar_client * client, int id) ;63 int roar_get_stream (struct roar_connection * con, struct roar_stream * stream, int id) ;64 int roar_get_client (struct roar_connection * con, struct roar_client * client, int id) _LIBROAR_CTL_STDATTRS; 65 int roar_get_stream (struct roar_connection * con, struct roar_stream * stream, int id) _LIBROAR_CTL_STDATTRS; 64 66 65 int roar_kick (struct roar_connection * con, int type, int id) ;67 int roar_kick (struct roar_connection * con, int type, int id) _LIBROAR_CTL_STDATTRS; 66 68 67 int roar_set_vol (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int channels) ;68 int roar_set_vol2 (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int channels, int mode) ;69 int roar_get_vol (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int * channels) ;69 int roar_set_vol (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int channels) _LIBROAR_CTL_STDATTRS _LIBROAR_ATTR_DEPRECATED; 70 int roar_set_vol2 (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int channels, int mode) _LIBROAR_CTL_STDATTRS; 71 int roar_get_vol (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int * channels) _LIBROAR_CTL_STDATTRS; 70 72 71 73 // filter... … … 74 76 #define roar_ctl_f2m_any(m) roar_ctl_f2m((m), ROAR_CTL_FILTER_ANY, ROAR_CTL_FILTER_ANY, ROAR_CTL_FILTER_ANY) 75 77 76 int roar_filter_match (const unsigned cmp, const uint32_t a, const uint32_t b) ;78 int roar_filter_match (const unsigned cmp, const uint32_t a, const uint32_t b) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 77 79 78 80 // int array … … 84 86 int roar_ctl_m2c (struct roar_message * m, struct roar_client * c); 85 87 86 int roar_str2proto (char * proto) ;87 char * roar_proto2str (int proto) ;88 int roar_str2proto (char * proto) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 89 char * roar_proto2str (int proto) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 88 90 89 int roar_str2byteorder (char * byteorder) ;90 char * roar_byteorder2str (int byteorder) ;91 int roar_str2byteorder (char * byteorder) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 92 char * roar_byteorder2str (int byteorder) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 91 93 92 int roar_str2ot (const char * ot) ;93 const char * roar_ot2str (const int ot) ;94 int roar_str2ot (const char * ot) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 95 const char * roar_ot2str (const int ot) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 94 96 95 int roar_conv_volume (struct roar_mixer_settings * dst, struct roar_mixer_settings * src, int dstchans, int srcchans) ;97 int roar_conv_volume (struct roar_mixer_settings * dst, struct roar_mixer_settings * src, int dstchans, int srcchans) _LIBROAR_CTL_STDATTRS; 96 98 97 99 #endif
Note: See TracChangeset
for help on using the changeset viewer.