]> git.sesse.net Git - vlc/blob - modules/control/http/macros.h
http: fix warning.
[vlc] / modules / control / http / macros.h
1 /*****************************************************************************
2  * macros.h : Macros mapping for the HTTP interface
3  *****************************************************************************
4  * Copyright (C) 2001-2005 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Gildas Bazin <gbazin@netcourrier.com>
8  *          Laurent Aimar <fenrir@via.ecp.fr>
9  *          Christophe Massiot <massiot@via.ecp.fr>
10  *
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.
15  *
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.
20  *
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  *****************************************************************************/
25
26 #include "http.h"
27
28 enum macroType
29 {
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,
46
47         MVLC_CLOSE,
48         MVLC_SHUTDOWN,
49
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,
59
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,
72
73     MVLC_VALUE
74 };
75
76 /* Static mapping of macros type to macro strings */
77 static const struct
78 {
79     const char *psz_name;
80     int  i_type;
81 }
82 StrToMacroTypeTab [] =
83 {
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 },
95
96         /* playlist management */
97         { "add",            MVLC_ADD },
98         { "delete",         MVLC_DEL },
99         { "empty",          MVLC_EMPTY },
100         { "sort",           MVLC_SORT },
101         { "move",           MVLC_MOVE },
102
103         /* admin control */
104         { "close",          MVLC_CLOSE },
105         { "shutdown",       MVLC_SHUTDOWN },
106
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 },
117
118     { "rpn",        MVLC_RPN },
119     { "stack",      MVLC_STACK },
120
121     { "include",    MVLC_INCLUDE },
122     { "foreach",    MVLC_FOREACH },
123     { "value",      MVLC_VALUE },
124
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 },
133
134     /* end */
135     { NULL,         MVLC_UNKNOWN }
136 };