Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

macros.h

00001 /*****************************************************************************
00002  * macros.h : Macros mapping for the HTTP interface
00003  *****************************************************************************
00004  * Copyright (C) 2001-2005 the VideoLAN team
00005  * $Id: http.c 12225 2005-08-18 10:01:30Z massiot $
00006  *
00007  * Authors: Gildas Bazin <[email protected]>
00008  *          Laurent Aimar <[email protected]>
00009  *          Christophe Massiot <[email protected]>
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00024  *****************************************************************************/
00025 
00026 #include "http.h"
00027 
00028 enum macroType
00029 {
00030     MVLC_UNKNOWN = 0,
00031     MVLC_CONTROL,
00032         MVLC_PLAY,
00033         MVLC_STOP,
00034         MVLC_PAUSE,
00035         MVLC_NEXT,
00036         MVLC_PREVIOUS,
00037         MVLC_ADD,
00038         MVLC_DEL,
00039         MVLC_EMPTY,
00040         MVLC_SEEK,
00041         MVLC_KEEP,
00042         MVLC_SORT,
00043         MVLC_MOVE,
00044         MVLC_VOLUME,
00045         MVLC_FULLSCREEN,
00046 
00047         MVLC_CLOSE,
00048         MVLC_SHUTDOWN,
00049 
00050         MVLC_VLM_NEW,
00051         MVLC_VLM_SETUP,
00052         MVLC_VLM_DEL,
00053         MVLC_VLM_PLAY,
00054         MVLC_VLM_PAUSE,
00055         MVLC_VLM_STOP,
00056         MVLC_VLM_SEEK,
00057         MVLC_VLM_LOAD,
00058         MVLC_VLM_SAVE,
00059 
00060     MVLC_INCLUDE,
00061     MVLC_FOREACH,
00062     MVLC_IF,
00063     MVLC_RPN,
00064     MVLC_STACK,
00065     MVLC_ELSE,
00066     MVLC_END,
00067     MVLC_GET,
00068     MVLC_SET,
00069         MVLC_INT,
00070         MVLC_FLOAT,
00071         MVLC_STRING,
00072 
00073     MVLC_VALUE
00074 };
00075 
00076 /* Static mapping of macros type to macro strings */
00077 static struct
00078 {
00079     char *psz_name;
00080     int  i_type;
00081 }
00082 StrToMacroTypeTab [] =
00083 {
00084     { "control",    MVLC_CONTROL },
00085         /* player control */
00086         { "play",           MVLC_PLAY },
00087         { "stop",           MVLC_STOP },
00088         { "pause",          MVLC_PAUSE },
00089         { "next",           MVLC_NEXT },
00090         { "previous",       MVLC_PREVIOUS },
00091         { "seek",           MVLC_SEEK },
00092         { "keep",           MVLC_KEEP },
00093         { "fullscreen",     MVLC_FULLSCREEN },
00094         { "volume",         MVLC_VOLUME },
00095 
00096         /* playlist management */
00097         { "add",            MVLC_ADD },
00098         { "delete",         MVLC_DEL },
00099         { "empty",          MVLC_EMPTY },
00100         { "sort",           MVLC_SORT },
00101         { "move",           MVLC_MOVE },
00102 
00103         /* admin control */
00104         { "close",          MVLC_CLOSE },
00105         { "shutdown",       MVLC_SHUTDOWN },
00106 
00107         /* vlm control */
00108         { "vlm_new",        MVLC_VLM_NEW },
00109         { "vlm_setup",      MVLC_VLM_SETUP },
00110         { "vlm_del",        MVLC_VLM_DEL },
00111         { "vlm_play",       MVLC_VLM_PLAY },
00112         { "vlm_pause",      MVLC_VLM_PAUSE },
00113         { "vlm_stop",       MVLC_VLM_STOP },
00114         { "vlm_seek",       MVLC_VLM_SEEK },
00115         { "vlm_load",       MVLC_VLM_LOAD },
00116         { "vlm_save",       MVLC_VLM_SAVE },
00117 
00118     { "rpn",        MVLC_RPN },
00119     { "stack",      MVLC_STACK },
00120 
00121     { "include",    MVLC_INCLUDE },
00122     { "foreach",    MVLC_FOREACH },
00123     { "value",      MVLC_VALUE },
00124 
00125     { "if",         MVLC_IF },
00126     { "else",       MVLC_ELSE },
00127     { "end",        MVLC_END },
00128     { "get",        MVLC_GET },
00129     { "set",        MVLC_SET },
00130         { "int",            MVLC_INT },
00131         { "float",          MVLC_FLOAT },
00132         { "string",         MVLC_STRING },
00133 
00134     /* end */
00135     { NULL,         MVLC_UNKNOWN }
00136 };

Generated on Tue Dec 20 10:14:30 2005 for vlc-0.8.4a by  doxygen 1.4.2