Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: third_party/wds/gen/parser.h

Issue 1498473010: third_party: Add WDS library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wds
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 #include <map>
46 #include <memory>
47 #include "libwds/rtsp/audiocodecs.h"
48 #include "libwds/rtsp/contentprotection.h"
49 #include "libwds/rtsp/triggermethod.h"
50 #include "libwds/rtsp/route.h"
51 #include "libwds/rtsp/uibcsetting.h"
52 #include "libwds/rtsp/uibccapability.h"
53
54 #define YYLEX_PARAM scanner
55
56 namespace wds {
57 struct AudioCodec;
58 namespace rtsp {
59 class Driver;
60 class Scanner;
61 class Message;
62 class Header;
63 class TransportHeader;
64 class Property;
65 class PropertyErrors;
66 class Payload;
67 class VideoFormats;
68 struct H264Codec;
69 struct H264Codec3d;
70 }
71 }
72
73
74
75 /* Token type. */
76 #ifndef YYTOKENTYPE
77 # define YYTOKENTYPE
78 enum yytokentype
79 {
80 END = 0,
81 WFD_SP = 258,
82 WFD_NUM = 259,
83 WFD_OPTIONS = 260,
84 WFD_SET_PARAMETER = 261,
85 WFD_GET_PARAMETER = 262,
86 WFD_SETUP = 263,
87 WFD_PLAY = 264,
88 WFD_TEARDOWN = 265,
89 WFD_PAUSE = 266,
90 WFD_END = 267,
91 WFD_RESPONSE = 268,
92 WFD_RESPONSE_CODE = 269,
93 WFD_STRING = 270,
94 WFD_GENERIC_PROPERTY = 271,
95 WFD_HEADER = 272,
96 WFD_CSEQ = 273,
97 WFD_RESPONSE_METHODS = 274,
98 WFD_TAG = 275,
99 WFD_SUPPORT_CHECK = 276,
100 WFD_REQUEST_URI = 277,
101 WFD_CONTENT_TYPE = 278,
102 WFD_MIME = 279,
103 WFD_CONTENT_LENGTH = 280,
104 WFD_AUDIO_CODECS = 281,
105 WFD_VIDEO_FORMATS = 282,
106 WFD_3D_FORMATS = 283,
107 WFD_CONTENT_PROTECTION = 284,
108 WFD_DISPLAY_EDID = 285,
109 WFD_COUPLED_SINK = 286,
110 WFD_TRIGGER_METHOD = 287,
111 WFD_PRESENTATION_URL = 288,
112 WFD_CLIENT_RTP_PORTS = 289,
113 WFD_ROUTE = 290,
114 WFD_I2C = 291,
115 WFD_AV_FORMAT_CHANGE_TIMING = 292,
116 WFD_PREFERRED_DISPLAY_MODE = 293,
117 WFD_UIBC_CAPABILITY = 294,
118 WFD_UIBC_SETTING = 295,
119 WFD_STANDBY_RESUME_CAPABILITY = 296,
120 WFD_STANDBY_IN_REQUEST = 297,
121 WFD_STANDBY_IN_RESPONSE = 298,
122 WFD_CONNECTOR_TYPE = 299,
123 WFD_IDR_REQUEST = 300,
124 WFD_AUDIO_CODECS_ERROR = 301,
125 WFD_VIDEO_FORMATS_ERROR = 302,
126 WFD_3D_FORMATS_ERROR = 303,
127 WFD_CONTENT_PROTECTION_ERROR = 304,
128 WFD_DISPLAY_EDID_ERROR = 305,
129 WFD_COUPLED_SINK_ERROR = 306,
130 WFD_TRIGGER_METHOD_ERROR = 307,
131 WFD_PRESENTATION_URL_ERROR = 308,
132 WFD_CLIENT_RTP_PORTS_ERROR = 309,
133 WFD_ROUTE_ERROR = 310,
134 WFD_I2C_ERROR = 311,
135 WFD_AV_FORMAT_CHANGE_TIMING_ERROR = 312,
136 WFD_PREFERRED_DISPLAY_MODE_ERROR = 313,
137 WFD_UIBC_CAPABILITY_ERROR = 314,
138 WFD_UIBC_SETTING_ERROR = 315,
139 WFD_STANDBY_RESUME_CAPABILITY_ERROR = 316,
140 WFD_STANDBY_ERROR = 317,
141 WFD_CONNECTOR_TYPE_ERROR = 318,
142 WFD_IDR_REQUEST_ERROR = 319,
143 WFD_GENERIC_PROPERTY_ERROR = 320,
144 WFD_NONE = 321,
145 WFD_AUDIO_CODEC_LPCM = 322,
146 WFD_AUDIO_CODEC_AAC = 323,
147 WFD_AUDIO_CODEC_AC3 = 324,
148 WFD_HDCP_SPEC_2_0 = 325,
149 WFD_HDCP_SPEC_2_1 = 326,
150 WFD_IP_PORT = 327,
151 WFD_PRESENTATION_URL_0 = 328,
152 WFD_PRESENTATION_URL_1 = 329,
153 WFD_STREAM_PROFILE = 330,
154 WFD_MODE_PLAY = 331,
155 WFD_ROUTE_PRIMARY = 332,
156 WFD_ROUTE_SECONDARY = 333,
157 WFD_INPUT_CATEGORY_LIST = 334,
158 WFD_INPUT_CATEGORY_GENERIC = 335,
159 WFD_INPUT_CATEGORY_HIDC = 336,
160 WFD_GENERIC_CAP_LIST = 337,
161 WFD_INPUT_TYPE_KEYBOARD = 338,
162 WFD_INPUT_TYPE_MOUSE = 339,
163 WFD_INPUT_TYPE_SINGLE_TOUCH = 340,
164 WFD_INPUT_TYPE_MULTI_TOUCH = 341,
165 WFD_INPUT_TYPE_JOYSTICK = 342,
166 WFD_INPUT_TYPE_CAMERA = 343,
167 WFD_INPUT_TYPE_GESTURE = 344,
168 WFD_INPUT_TYPE_REMOTE_CONTROL = 345,
169 WFD_HIDC_CAP_LIST = 346,
170 WFD_INPUT_PATH_INFRARED = 347,
171 WFD_INPUT_PATH_USB = 348,
172 WFD_INPUT_PATH_BT = 349,
173 WFD_INPUT_PATH_WIFI = 350,
174 WFD_INPUT_PATH_ZIGBEE = 351,
175 WFD_INPUT_PATH_NOSP = 352,
176 WFD_UIBC_SETTING_ENABLE = 353,
177 WFD_UIBC_SETTING_DISABLE = 354,
178 WFD_SUPPORTED = 355,
179 WFD_SESSION = 356,
180 WFD_SESSION_ID = 357,
181 WFD_TIMEOUT = 358,
182 WFD_TRANSPORT = 359,
183 WFD_SERVER_PORT = 360
184 };
185 #endif
186
187 /* Value type. */
188 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
189 typedef union YYSTYPE YYSTYPE;
190 union YYSTYPE
191 {
192
193
194 std::string* sval;
195 unsigned long long int nval;
196 bool bool_val;
197 std::vector<std::string>* vsval;
198 wds::rtsp::Message* message;
199 wds::rtsp::Header* header;
200 wds::rtsp::Payload* mpayload;
201 wds::AudioFormats audio_format;
202 wds::rtsp::Property* property;
203 std::vector<unsigned short>* error_list;
204 wds::rtsp::PropertyErrors* property_errors;
205 std::map<wds::rtsp::PropertyType, std::shared_ptr<wds::rtsp::PropertyErrors>> * property_error_map;
206 std::vector<wds::rtsp::H264Codec>* codecs;
207 wds::rtsp::H264Codec* codec;
208 std::vector<wds::rtsp::H264Codec3d>* codecs_3d;
209 wds::rtsp::H264Codec3d* codec_3d;
210 wds::rtsp::ContentProtection::HDCPSpec hdcp_spec;
211 wds::rtsp::TriggerMethod::Method trigger_method;
212 wds::rtsp::Route::Destination route_destination;
213 bool uibc_setting;
214 std::vector<wds::rtsp::UIBCCapability::InputCategory>* input_category_list;
215 std::vector<wds::rtsp::UIBCCapability::InputType>* generic_cap_list;
216 std::vector<wds::rtsp::UIBCCapability::DetailedCapability>* hidc_cap_list;
217 wds::rtsp::UIBCCapability::InputCategory input_category_list_value;
218 wds::rtsp::UIBCCapability::InputType generic_cap_list_value;
219 wds::rtsp::UIBCCapability::DetailedCapability* hidc_cap_list_value;
220 wds::rtsp::UIBCCapability::InputPath input_path;
221 wds::rtsp::Method method;
222 std::vector<wds::rtsp::Method>* methods;
223 wds::rtsp::PropertyType parameter;
224 std::vector<wds::rtsp::PropertyType>* parameters;
225 std::vector<wds::AudioCodec>* audio_codecs;
226 wds::AudioCodec* audio_codec;
227 std::pair<std::string, unsigned int>* session_info;
228 wds::rtsp::TransportHeader* transport;
229
230
231 };
232 # define YYSTYPE_IS_TRIVIAL 1
233 # define YYSTYPE_IS_DECLARED 1
234 #endif
235
236
237
238 int wds_parse (void* scanner, std::unique_ptr<wds::rtsp::Message>& message);
239
240 #endif /* !YY_WDS_GEN_PARSER_H_INCLUDED */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698