00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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
00077 static struct
00078 {
00079 char *psz_name;
00080 int i_type;
00081 }
00082 StrToMacroTypeTab [] =
00083 {
00084 { "control", MVLC_CONTROL },
00085
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
00097 { "add", MVLC_ADD },
00098 { "delete", MVLC_DEL },
00099 { "empty", MVLC_EMPTY },
00100 { "sort", MVLC_SORT },
00101 { "move", MVLC_MOVE },
00102
00103
00104 { "close", MVLC_CLOSE },
00105 { "shutdown", MVLC_SHUTDOWN },
00106
00107
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
00135 { NULL, MVLC_UNKNOWN }
00136 };