• Main Page
  • Data Structures
  • Files
  • File List
  • Globals

include/aroarfw/proto.h

Go to the documentation of this file.
00001 //proto.h:
00002 
00003 /*
00004  *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2010
00005  *
00006  *  This file is part of aroarfw, a RoarAudio framework for
00007  *  embedded systems (µControlers).
00008  *
00009  *  This file is free software; you can redistribute it and/or modify
00010  *  it under the terms of the GNU General Public License version 3
00011  *  or (at your option) any later version as published by
00012  *  the Free Software Foundation.
00013  *
00014  *  aroarfw is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  *  GNU General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU General Public License
00020  *  along with this software; see the file COPYING.  If not, write to
00021  *  the Free Software Foundation, 51 Franklin Street, Fifth Floor,
00022  *  Boston, MA 02110-1301, USA.
00023  */
00024 
00025 #ifndef _AROARFW_PROTO_H_
00026 #define _AROARFW_PROTO_H_
00027 
00029 typedef enum {
00030 // grep ^'#define MUROAR_CMD_' muroar.h  | sed 's/  */ /g; s/^#define MUROAR_/R/;' | while read c i d; do printf " //! XXX\n %-24s = %3i,\n" $c $i; done
00032  RCMD_NOOP                =   0,
00034  RCMD_IDENTIFY            =   1,
00036  RCMD_AUTH                =   2,
00038  RCMD_NEW_STREAM          =   3,
00040  RCMD_SET_META            =   4,
00042  RCMD_EXEC_STREAM         =   5,
00044  RCMD_QUIT                =   6,
00046  RCMD_GET_STANDBY         =   7,
00048  RCMD_SET_STANDBY         =   8,
00050  RCMD_SERVER_INFO         =   9,
00052  RCMD_SERVER_STATS        =  10,
00054  RCMD_SERVER_OINFO        =  11,
00056  RCMD_ADD_DATA            =  12,
00058  RCMD_EXIT                =  13,
00060  RCMD_LIST_STREAMS        =  14,
00062  RCMD_LIST_CLIENTS        =  15,
00064  RCMD_GET_CLIENT          =  16,
00066  RCMD_GET_STREAM          =  17,
00068  RCMD_KICK                =  18,
00070  RCMD_SET_VOL             =  19,
00072  RCMD_GET_VOL             =  20,
00074  RCMD_CON_STREAM          =  21,
00076  RCMD_GET_META            =  22,
00078  RCMD_LIST_META           =  23,
00080  RCMD_BEEP                =  24,
00082  RCMD_GET_ACL             =  25,
00084  RCMD_SET_ACL             =  26,
00086  RCMD_GET_STREAM_PARA     =  27,
00088  RCMD_SET_STREAM_PARA     =  28,
00090  RCMD_ATTACH              =  29,
00092  RCMD_PASSFH              =  30,
00094  RCMD_GETTIMEOFDAY        =  31,
00096  RCMD_WHOAMI              =  32,
00098  RCMD_OK                  = 254,
00100  RCMD_ERROR               = 255
00101 } rcmd_t;
00102 
00104 typedef enum {
00106  RTERM_EXIT = 0,
00108  RTERM_TERM = 1
00109 } rterm_t;
00110 
00112 typedef enum {
00114  RVOL_SET_ALL = 1,
00116  RVOL_SET_ONE = 2
00117 } rvolch_t;
00118 
00120 typedef enum {
00122  RFLAGCH_SET   = 0,
00124  RFLAGCH_RESET = 1
00125 } rflagch_t;
00126 
00128 typedef enum {
00130  RSTREAMSTATE_UNKNOWN = -1,
00132  RSTREAMSTATE_NULL    =  0,
00134  RSTREAMSTATE_UNUSED  = RSTREAMSTATE_NULL,
00136  RSTREAMSTATE_INITING =  1,
00138  RSTREAMSTATE_NEW     =  2,
00140  RSTREAMSTATE_OLD     =  3,
00143  RSTREAMSTATE_CLOSING =  4
00144 } rstreamstat_t;
00145 
00146 
00148 typedef enum {
00150  RDIR_PLAY        =  1,
00152  RDIR_RECORD      =  2,
00154  RDIR_MONITOR     =  3,
00156  RDIR_FILTER      =  4,
00158  RDIR_OUTPUT      =  5,
00160  RDIR_MIXING      =  6,
00161 // RDIR_INTERNAL    =  7, // unused, undefined.
00163  RDIR_META        =  8,
00165  RDIR_BIDIR       =  9,
00167  RDIR_THRU        = 10,
00169  RDIR_BRIDGE      = 11,
00171  RDIR_MIDI_IN     = 12,
00173  RDIR_MIDI_OUT    = 13,
00175  RDIR_LIGHT_IN    = 14,
00177  RDIR_LIGHT_OUT   = 15,
00179  RDIR_RAW_IN      = 16,
00181  RDIR_RAW_OUT     = 17,
00183  RDIR_COMPLEX_IN  = 18,
00185  RDIR_COMPLEX_OUT = 19,
00187  RDIR_RDTCS_IN    = 20,
00189  RDIR_RDTCS_OUT   = 21,
00191  RDIR_DIRIDS      = 22,
00192 } rdir_t;
00193 
00195 typedef enum {
00197  RROLE_UNKNOWN          = -1,
00199  RROLE_NONE             =  0,
00201  RROLE_MUSIC            =  1,
00203  RROLE_VIDEO            =  2,
00205  RROLE_GAME             =  3,
00207  RROLE_EVENT            =  4,
00209  RROLE_BEEP             =  5,
00211  RROLE_PHONE            =  6,
00213  RROLE_BACKGROUND_MUSIC =  7,
00215  RROLE_VOICE            =  8,
00217  RROLE_INSTRUMENT       =  9,
00219  RROLE_RHYTHM           = 10,
00221  RROLE_CLICK            = 11,
00223  RROLE_MIXED            = 12,
00224 } rrole_t;
00225 
00227 typedef enum {
00229  RSTANDBY_INACTIVE  = 0,
00231  RSTANDBY_ACTIVE    = 1
00232 } rstandby_t;
00233 
00234 
00236 typedef enum {
00238  ROT_CLIENT   = 1,
00240  ROT_STREAM   = 2,
00242  ROT_SOURCE   = 3,
00244  ROT_SAMPLE   = 4
00245 } rot_t;
00246 
00248 typedef enum {
00250  RATTACH_SIMPLE = 1,
00252  RATTACH_SOURCE = 2,
00254  RATTACH_OUTPUT = 3
00255 } rattach_t;
00256 
00258 typedef enum {
00260  RSTREAMPARA_INFO    = 1,
00262  RSTREAMPARA_FLAGS   = 2,
00264  RSTREAMPARA_NAME    = 3,
00266  RSTREAMPARA_CHANMAP = 4,
00268  RSTREAMPARA_ROLE    = 5
00269 } rstreampata_t;
00270 
00272 typedef enum {
00275  RAUTH_AUTO            = -1,
00279  RAUTH_NONE            =  0,
00281  RAUTH_COOKIE          =  1,
00285  RAUTH_TRUST           =  2,
00287  RAUTH_PASSWORD        =  3,
00290  RAUTH_SYSUSER         =  4,
00292  RAUTH_OPENPGP_SIGN    =  5,
00294  RAUTH_OPENPGP_ENCRYPT =  6,
00296  RAUTH_OPENPGP_AUTH    =  7,
00298  RAUTH_KERBEROS        =  8,
00300  RAUTH_RHOST           =  9,
00302  RAUTH_XAUTH           = 10,
00304  RAUTH_IDENT           = 11
00305 } rauth_t;
00306 
00308 typedef enum {
00310  RPROTO_NONE          = 0,
00312  RPROTO_ROARAUDIO     = 1,
00314  RPROTO_ESOUND        = 2,
00316  RPROTO_AUTO          = 3,
00318  RPROTO_HTTP          = 4,
00320  RPROTO_GOPHER        = 5,
00322  RPROTO_ICY           = 7,
00324  RPROTO_SIMPLE        = 8,
00326  RPROTO_RSOUND        = 9
00327 } rproto_t;
00328 
00329 #endif
00330 
00331 //ll

Generated on Mon Jul 19 2010 19:31:13 for aroarfw by  doxygen 1.7.1