[0] | 1 | //auth.h: |
---|
| 2 | |
---|
[690] | 3 | /* |
---|
| 4 | * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008 |
---|
| 5 | * |
---|
| 6 | * This file is part of libroar a part of RoarAudio, |
---|
| 7 | * a cross-platform sound system for both, home and professional use. |
---|
| 8 | * See README for details. |
---|
| 9 | * |
---|
| 10 | * This file is free software; you can redistribute it and/or modify |
---|
| 11 | * it under the terms of the GNU General Public License version 3 |
---|
| 12 | * as published by the Free Software Foundation. |
---|
| 13 | * |
---|
| 14 | * libroar is distributed in the hope that it will be useful, |
---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 17 | * GNU General Public License for more details. |
---|
| 18 | * |
---|
| 19 | * You should have received a copy of the GNU General Public License |
---|
| 20 | * along with this software; see the file COPYING. If not, write to |
---|
| 21 | * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
| 22 | * |
---|
| 23 | * NOTE for everyone want's to change something and send patches: |
---|
| 24 | * read README and HACKING! There a addition information on |
---|
| 25 | * the license of this document you need to read before you send |
---|
| 26 | * any patches. |
---|
| 27 | * |
---|
| 28 | * NOTE for uses of non-GPL (LGPL,...) software using libesd, libartsc |
---|
| 29 | * or libpulse*: |
---|
| 30 | * The libs libroaresd, libroararts and libroarpulse link this lib |
---|
| 31 | * and are therefore GPL. Because of this it may be illigal to use |
---|
| 32 | * them with any software that uses libesd, libartsc or libpulse*. |
---|
| 33 | */ |
---|
| 34 | |
---|
[0] | 35 | #ifndef _LIBROARCTL_H_ |
---|
| 36 | #define _LIBROARCTL_H_ |
---|
| 37 | |
---|
| 38 | #include "libroar.h" |
---|
| 39 | |
---|
| 40 | #define ROAR_CTL_FILTER_ANY 0 |
---|
| 41 | |
---|
[1162] | 42 | int roar_get_clientid (struct roar_connection * con); |
---|
[0] | 43 | |
---|
| 44 | int roar_get_standby (struct roar_connection * con); |
---|
| 45 | int roar_set_standby (struct roar_connection * con, int state); |
---|
| 46 | |
---|
[578] | 47 | int roar_exit (struct roar_connection * con); |
---|
| 48 | int roar_terminate (struct roar_connection * con, int terminate); |
---|
[0] | 49 | int roar_server_oinfo (struct roar_connection * con, struct roar_stream * s); |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | int roar_list (struct roar_connection * con, int * items, int max, int cmd); |
---|
| 53 | |
---|
| 54 | /* |
---|
| 55 | int roar_list_clients (struct roar_connection * con, int * clients, int max); |
---|
| 56 | int roar_list_streams (struct roar_connection * con, int * streams, int max); |
---|
| 57 | */ |
---|
| 58 | #define roar_list_clients(c,i,m) roar_list((c),(i),(m),ROAR_CMD_LIST_CLIENTS) |
---|
| 59 | #define roar_list_streams(c,i,m) roar_list((c),(i),(m),ROAR_CMD_LIST_STREAMS) |
---|
| 60 | |
---|
| 61 | int roar_get_client (struct roar_connection * con, struct roar_client * client, int id); |
---|
| 62 | int roar_get_stream (struct roar_connection * con, struct roar_stream * stream, int id); |
---|
| 63 | |
---|
| 64 | int roar_kick (struct roar_connection * con, int type, int id); |
---|
| 65 | |
---|
[27] | 66 | int roar_set_vol (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int channels); |
---|
| 67 | int roar_get_vol (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int * channels); |
---|
[17] | 68 | |
---|
[0] | 69 | // filter... |
---|
| 70 | int roar_ctl_f2m (struct roar_message * m, unsigned char filter, unsigned char cmp, uint32_t id); |
---|
| 71 | int roar_ctl_m2f (struct roar_message * m, unsigned char * filter, unsigned char * cmp, uint32_t * id); |
---|
| 72 | #define roar_ctl_f2m_any(m) roar_ctl_f2m((m), ROAR_CTL_FILTER_ANY, ROAR_CTL_FILTER_ANY, ROAR_CTL_FILTER_ANY) |
---|
| 73 | |
---|
| 74 | // int array |
---|
| 75 | int roar_ctl_ia2m (struct roar_message * m, int * data, int len); |
---|
| 76 | int roar_ctl_m2ia (struct roar_message * m, int * data, int len); |
---|
| 77 | |
---|
| 78 | // client |
---|
| 79 | int roar_ctl_c2m (struct roar_message * m, struct roar_client * c); |
---|
| 80 | int roar_ctl_m2c (struct roar_message * m, struct roar_client * c); |
---|
| 81 | |
---|
[2548] | 82 | int roar_str2proto (char * proto); |
---|
| 83 | char * roar_proto2str (int proto); |
---|
| 84 | |
---|
[2615] | 85 | int roar_str2byteorder (char * byteorder); |
---|
| 86 | char * roar_byteorder2str (int byteorder); |
---|
| 87 | |
---|
[0] | 88 | #endif |
---|
| 89 | |
---|
| 90 | //ll |
---|