aroarfw
proto.h
Go to the documentation of this file.
1 //proto.h:
2 
3 /*
4  * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2010-2013
5  *
6  * This file is part of aroarfw, a RoarAudio framework for
7  * embedded systems (µControlers).
8  *
9  * This file is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License version 3
11  * or (at your option) any later version as published by
12  * the Free Software Foundation.
13  *
14  * aroarfw 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, 51 Franklin Street, Fifth Floor,
22  * Boston, MA 02110-1301, USA.
23  */
24 
25 #ifndef _AROARFW_PROTO_H_
26 #define _AROARFW_PROTO_H_
27 
29 typedef enum {
30 // 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
32  RCMD_NOOP = 0,
36  RCMD_AUTH = 2,
44  RCMD_QUIT = 6,
58  RCMD_EXIT = 13,
68  RCMD_KICK = 18,
80  RCMD_BEEP = 24,
104  RCMD_CAPS = 34,
106  RCMD_WAIT = 35,
110  RCMD_SEEK = 37,
120  RCMD_OK = 254,
123 } rcmd_t;
124 
126 typedef enum {
131 } rterm_t;
132 
134 typedef enum {
143 } rvolch_t;
144 
146 typedef enum {
157 } rflagch_t;
158 
160 typedef enum {
180 } rstreamstat_t;
181 
182 
184 typedef enum {
197 // RDIR_INTERNAL = 7, // unused, undefined.
203  RDIR_THRU = 10,
230 } rdir_t;
231 
233 typedef enum {
262 } rrole_t;
263 
265 typedef enum {
270 } rstandby_t;
271 
272 
274 typedef enum {
297 } rot_t;
298 
300 typedef enum {
311 } rattach_t;
312 
314 typedef enum {
337 } rstreampata_t;
338 
340 typedef enum {
355 } rrpgmode_t;
356 
358 typedef enum {
391 } rauth_t;
392 
394 typedef enum {
447 } rproto_t;
448 
450 typedef enum {
452  RCT_CAPS = 0,
455 } rcaps_t;
456 
458 typedef enum {
460  RHQ_BAD = 0,
464  RHQ_NEAR = 2,
470  RHQ_GOOD = 4,
479 } rhq_t;
480 
482 typedef enum {
491 } rwhence_t;
492 
494 typedef enum {
501 } rit_t;
502 
504 typedef enum {
541 } ritst_t;
542 
543 #endif
544 
545 //ll