OLD | NEW |
---|---|
(Empty) | |
1 /* A Bison parser, made by GNU Bison 3.0.2. */ | |
2 | |
3 /* Bison interface for Yacc-like parsers in C | |
4 | |
5 Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. | |
6 | |
7 This program is free software: you can redistribute it and/or modify | |
8 it under the terms of the GNU General Public License as published by | |
9 the Free Software Foundation, either version 3 of the License, or | |
10 (at your option) any later version. | |
11 | |
12 This program is distributed in the hope that it will be useful, | |
13 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 GNU General Public License for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |
19 | |
20 /* As a special exception, you may create a larger work that contains | |
21 part or all of the Bison parser skeleton and distribute that work | |
22 under terms of your choice, so long as that work isn't itself a | |
23 parser generator using the skeleton or a modified version thereof | |
24 as a parser skeleton. Alternatively, if you modify or redistribute | |
25 the parser skeleton itself, you may (at your option) remove this | |
26 special exception, which will cause the skeleton and the resulting | |
27 Bison output files to be licensed under the GNU General Public | |
28 License without this special exception. | |
29 | |
30 This special exception was added by the Free Software Foundation in | |
31 version 2.2 of Bison. */ | |
32 | |
33 #ifndef YY_WDS_GEN_PARSER_H_INCLUDED | |
34 # define YY_WDS_GEN_PARSER_H_INCLUDED | |
35 /* Debug traces. */ | |
36 #ifndef YYDEBUG | |
37 # define YYDEBUG 0 | |
38 #endif | |
39 #if YYDEBUG | |
40 extern int wds_debug; | |
41 #endif | |
42 /* "%code requires" blocks. */ | |
43 | |
44 | |
45 /* | |
46 * This file is part of Wireless Display Software for Linux OS | |
47 * | |
48 * Copyright (C) 2015 Intel Corporation. | |
49 * | |
50 * This library is free software; you can redistribute it and/or | |
51 * modify it under the terms of the GNU Lesser General Public | |
52 * License as published by the Free Software Foundation; either | |
53 * version 2.1 of the License, or (at your option) any later version. | |
54 * | |
55 * This library is distributed in the hope that it will be useful, | |
56 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
57 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
58 * Lesser General Public License for more details. | |
59 * | |
60 * You should have received a copy of the GNU Lesser General Public | |
61 * License along with this library; if not, write to the Free Software | |
62 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |
63 * 02110-1301 USA | |
64 */ | |
65 | |
66 #include <map> | |
67 #include <memory> | |
68 #include "libwds/rtsp/audiocodecs.h" | |
Lei Zhang
2016/02/09 19:07:52
If you fix these up to have the full path instead
Mikhail
2016/02/10 11:34:37
I've tried this and faced with following drawbacks
| |
69 #include "libwds/rtsp/contentprotection.h" | |
70 #include "libwds/rtsp/triggermethod.h" | |
71 #include "libwds/rtsp/route.h" | |
72 #include "libwds/rtsp/uibcsetting.h" | |
73 #include "libwds/rtsp/uibccapability.h" | |
74 | |
75 #define YYLEX_PARAM scanner | |
76 | |
77 namespace wds { | |
78 struct AudioCodec; | |
79 namespace rtsp { | |
80 class Driver; | |
81 class Scanner; | |
82 class Message; | |
83 class Header; | |
84 class TransportHeader; | |
85 class Property; | |
86 class PropertyErrors; | |
87 class Payload; | |
88 class VideoFormats; | |
89 struct H264Codec; | |
90 struct H264Codec3d; | |
91 } | |
92 } | |
93 | |
94 | |
95 | |
96 /* Token type. */ | |
97 #ifndef YYTOKENTYPE | |
98 # define YYTOKENTYPE | |
99 enum yytokentype | |
100 { | |
101 END = 0, | |
102 WFD_SP = 258, | |
103 WFD_NUM = 259, | |
104 WFD_OPTIONS = 260, | |
105 WFD_SET_PARAMETER = 261, | |
106 WFD_GET_PARAMETER = 262, | |
107 WFD_SETUP = 263, | |
108 WFD_PLAY = 264, | |
109 WFD_TEARDOWN = 265, | |
110 WFD_PAUSE = 266, | |
111 WFD_END = 267, | |
112 WFD_RESPONSE = 268, | |
113 WFD_RESPONSE_CODE = 269, | |
114 WFD_STRING = 270, | |
115 WFD_GENERIC_PROPERTY = 271, | |
116 WFD_HEADER = 272, | |
117 WFD_CSEQ = 273, | |
118 WFD_RESPONSE_METHODS = 274, | |
119 WFD_TAG = 275, | |
120 WFD_SUPPORT_CHECK = 276, | |
121 WFD_REQUEST_URI = 277, | |
122 WFD_CONTENT_TYPE = 278, | |
123 WFD_MIME = 279, | |
124 WFD_CONTENT_LENGTH = 280, | |
125 WFD_AUDIO_CODECS = 281, | |
126 WFD_VIDEO_FORMATS = 282, | |
127 WFD_3D_FORMATS = 283, | |
128 WFD_CONTENT_PROTECTION = 284, | |
129 WFD_DISPLAY_EDID = 285, | |
130 WFD_COUPLED_SINK = 286, | |
131 WFD_TRIGGER_METHOD = 287, | |
132 WFD_PRESENTATION_URL = 288, | |
133 WFD_CLIENT_RTP_PORTS = 289, | |
134 WFD_ROUTE = 290, | |
135 WFD_I2C = 291, | |
136 WFD_AV_FORMAT_CHANGE_TIMING = 292, | |
137 WFD_PREFERRED_DISPLAY_MODE = 293, | |
138 WFD_UIBC_CAPABILITY = 294, | |
139 WFD_UIBC_SETTING = 295, | |
140 WFD_STANDBY_RESUME_CAPABILITY = 296, | |
141 WFD_STANDBY_IN_REQUEST = 297, | |
142 WFD_STANDBY_IN_RESPONSE = 298, | |
143 WFD_CONNECTOR_TYPE = 299, | |
144 WFD_IDR_REQUEST = 300, | |
145 WFD_AUDIO_CODECS_ERROR = 301, | |
146 WFD_VIDEO_FORMATS_ERROR = 302, | |
147 WFD_3D_FORMATS_ERROR = 303, | |
148 WFD_CONTENT_PROTECTION_ERROR = 304, | |
149 WFD_DISPLAY_EDID_ERROR = 305, | |
150 WFD_COUPLED_SINK_ERROR = 306, | |
151 WFD_TRIGGER_METHOD_ERROR = 307, | |
152 WFD_PRESENTATION_URL_ERROR = 308, | |
153 WFD_CLIENT_RTP_PORTS_ERROR = 309, | |
154 WFD_ROUTE_ERROR = 310, | |
155 WFD_I2C_ERROR = 311, | |
156 WFD_AV_FORMAT_CHANGE_TIMING_ERROR = 312, | |
157 WFD_PREFERRED_DISPLAY_MODE_ERROR = 313, | |
158 WFD_UIBC_CAPABILITY_ERROR = 314, | |
159 WFD_UIBC_SETTING_ERROR = 315, | |
160 WFD_STANDBY_RESUME_CAPABILITY_ERROR = 316, | |
161 WFD_STANDBY_ERROR = 317, | |
162 WFD_CONNECTOR_TYPE_ERROR = 318, | |
163 WFD_IDR_REQUEST_ERROR = 319, | |
164 WFD_GENERIC_PROPERTY_ERROR = 320, | |
165 WFD_NONE = 321, | |
166 WFD_AUDIO_CODEC_LPCM = 322, | |
167 WFD_AUDIO_CODEC_AAC = 323, | |
168 WFD_AUDIO_CODEC_AC3 = 324, | |
169 WFD_HDCP_SPEC_2_0 = 325, | |
170 WFD_HDCP_SPEC_2_1 = 326, | |
171 WFD_IP_PORT = 327, | |
172 WFD_PRESENTATION_URL_0 = 328, | |
173 WFD_PRESENTATION_URL_1 = 329, | |
174 WFD_STREAM_PROFILE = 330, | |
175 WFD_MODE_PLAY = 331, | |
176 WFD_ROUTE_PRIMARY = 332, | |
177 WFD_ROUTE_SECONDARY = 333, | |
178 WFD_INPUT_CATEGORY_LIST = 334, | |
179 WFD_INPUT_CATEGORY_GENERIC = 335, | |
180 WFD_INPUT_CATEGORY_HIDC = 336, | |
181 WFD_GENERIC_CAP_LIST = 337, | |
182 WFD_INPUT_TYPE_KEYBOARD = 338, | |
183 WFD_INPUT_TYPE_MOUSE = 339, | |
184 WFD_INPUT_TYPE_SINGLE_TOUCH = 340, | |
185 WFD_INPUT_TYPE_MULTI_TOUCH = 341, | |
186 WFD_INPUT_TYPE_JOYSTICK = 342, | |
187 WFD_INPUT_TYPE_CAMERA = 343, | |
188 WFD_INPUT_TYPE_GESTURE = 344, | |
189 WFD_INPUT_TYPE_REMOTE_CONTROL = 345, | |
190 WFD_HIDC_CAP_LIST = 346, | |
191 WFD_INPUT_PATH_INFRARED = 347, | |
192 WFD_INPUT_PATH_USB = 348, | |
193 WFD_INPUT_PATH_BT = 349, | |
194 WFD_INPUT_PATH_WIFI = 350, | |
195 WFD_INPUT_PATH_ZIGBEE = 351, | |
196 WFD_INPUT_PATH_NOSP = 352, | |
197 WFD_UIBC_SETTING_ENABLE = 353, | |
198 WFD_UIBC_SETTING_DISABLE = 354, | |
199 WFD_SUPPORTED = 355, | |
200 WFD_SESSION = 356, | |
201 WFD_SESSION_ID = 357, | |
202 WFD_TIMEOUT = 358, | |
203 WFD_TRANSPORT = 359, | |
204 WFD_SERVER_PORT = 360 | |
205 }; | |
206 #endif | |
207 | |
208 /* Value type. */ | |
209 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED | |
210 typedef union YYSTYPE YYSTYPE; | |
211 union YYSTYPE | |
212 { | |
213 | |
214 | |
215 std::string* sval; | |
216 unsigned long long int nval; | |
217 bool bool_val; | |
218 std::vector<std::string>* vsval; | |
219 wds::rtsp::Message* message; | |
220 wds::rtsp::Header* header; | |
221 wds::rtsp::Payload* mpayload; | |
222 wds::AudioFormats audio_format; | |
223 wds::rtsp::Property* property; | |
224 std::vector<unsigned short>* error_list; | |
225 wds::rtsp::PropertyErrors* property_errors; | |
226 std::map<wds::rtsp::PropertyType, std::shared_ptr<wds::rtsp::PropertyErrors>> * property_error_map; | |
227 std::vector<wds::rtsp::H264Codec>* codecs; | |
228 wds::rtsp::H264Codec* codec; | |
229 std::vector<wds::rtsp::H264Codec3d>* codecs_3d; | |
230 wds::rtsp::H264Codec3d* codec_3d; | |
231 wds::rtsp::ContentProtection::HDCPSpec hdcp_spec; | |
232 wds::rtsp::TriggerMethod::Method trigger_method; | |
233 wds::rtsp::Route::Destination route_destination; | |
234 bool uibc_setting; | |
235 std::vector<wds::rtsp::UIBCCapability::InputCategory>* input_category_list; | |
236 std::vector<wds::rtsp::UIBCCapability::InputType>* generic_cap_list; | |
237 std::vector<wds::rtsp::UIBCCapability::DetailedCapability>* hidc_cap_list; | |
238 wds::rtsp::UIBCCapability::InputCategory input_category_list_value; | |
239 wds::rtsp::UIBCCapability::InputType generic_cap_list_value; | |
240 wds::rtsp::UIBCCapability::DetailedCapability* hidc_cap_list_value; | |
241 wds::rtsp::UIBCCapability::InputPath input_path; | |
242 wds::rtsp::Method method; | |
243 std::vector<wds::rtsp::Method>* methods; | |
244 wds::rtsp::PropertyType parameter; | |
245 std::vector<wds::rtsp::PropertyType>* parameters; | |
246 std::vector<wds::AudioCodec>* audio_codecs; | |
247 wds::AudioCodec* audio_codec; | |
248 std::pair<std::string, unsigned int>* session_info; | |
249 wds::rtsp::TransportHeader* transport; | |
250 | |
251 | |
252 }; | |
253 # define YYSTYPE_IS_TRIVIAL 1 | |
254 # define YYSTYPE_IS_DECLARED 1 | |
255 #endif | |
256 | |
257 | |
258 | |
259 int wds_parse (void* scanner, std::unique_ptr<wds::rtsp::Message>& message); | |
260 | |
261 #endif /* !YY_WDS_GEN_PARSER_H_INCLUDED */ | |
OLD | NEW |