librivox: create a node for each book of the podcast.
[vlc/asuraparaju-public.git] / modules / control / http / macros.h
blobcf54260b5ebfd64fa6996eeac67858bb594e9be9
1 /*****************************************************************************
2 * macros.h : Macros mapping for the HTTP interface
3 *****************************************************************************
4 * Copyright (C) 2001-2005 the VideoLAN team
5 * $Id$
7 * Authors: Gildas Bazin <gbazin@netcourrier.com>
8 * Laurent Aimar <fenrir@via.ecp.fr>
9 * Christophe Massiot <massiot@via.ecp.fr>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24 *****************************************************************************/
26 #include "http.h"
28 enum macroType
30 MVLC_UNKNOWN = 0,
31 MVLC_CONTROL,
32 MVLC_PLAY,
33 MVLC_STOP,
34 MVLC_PAUSE,
35 MVLC_NEXT,
36 MVLC_PREVIOUS,
37 MVLC_ADD,
38 MVLC_DEL,
39 MVLC_EMPTY,
40 MVLC_SEEK,
41 MVLC_KEEP,
42 MVLC_SORT,
43 MVLC_MOVE,
44 MVLC_VOLUME,
45 MVLC_FULLSCREEN,
47 MVLC_CLOSE,
48 MVLC_SHUTDOWN,
50 MVLC_VLM_NEW,
51 MVLC_VLM_SETUP,
52 MVLC_VLM_DEL,
53 MVLC_VLM_PLAY,
54 MVLC_VLM_PAUSE,
55 MVLC_VLM_STOP,
56 MVLC_VLM_SEEK,
57 MVLC_VLM_LOAD,
58 MVLC_VLM_SAVE,
60 MVLC_INCLUDE,
61 MVLC_FOREACH,
62 MVLC_IF,
63 MVLC_RPN,
64 MVLC_STACK,
65 MVLC_ELSE,
66 MVLC_END,
67 MVLC_GET,
68 MVLC_SET,
69 MVLC_INT,
70 MVLC_FLOAT,
71 MVLC_STRING,
73 MVLC_VALUE
76 /* Static mapping of macros type to macro strings */
77 static const struct
79 const char *psz_name;
80 int i_type;
82 StrToMacroTypeTab [] =
84 { "control", MVLC_CONTROL },
85 /* player control */
86 { "play", MVLC_PLAY },
87 { "stop", MVLC_STOP },
88 { "pause", MVLC_PAUSE },
89 { "next", MVLC_NEXT },
90 { "previous", MVLC_PREVIOUS },
91 { "seek", MVLC_SEEK },
92 { "keep", MVLC_KEEP },
93 { "fullscreen", MVLC_FULLSCREEN },
94 { "volume", MVLC_VOLUME },
96 /* playlist management */
97 { "add", MVLC_ADD },
98 { "delete", MVLC_DEL },
99 { "empty", MVLC_EMPTY },
100 { "sort", MVLC_SORT },
101 { "move", MVLC_MOVE },
103 /* admin control */
104 { "close", MVLC_CLOSE },
105 { "shutdown", MVLC_SHUTDOWN },
107 /* vlm control */
108 { "vlm_new", MVLC_VLM_NEW },
109 { "vlm_setup", MVLC_VLM_SETUP },
110 { "vlm_del", MVLC_VLM_DEL },
111 { "vlm_play", MVLC_VLM_PLAY },
112 { "vlm_pause", MVLC_VLM_PAUSE },
113 { "vlm_stop", MVLC_VLM_STOP },
114 { "vlm_seek", MVLC_VLM_SEEK },
115 { "vlm_load", MVLC_VLM_LOAD },
116 { "vlm_save", MVLC_VLM_SAVE },
118 { "rpn", MVLC_RPN },
119 { "stack", MVLC_STACK },
121 { "include", MVLC_INCLUDE },
122 { "foreach", MVLC_FOREACH },
123 { "value", MVLC_VALUE },
125 { "if", MVLC_IF },
126 { "else", MVLC_ELSE },
127 { "end", MVLC_END },
128 { "get", MVLC_GET },
129 { "set", MVLC_SET },
130 { "int", MVLC_INT },
131 { "float", MVLC_FLOAT },
132 { "string", MVLC_STRING },
134 /* end */
135 { NULL, MVLC_UNKNOWN }