aroarfw
proto.h
Go to the documentation of this file.
1 //proto.h:
2 
3 /*
4  * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2010-2012
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 {
335 } rstreampata_t;
336 
338 typedef enum {
371 } rauth_t;
372 
374 typedef enum {
411 } rproto_t;
412 
414 typedef enum {
416  RCT_CAPS = 0,
419 } rcaps_t;
420 
422 typedef enum {
424  RHQ_BAD = 0,
428  RHQ_NEAR = 2,
434  RHQ_GOOD = 4,
443 } rhq_t;
444 
446 typedef enum {
455 } rwhence_t;
456 
458 typedef enum {
465 } rit_t;
466 
468 typedef enum {
505 } ritst_t;
506 
507 #endif
508 
509 //ll