Import moonshot-ui_0.7.1.orig.tar.xz
[moonshot-ui.git] / src / moonshot-webp-parser.c
1 /* moonshot-webp-parser.c generated by valac 0.24.0, the Vala compiler
2  * generated from moonshot-webp-parser.vala, do not modify */
3
4 /*
5  * Copyright (c) 2011-2014, JANET(UK)
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  *
12  * 1. Redistributions of source code must retain the above copyright
13  *    notice, this list of conditions and the following disclaimer.
14  *
15  * 2. Redistributions in binary form must reproduce the above copyright
16  *    notice, this list of conditions and the following disclaimer in the
17  *    documentation and/or other materials provided with the distribution.
18  *
19  * 3. Neither the name of JANET(UK) nor the names of its contributors
20  *    may be used to endorse or promote products derived from this software
21  *    without specific prior written permission.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
27  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33  * SUCH DAMAGE.
34 */
35
36 #include <glib.h>
37 #include <glib-object.h>
38 #include <stdlib.h>
39 #include <string.h>
40 #include <stdio.h>
41 #include <glib/gi18n-lib.h>
42 #include <glib/gstdio.h>
43 #include <libmoonshot.h>
44
45 #define _g_free0(var) (var = (g_free (var), NULL))
46
47 #define WEB_PROVISIONING_TYPE_PARSER (web_provisioning_parser_get_type ())
48 #define WEB_PROVISIONING_PARSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParser))
49 #define WEB_PROVISIONING_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParserClass))
50 #define WEB_PROVISIONING_IS_PARSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WEB_PROVISIONING_TYPE_PARSER))
51 #define WEB_PROVISIONING_IS_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), WEB_PROVISIONING_TYPE_PARSER))
52 #define WEB_PROVISIONING_PARSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParserClass))
53
54 typedef struct _WebProvisioningParser WebProvisioningParser;
55 typedef struct _WebProvisioningParserClass WebProvisioningParserClass;
56
57 #define TYPE_ID_CARD (id_card_get_type ())
58 #define ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ID_CARD, IdCard))
59 #define ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ID_CARD, IdCardClass))
60 #define IS_ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ID_CARD))
61 #define IS_ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ID_CARD))
62 #define ID_CARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ID_CARD, IdCardClass))
63
64 typedef struct _IdCard IdCard;
65 typedef struct _IdCardClass IdCardClass;
66
67 #define TYPE_RULE (rule_get_type ())
68 typedef struct _Rule Rule;
69
70 #define TYPE_TRUST_ANCHOR (trust_anchor_get_type ())
71 #define TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRUST_ANCHOR, TrustAnchor))
72 #define TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRUST_ANCHOR, TrustAnchorClass))
73 #define IS_TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRUST_ANCHOR))
74 #define IS_TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRUST_ANCHOR))
75 #define TRUST_ANCHOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRUST_ANCHOR, TrustAnchorClass))
76
77 typedef struct _TrustAnchor TrustAnchor;
78 typedef struct _TrustAnchorClass TrustAnchorClass;
79 #define _moonshot_error_free0(var) ((var == NULL) ? NULL : (var = (moonshot_error_free (var), NULL)))
80 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
81 #define _web_provisioning_parser_unref0(var) ((var == NULL) ? NULL : (var = (web_provisioning_parser_unref (var), NULL)))
82
83 struct _Rule {
84         gchar* pattern;
85         gchar* always_confirm;
86 };
87
88
89 extern IdCard** web_provisioning_cards;
90 extern gint web_provisioning_cards_length1;
91
92 gint web_provisioning_main (gchar** args, int args_length1);
93 gpointer web_provisioning_parser_ref (gpointer instance);
94 void web_provisioning_parser_unref (gpointer instance);
95 GParamSpec* web_provisioning_param_spec_parser (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
96 void web_provisioning_value_set_parser (GValue* value, gpointer v_object);
97 void web_provisioning_value_take_parser (GValue* value, gpointer v_object);
98 gpointer web_provisioning_value_get_parser (const GValue* value);
99 GType web_provisioning_parser_get_type (void) G_GNUC_CONST;
100 WebProvisioningParser* web_provisioning_parser_new (const gchar* path);
101 WebProvisioningParser* web_provisioning_parser_construct (GType object_type, const gchar* path);
102 void web_provisioning_parser_parse (WebProvisioningParser* self);
103 GType id_card_get_type (void) G_GNUC_CONST;
104 GType rule_get_type (void) G_GNUC_CONST;
105 Rule* rule_dup (const Rule* self);
106 void rule_free (Rule* self);
107 void rule_copy (const Rule* self, Rule* dest);
108 void rule_destroy (Rule* self);
109 Rule* id_card_get_rules (IdCard* self, int* result_length1);
110 static Rule* _vala_array_dup1 (Rule* self, int length);
111 gchar** id_card_get_services (IdCard* self, int* result_length1);
112 static gchar** _vala_array_dup2 (gchar** self, int length);
113 const gchar* id_card_get_display_name (IdCard* self);
114 const gchar* id_card_get_username (IdCard* self);
115 const gchar* id_card_get_password (IdCard* self);
116 const gchar* id_card_get_issuer (IdCard* self);
117 GType trust_anchor_get_type (void) G_GNUC_CONST;
118 TrustAnchor* id_card_get_trust_anchor (IdCard* self);
119 const gchar* trust_anchor_get_ca_cert (TrustAnchor* self);
120 const gchar* trust_anchor_get_subject (TrustAnchor* self);
121 const gchar* trust_anchor_get_subject_alt (TrustAnchor* self);
122 const gchar* trust_anchor_get_server_cert (TrustAnchor* self);
123 static void _vala_Rule_array_free (Rule* array, gint array_length);
124 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
125 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
126
127
128 static gunichar string_get_char (const gchar* self, glong index) {
129         gunichar result = 0U;
130         glong _tmp0_ = 0L;
131         gunichar _tmp1_ = 0U;
132 #line 1026 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
133         g_return_val_if_fail (self != NULL, 0U);
134 #line 1027 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
135         _tmp0_ = index;
136 #line 1027 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
137         _tmp1_ = g_utf8_get_char (((gchar*) self) + _tmp0_);
138 #line 1027 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
139         result = _tmp1_;
140 #line 1027 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
141         return result;
142 #line 143 "moonshot-webp-parser.c"
143 }
144
145
146 static gpointer _g_object_ref0 (gpointer self) {
147 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
148         return self ? g_object_ref (self) : NULL;
149 #line 150 "moonshot-webp-parser.c"
150 }
151
152
153 static Rule* _vala_array_dup1 (Rule* self, int length) {
154         Rule* result;
155         int i;
156 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
157         result = g_new0 (Rule, length);
158 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
159         for (i = 0; i < length; i++) {
160 #line 161 "moonshot-webp-parser.c"
161                 Rule _tmp0_ = {0};
162 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
163                 rule_copy (&self[i], &_tmp0_);
164 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
165                 result[i] = _tmp0_;
166 #line 167 "moonshot-webp-parser.c"
167         }
168 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
169         return result;
170 #line 171 "moonshot-webp-parser.c"
171 }
172
173
174 static gchar** _vala_array_dup2 (gchar** self, int length) {
175         gchar** result;
176         int i;
177 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
178         result = g_new0 (gchar*, length + 1);
179 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
180         for (i = 0; i < length; i++) {
181 #line 182 "moonshot-webp-parser.c"
182                 gchar* _tmp0_ = NULL;
183 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
184                 _tmp0_ = g_strdup (self[i]);
185 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
186                 result[i] = _tmp0_;
187 #line 188 "moonshot-webp-parser.c"
188         }
189 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
190         return result;
191 #line 192 "moonshot-webp-parser.c"
192 }
193
194
195 static void _vala_Rule_array_free (Rule* array, gint array_length) {
196 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
197         if (array != NULL) {
198 #line 199 "moonshot-webp-parser.c"
199                 int i;
200 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
201                 for (i = 0; i < array_length; i = i + 1) {
202 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
203                         rule_destroy (&array[i]);
204 #line 205 "moonshot-webp-parser.c"
205                 }
206         }
207 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
208         g_free (array);
209 #line 210 "moonshot-webp-parser.c"
210 }
211
212
213 gint web_provisioning_main (gchar** args, int args_length1) {
214         gint result = 0;
215         gint arg_index = 0;
216         gint force_flat_file_store = 0;
217         gboolean bad_switch = FALSE;
218         gboolean _tmp17_ = FALSE;
219         gboolean _tmp18_ = FALSE;
220         gchar* webp_file = NULL;
221         gchar** _tmp25_ = NULL;
222         gint _tmp25__length1 = 0;
223         gint _tmp26_ = 0;
224         const gchar* _tmp27_ = NULL;
225         gchar* _tmp28_ = NULL;
226         const gchar* _tmp29_ = NULL;
227         gboolean _tmp30_ = FALSE;
228         WebProvisioningParser* webp = NULL;
229         const gchar* _tmp34_ = NULL;
230         WebProvisioningParser* _tmp35_ = NULL;
231         WebProvisioningParser* _tmp36_ = NULL;
232         IdCard** _tmp37_ = NULL;
233         gint _tmp37__length1 = 0;
234 #line 40 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
235         arg_index = -1;
236 #line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
237         force_flat_file_store = 0;
238 #line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
239         bad_switch = FALSE;
240 #line 241 "moonshot-webp-parser.c"
241         {
242                 gboolean _tmp0_ = FALSE;
243 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
244                 arg_index = 1;
245 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
246                 _tmp0_ = TRUE;
247 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
248                 while (TRUE) {
249 #line 250 "moonshot-webp-parser.c"
250                         gint _tmp2_ = 0;
251                         gchar** _tmp3_ = NULL;
252                         gint _tmp3__length1 = 0;
253                         gchar* arg = NULL;
254                         gchar** _tmp4_ = NULL;
255                         gint _tmp4__length1 = 0;
256                         gint _tmp5_ = 0;
257                         const gchar* _tmp6_ = NULL;
258                         gchar* _tmp7_ = NULL;
259                         gunichar c = 0U;
260                         const gchar* _tmp8_ = NULL;
261                         gunichar _tmp9_ = 0U;
262                         gunichar _tmp10_ = 0U;
263 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
264                         if (!_tmp0_) {
265 #line 266 "moonshot-webp-parser.c"
266                                 gint _tmp1_ = 0;
267 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
268                                 _tmp1_ = arg_index;
269 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
270                                 arg_index = _tmp1_ + 1;
271 #line 272 "moonshot-webp-parser.c"
272                         }
273 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
274                         _tmp0_ = FALSE;
275 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
276                         _tmp2_ = arg_index;
277 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
278                         _tmp3_ = args;
279 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
280                         _tmp3__length1 = args_length1;
281 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
282                         if (!(_tmp2_ < _tmp3__length1)) {
283 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
284                                 break;
285 #line 286 "moonshot-webp-parser.c"
286                         }
287 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
288                         _tmp4_ = args;
289 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
290                         _tmp4__length1 = args_length1;
291 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
292                         _tmp5_ = arg_index;
293 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
294                         _tmp6_ = _tmp4_[_tmp5_];
295 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
296                         _tmp7_ = g_strdup (_tmp6_);
297 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
298                         arg = _tmp7_;
299 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
300                         _tmp8_ = arg;
301 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
302                         _tmp9_ = string_get_char (_tmp8_, (glong) 0);
303 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
304                         c = _tmp9_;
305 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
306                         _tmp10_ = c;
307 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
308                         if (_tmp10_ == ((gunichar) '-')) {
309 #line 310 "moonshot-webp-parser.c"
310                                 const gchar* _tmp11_ = NULL;
311                                 const gchar* _tmp12_ = NULL;
312                                 gchar* _tmp13_ = NULL;
313                                 const gchar* _tmp14_ = NULL;
314                                 gunichar _tmp15_ = 0U;
315                                 gunichar _tmp16_ = 0U;
316 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
317                                 _tmp11_ = arg;
318 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
319                                 _tmp12_ = g_utf8_next_char (_tmp11_);
320 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
321                                 _tmp13_ = g_strdup (_tmp12_);
322 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
323                                 _g_free0 (arg);
324 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
325                                 arg = _tmp13_;
326 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
327                                 _tmp14_ = arg;
328 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
329                                 _tmp15_ = string_get_char (_tmp14_, (glong) 0);
330 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
331                                 c = _tmp15_;
332 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
333                                 _tmp16_ = c;
334 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
335                                 switch (_tmp16_) {
336 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
337                                         case 'f':
338 #line 339 "moonshot-webp-parser.c"
339                                         {
340 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
341                                                 force_flat_file_store = 1;
342 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
343                                                 break;
344 #line 345 "moonshot-webp-parser.c"
345                                         }
346                                         default:
347                                         {
348 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
349                                                 bad_switch = TRUE;
350 #line 55 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
351                                                 break;
352 #line 353 "moonshot-webp-parser.c"
353                                         }
354                                 }
355                         } else {
356 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
357                                 _g_free0 (arg);
358 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
359                                 break;
360 #line 361 "moonshot-webp-parser.c"
361                         }
362 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
363                         _g_free0 (arg);
364 #line 365 "moonshot-webp-parser.c"
365                 }
366         }
367 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
368         _tmp18_ = bad_switch;
369 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
370         if (_tmp18_) {
371 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
372                 _tmp17_ = TRUE;
373 #line 374 "moonshot-webp-parser.c"
374         } else {
375                 gint _tmp19_ = 0;
376                 gchar** _tmp20_ = NULL;
377                 gint _tmp20__length1 = 0;
378 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
379                 _tmp19_ = arg_index;
380 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
381                 _tmp20_ = args;
382 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
383                 _tmp20__length1 = args_length1;
384 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
385                 _tmp17_ = _tmp19_ != (_tmp20__length1 - 1);
386 #line 387 "moonshot-webp-parser.c"
387         }
388 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
389         if (_tmp17_) {
390 #line 391 "moonshot-webp-parser.c"
391                 FILE* _tmp21_ = NULL;
392                 const gchar* _tmp22_ = NULL;
393                 gchar** _tmp23_ = NULL;
394                 gint _tmp23__length1 = 0;
395                 const gchar* _tmp24_ = NULL;
396 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
397                 _tmp21_ = stdout;
398 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
399                 _tmp22_ = _ ("Usage %s [-f] WEB_PROVISIONING_FILE\n" \
400 " -f: add identities to flat file store.\n");
401 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
402                 _tmp23_ = args;
403 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
404                 _tmp23__length1 = args_length1;
405 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
406                 _tmp24_ = _tmp23_[0];
407 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
408                 fprintf (_tmp21_, _tmp22_, _tmp24_);
409 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
410                 result = -1;
411 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
412                 return result;
413 #line 413 "moonshot-webp-parser.c"
414         }
415 #line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
416         _tmp25_ = args;
417 #line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
418         _tmp25__length1 = args_length1;
419 #line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
420         _tmp26_ = arg_index;
421 #line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
422         _tmp27_ = _tmp25_[_tmp26_];
423 #line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
424         _tmp28_ = g_strdup (_tmp27_);
425 #line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
426         webp_file = _tmp28_;
427 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
428         _tmp29_ = webp_file;
429 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
430         _tmp30_ = g_file_test (_tmp29_, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR);
431 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
432         if (!_tmp30_) {
433 #line 433 "moonshot-webp-parser.c"
434                 FILE* _tmp31_ = NULL;
435                 const gchar* _tmp32_ = NULL;
436                 const gchar* _tmp33_ = NULL;
437 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
438                 _tmp31_ = stdout;
439 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
440                 _tmp32_ = _ ("%s does not exist\n");
441 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
442                 _tmp33_ = webp_file;
443 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
444                 fprintf (_tmp31_, _tmp32_, _tmp33_);
445 #line 71 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
446                 result = -1;
447 #line 71 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
448                 _g_free0 (webp_file);
449 #line 71 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
450                 return result;
451 #line 451 "moonshot-webp-parser.c"
452         }
453 #line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
454         _tmp34_ = webp_file;
455 #line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
456         _tmp35_ = web_provisioning_parser_new (_tmp34_);
457 #line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
458         webp = _tmp35_;
459 #line 75 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
460         _tmp36_ = webp;
461 #line 75 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
462         web_provisioning_parser_parse (_tmp36_);
463 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
464         _tmp37_ = web_provisioning_cards;
465 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
466         _tmp37__length1 = web_provisioning_cards_length1;
467 #line 467 "moonshot-webp-parser.c"
468         {
469                 IdCard** card_collection = NULL;
470                 gint card_collection_length1 = 0;
471                 gint _card_collection_size_ = 0;
472                 gint card_it = 0;
473 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
474                 card_collection = _tmp37_;
475 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
476                 card_collection_length1 = _tmp37__length1;
477 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
478                 for (card_it = 0; card_it < _tmp37__length1; card_it = card_it + 1) {
479 #line 479 "moonshot-webp-parser.c"
480                         IdCard* _tmp38_ = NULL;
481                         IdCard* card = NULL;
482 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
483                         _tmp38_ = _g_object_ref0 (card_collection[card_it]);
484 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
485                         card = _tmp38_;
486 #line 486 "moonshot-webp-parser.c"
487                         {
488                                 MoonshotError* _error_ = NULL;
489                                 gchar** rules_patterns = NULL;
490                                 gchar** _tmp39_ = NULL;
491                                 gint rules_patterns_length1 = 0;
492                                 gint _rules_patterns_size_ = 0;
493                                 gchar** rules_always_confirm = NULL;
494                                 gchar** _tmp40_ = NULL;
495                                 gint rules_always_confirm_length1 = 0;
496                                 gint _rules_always_confirm_size_ = 0;
497                                 Rule* rules = NULL;
498                                 IdCard* _tmp41_ = NULL;
499                                 Rule* _tmp42_ = NULL;
500                                 gint _tmp42__length1 = 0;
501                                 Rule* _tmp43_ = NULL;
502                                 gint _tmp43__length1 = 0;
503                                 Rule* _tmp44_ = NULL;
504                                 gint _tmp44__length1 = 0;
505                                 gint rules_length1 = 0;
506                                 gint _rules_size_ = 0;
507                                 gchar** services = NULL;
508                                 IdCard* _tmp45_ = NULL;
509                                 gchar** _tmp46_ = NULL;
510                                 gint _tmp46__length1 = 0;
511                                 gchar** _tmp47_ = NULL;
512                                 gint _tmp47__length1 = 0;
513                                 gchar** _tmp48_ = NULL;
514                                 gint _tmp48__length1 = 0;
515                                 gint services_length1 = 0;
516                                 gint _services_size_ = 0;
517                                 Rule* _tmp49_ = NULL;
518                                 gint _tmp49__length1 = 0;
519                                 IdCard* _tmp69_ = NULL;
520                                 const gchar* _tmp70_ = NULL;
521                                 const gchar* _tmp71_ = NULL;
522                                 IdCard* _tmp72_ = NULL;
523                                 const gchar* _tmp73_ = NULL;
524                                 const gchar* _tmp74_ = NULL;
525                                 IdCard* _tmp75_ = NULL;
526                                 const gchar* _tmp76_ = NULL;
527                                 const gchar* _tmp77_ = NULL;
528                                 IdCard* _tmp78_ = NULL;
529                                 const gchar* _tmp79_ = NULL;
530                                 const gchar* _tmp80_ = NULL;
531                                 gchar** _tmp81_ = NULL;
532                                 gint _tmp81__length1 = 0;
533                                 gchar** _tmp82_ = NULL;
534                                 gint _tmp82__length1 = 0;
535                                 gchar** _tmp83_ = NULL;
536                                 gint _tmp83__length1 = 0;
537                                 IdCard* _tmp84_ = NULL;
538                                 TrustAnchor* _tmp85_ = NULL;
539                                 TrustAnchor* _tmp86_ = NULL;
540                                 const gchar* _tmp87_ = NULL;
541                                 const gchar* _tmp88_ = NULL;
542                                 IdCard* _tmp89_ = NULL;
543                                 TrustAnchor* _tmp90_ = NULL;
544                                 TrustAnchor* _tmp91_ = NULL;
545                                 const gchar* _tmp92_ = NULL;
546                                 const gchar* _tmp93_ = NULL;
547                                 IdCard* _tmp94_ = NULL;
548                                 TrustAnchor* _tmp95_ = NULL;
549                                 TrustAnchor* _tmp96_ = NULL;
550                                 const gchar* _tmp97_ = NULL;
551                                 const gchar* _tmp98_ = NULL;
552                                 IdCard* _tmp99_ = NULL;
553                                 TrustAnchor* _tmp100_ = NULL;
554                                 TrustAnchor* _tmp101_ = NULL;
555                                 const gchar* _tmp102_ = NULL;
556                                 const gchar* _tmp103_ = NULL;
557                                 gint _tmp104_ = 0;
558                                 MoonshotError* _tmp105_ = NULL;
559                                 MoonshotError* _tmp106_ = NULL;
560 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
561                                 _tmp39_ = g_new0 (gchar*, 0 + 1);
562 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
563                                 rules_patterns = _tmp39_;
564 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
565                                 rules_patterns_length1 = 0;
566 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
567                                 _rules_patterns_size_ = rules_patterns_length1;
568 #line 81 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
569                                 _tmp40_ = g_new0 (gchar*, 0 + 1);
570 #line 81 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
571                                 rules_always_confirm = _tmp40_;
572 #line 81 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
573                                 rules_always_confirm_length1 = 0;
574 #line 81 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
575                                 _rules_always_confirm_size_ = rules_always_confirm_length1;
576 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
577                                 _tmp41_ = card;
578 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
579                                 _tmp42_ = id_card_get_rules (_tmp41_, &_tmp42__length1);
580 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
581                                 _tmp43_ = _tmp42_;
582 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
583                                 _tmp43__length1 = _tmp42__length1;
584 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
585                                 _tmp44_ = (_tmp43_ != NULL) ? _vala_array_dup1 (_tmp43_, _tmp43__length1) : ((gpointer) _tmp43_);
586 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
587                                 _tmp44__length1 = _tmp43__length1;
588 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
589                                 rules = _tmp44_;
590 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
591                                 rules_length1 = _tmp44__length1;
592 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
593                                 _rules_size_ = rules_length1;
594 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
595                                 _tmp45_ = card;
596 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
597                                 _tmp46_ = id_card_get_services (_tmp45_, &_tmp46__length1);
598 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
599                                 _tmp47_ = _tmp46_;
600 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
601                                 _tmp47__length1 = _tmp46__length1;
602 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
603                                 _tmp48_ = (_tmp47_ != NULL) ? _vala_array_dup2 (_tmp47_, _tmp47__length1) : ((gpointer) _tmp47_);
604 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
605                                 _tmp48__length1 = _tmp47__length1;
606 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
607                                 services = _tmp48_;
608 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
609                                 services_length1 = _tmp48__length1;
610 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
611                                 _services_size_ = services_length1;
612 #line 86 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
613                                 _tmp49_ = rules;
614 #line 86 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
615                                 _tmp49__length1 = rules_length1;
616 #line 86 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
617                                 if (_tmp49__length1 > 0) {
618 #line 618 "moonshot-webp-parser.c"
619                                         gint i = 0;
620                                         Rule* _tmp50_ = NULL;
621                                         gint _tmp50__length1 = 0;
622                                         gchar** _tmp51_ = NULL;
623                                         Rule* _tmp52_ = NULL;
624                                         gint _tmp52__length1 = 0;
625                                         gchar** _tmp53_ = NULL;
626                                         Rule* _tmp54_ = NULL;
627                                         gint _tmp54__length1 = 0;
628 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
629                                         i = 0;
630 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
631                                         _tmp50_ = rules;
632 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
633                                         _tmp50__length1 = rules_length1;
634 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
635                                         _tmp51_ = g_new0 (gchar*, _tmp50__length1 + 1);
636 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
637                                         rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
638 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
639                                         rules_patterns = _tmp51_;
640 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
641                                         rules_patterns_length1 = _tmp50__length1;
642 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
643                                         _rules_patterns_size_ = rules_patterns_length1;
644 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
645                                         _tmp52_ = rules;
646 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
647                                         _tmp52__length1 = rules_length1;
648 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
649                                         _tmp53_ = g_new0 (gchar*, _tmp52__length1 + 1);
650 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
651                                         rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL);
652 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
653                                         rules_always_confirm = _tmp53_;
654 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
655                                         rules_always_confirm_length1 = _tmp52__length1;
656 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
657                                         _rules_always_confirm_size_ = rules_always_confirm_length1;
658 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
659                                         _tmp54_ = rules;
660 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
661                                         _tmp54__length1 = rules_length1;
662 #line 662 "moonshot-webp-parser.c"
663                                         {
664                                                 Rule* r_collection = NULL;
665                                                 gint r_collection_length1 = 0;
666                                                 gint _r_collection_size_ = 0;
667                                                 gint r_it = 0;
668 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
669                                                 r_collection = _tmp54_;
670 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
671                                                 r_collection_length1 = _tmp54__length1;
672 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
673                                                 for (r_it = 0; r_it < _tmp54__length1; r_it = r_it + 1) {
674 #line 674 "moonshot-webp-parser.c"
675                                                         Rule _tmp55_ = {0};
676                                                         Rule r = {0};
677 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
678                                                         rule_copy (&r_collection[r_it], &_tmp55_);
679 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
680                                                         r = _tmp55_;
681 #line 681 "moonshot-webp-parser.c"
682                                                         {
683                                                                 gchar** _tmp56_ = NULL;
684                                                                 gint _tmp56__length1 = 0;
685                                                                 gint _tmp57_ = 0;
686                                                                 Rule _tmp58_ = {0};
687                                                                 const gchar* _tmp59_ = NULL;
688                                                                 gchar* _tmp60_ = NULL;
689                                                                 gchar* _tmp61_ = NULL;
690                                                                 gchar** _tmp62_ = NULL;
691                                                                 gint _tmp62__length1 = 0;
692                                                                 gint _tmp63_ = 0;
693                                                                 Rule _tmp64_ = {0};
694                                                                 const gchar* _tmp65_ = NULL;
695                                                                 gchar* _tmp66_ = NULL;
696                                                                 gchar* _tmp67_ = NULL;
697                                                                 gint _tmp68_ = 0;
698 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
699                                                                 _tmp56_ = rules_patterns;
700 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
701                                                                 _tmp56__length1 = rules_patterns_length1;
702 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
703                                                                 _tmp57_ = i;
704 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
705                                                                 _tmp58_ = r;
706 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
707                                                                 _tmp59_ = _tmp58_.pattern;
708 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
709                                                                 _tmp60_ = g_strdup (_tmp59_);
710 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
711                                                                 _g_free0 (_tmp56_[_tmp57_]);
712 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
713                                                                 _tmp56_[_tmp57_] = _tmp60_;
714 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
715                                                                 _tmp61_ = _tmp56_[_tmp57_];
716 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
717                                                                 _tmp62_ = rules_always_confirm;
718 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
719                                                                 _tmp62__length1 = rules_always_confirm_length1;
720 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
721                                                                 _tmp63_ = i;
722 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
723                                                                 _tmp64_ = r;
724 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
725                                                                 _tmp65_ = _tmp64_.always_confirm;
726 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
727                                                                 _tmp66_ = g_strdup (_tmp65_);
728 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
729                                                                 _g_free0 (_tmp62_[_tmp63_]);
730 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
731                                                                 _tmp62_[_tmp63_] = _tmp66_;
732 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
733                                                                 _tmp67_ = _tmp62_[_tmp63_];
734 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
735                                                                 _tmp68_ = i;
736 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
737                                                                 i = _tmp68_ + 1;
738 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
739                                                                 rule_destroy (&r);
740 #line 740 "moonshot-webp-parser.c"
741                                                         }
742                                                 }
743                                         }
744                                 }
745 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
746                                 _tmp69_ = card;
747 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
748                                 _tmp70_ = id_card_get_display_name (_tmp69_);
749 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
750                                 _tmp71_ = _tmp70_;
751 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
752                                 _tmp72_ = card;
753 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
754                                 _tmp73_ = id_card_get_username (_tmp72_);
755 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
756                                 _tmp74_ = _tmp73_;
757 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
758                                 _tmp75_ = card;
759 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
760                                 _tmp76_ = id_card_get_password (_tmp75_);
761 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
762                                 _tmp77_ = _tmp76_;
763 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
764                                 _tmp78_ = card;
765 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
766                                 _tmp79_ = id_card_get_issuer (_tmp78_);
767 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
768                                 _tmp80_ = _tmp79_;
769 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
770                                 _tmp81_ = rules_patterns;
771 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
772                                 _tmp81__length1 = rules_patterns_length1;
773 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
774                                 _tmp82_ = rules_always_confirm;
775 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
776                                 _tmp82__length1 = rules_always_confirm_length1;
777 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
778                                 _tmp83_ = services;
779 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
780                                 _tmp83__length1 = services_length1;
781 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
782                                 _tmp84_ = card;
783 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
784                                 _tmp85_ = id_card_get_trust_anchor (_tmp84_);
785 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
786                                 _tmp86_ = _tmp85_;
787 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
788                                 _tmp87_ = trust_anchor_get_ca_cert (_tmp86_);
789 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
790                                 _tmp88_ = _tmp87_;
791 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
792                                 _tmp89_ = card;
793 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
794                                 _tmp90_ = id_card_get_trust_anchor (_tmp89_);
795 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
796                                 _tmp91_ = _tmp90_;
797 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
798                                 _tmp92_ = trust_anchor_get_subject (_tmp91_);
799 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
800                                 _tmp93_ = _tmp92_;
801 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
802                                 _tmp94_ = card;
803 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
804                                 _tmp95_ = id_card_get_trust_anchor (_tmp94_);
805 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
806                                 _tmp96_ = _tmp95_;
807 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
808                                 _tmp97_ = trust_anchor_get_subject_alt (_tmp96_);
809 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
810                                 _tmp98_ = _tmp97_;
811 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
812                                 _tmp99_ = card;
813 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
814                                 _tmp100_ = id_card_get_trust_anchor (_tmp99_);
815 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
816                                 _tmp101_ = _tmp100_;
817 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
818                                 _tmp102_ = trust_anchor_get_server_cert (_tmp101_);
819 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
820                                 _tmp103_ = _tmp102_;
821 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
822                                 _tmp104_ = force_flat_file_store;
823 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
824                                 moonshot_install_id_card (_tmp71_, _tmp74_, _tmp77_, _tmp80_, _tmp81_, _tmp81__length1, _tmp82_, _tmp82__length1, _tmp83_, _tmp83__length1, _tmp88_, _tmp93_, _tmp98_, _tmp103_, _tmp104_, &_tmp105_);
825 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
826                                 _moonshot_error_free0 (_error_);
827 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
828                                 _error_ = _tmp105_;
829 #line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
830                                 _tmp106_ = _error_;
831 #line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
832                                 if (_tmp106_ != NULL) {
833 #line 833 "moonshot-webp-parser.c"
834                                         FILE* _tmp107_ = NULL;
835                                         MoonshotError* _tmp108_ = NULL;
836                                         const gchar* _tmp109_ = NULL;
837 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
838                                         _tmp107_ = stderr;
839 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
840                                         _tmp108_ = _error_;
841 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
842                                         _tmp109_ = _tmp108_->message;
843 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
844                                         fprintf (_tmp107_, "Error: %s", _tmp109_);
845 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
846                                         services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_free), NULL);
847 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
848                                         rules = (_vala_Rule_array_free (rules, rules_length1), NULL);
849 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
850                                         rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL);
851 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
852                                         rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
853 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
854                                         _moonshot_error_free0 (_error_);
855 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
856                                         _g_object_unref0 (card);
857 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
858                                         continue;
859 #line 859 "moonshot-webp-parser.c"
860                                 }
861 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
862                                 services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_free), NULL);
863 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
864                                 rules = (_vala_Rule_array_free (rules, rules_length1), NULL);
865 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
866                                 rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL);
867 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
868                                 rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
869 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
870                                 _moonshot_error_free0 (_error_);
871 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
872                                 _g_object_unref0 (card);
873 #line 873 "moonshot-webp-parser.c"
874                         }
875                 }
876         }
877 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
878         result = 0;
879 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
880         _web_provisioning_parser_unref0 (webp);
881 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
882         _g_free0 (webp_file);
883 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
884         return result;
885 #line 885 "moonshot-webp-parser.c"
886 }
887
888
889 int main (int argc, char ** argv) {
890 #if !GLIB_CHECK_VERSION (2,35,0)
891         g_type_init ();
892 #endif
893 #line 38 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
894         return web_provisioning_main (argv, argc);
895 #line 895 "moonshot-webp-parser.c"
896 }
897
898
899 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
900         if ((array != NULL) && (destroy_func != NULL)) {
901                 int i;
902                 for (i = 0; i < array_length; i = i + 1) {
903                         if (((gpointer*) array)[i] != NULL) {
904                                 destroy_func (((gpointer*) array)[i]);
905                         }
906                 }
907         }
908 }
909
910
911 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
912         _vala_array_destroy (array, array_length, destroy_func);
913         g_free (array);
914 }
915
916
917