New upstream version 1.0.3
[moonshot-ui.git] / src / moonshot-webp-parser.c
1 /* moonshot-webp-parser.c generated by valac 0.34.9, the Vala compiler
2  * generated from moonshot-webp-parser.vala, do not modify */
3
4 /*
5  * Copyright (c) 2011-2016, 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 #include <gee.h>
45
46
47 #define TYPE_MOONSHOT_LOGGER (moonshot_logger_get_type ())
48 #define MOONSHOT_LOGGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MOONSHOT_LOGGER, MoonshotLogger))
49 #define MOONSHOT_LOGGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MOONSHOT_LOGGER, MoonshotLoggerClass))
50 #define IS_MOONSHOT_LOGGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MOONSHOT_LOGGER))
51 #define IS_MOONSHOT_LOGGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MOONSHOT_LOGGER))
52 #define MOONSHOT_LOGGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MOONSHOT_LOGGER, MoonshotLoggerClass))
53
54 typedef struct _MoonshotLogger MoonshotLogger;
55 typedef struct _MoonshotLoggerClass MoonshotLoggerClass;
56 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
57 #define _g_free0(var) (var = (g_free (var), NULL))
58
59 #define WEB_PROVISIONING_TYPE_PARSER (web_provisioning_parser_get_type ())
60 #define WEB_PROVISIONING_PARSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParser))
61 #define WEB_PROVISIONING_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParserClass))
62 #define WEB_PROVISIONING_IS_PARSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WEB_PROVISIONING_TYPE_PARSER))
63 #define WEB_PROVISIONING_IS_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), WEB_PROVISIONING_TYPE_PARSER))
64 #define WEB_PROVISIONING_PARSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParserClass))
65
66 typedef struct _WebProvisioningParser WebProvisioningParser;
67 typedef struct _WebProvisioningParserClass WebProvisioningParserClass;
68
69 #define TYPE_ID_CARD (id_card_get_type ())
70 #define ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ID_CARD, IdCard))
71 #define ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ID_CARD, IdCardClass))
72 #define IS_ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ID_CARD))
73 #define IS_ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ID_CARD))
74 #define ID_CARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ID_CARD, IdCardClass))
75
76 typedef struct _IdCard IdCard;
77 typedef struct _IdCardClass IdCardClass;
78
79 #define TYPE_RULE (rule_get_type ())
80 typedef struct _Rule Rule;
81
82 #define TYPE_TRUST_ANCHOR (trust_anchor_get_type ())
83 #define TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRUST_ANCHOR, TrustAnchor))
84 #define TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRUST_ANCHOR, TrustAnchorClass))
85 #define IS_TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRUST_ANCHOR))
86 #define IS_TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRUST_ANCHOR))
87 #define TRUST_ANCHOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRUST_ANCHOR, TrustAnchorClass))
88
89 typedef struct _TrustAnchor TrustAnchor;
90 typedef struct _TrustAnchorClass TrustAnchorClass;
91 #define _moonshot_error_free0(var) ((var == NULL) ? NULL : (var = (moonshot_error_free (var), NULL)))
92
93 struct _Rule {
94         gchar* pattern;
95         gchar* always_confirm;
96 };
97
98
99 extern MoonshotLogger* web_provisioning_logger;
100 MoonshotLogger* web_provisioning_logger = NULL;
101
102 GType moonshot_logger_get_type (void) G_GNUC_CONST;
103 gint web_provisioning_main (gchar** args, int args_length1);
104 MoonshotLogger* moonshot_logger_new (const gchar* name);
105 MoonshotLogger* moonshot_logger_construct (GType object_type, const gchar* name);
106 GType web_provisioning_parser_get_type (void) G_GNUC_CONST;
107 WebProvisioningParser* web_provisioning_parser_new (const gchar* path);
108 WebProvisioningParser* web_provisioning_parser_construct (GType object_type, const gchar* path);
109 void web_provisioning_parser_parse (WebProvisioningParser* self);
110 void moonshot_logger_trace (MoonshotLogger* self, const gchar* message, GError* e);
111 GType id_card_get_type (void) G_GNUC_CONST;
112 IdCard** web_provisioning_parser_get_cards (WebProvisioningParser* self, int* result_length1);
113 GType rule_get_type (void) G_GNUC_CONST;
114 Rule* rule_dup (const Rule* self);
115 void rule_free (Rule* self);
116 void rule_copy (const Rule* self, Rule* dest);
117 void rule_destroy (Rule* self);
118 Rule* id_card_get_rules (IdCard* self, int* result_length1);
119 static Rule* _vala_array_dup1 (Rule* self, int length);
120 GeeArrayList* id_card_get_services (IdCard* self);
121 const gchar* id_card_get_display_name (IdCard* self);
122 const gchar* id_card_get_username (IdCard* self);
123 const gchar* id_card_get_password (IdCard* self);
124 const gchar* id_card_get_issuer (IdCard* self);
125 GType trust_anchor_get_type (void) G_GNUC_CONST;
126 TrustAnchor* id_card_get_trust_anchor (IdCard* self);
127 const gchar* trust_anchor_get_ca_cert (TrustAnchor* self);
128 const gchar* trust_anchor_get_subject (TrustAnchor* self);
129 const gchar* trust_anchor_get_subject_alt (TrustAnchor* self);
130 const gchar* trust_anchor_get_server_cert (TrustAnchor* self);
131 static void _vala_Rule_array_free (Rule* array, gint array_length);
132 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
133 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
134
135
136 static gunichar string_get_char (const gchar* self, glong index) {
137         gunichar result = 0U;
138         glong _tmp0_ = 0L;
139         gunichar _tmp1_ = 0U;
140 #line 1124 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
141         g_return_val_if_fail (self != NULL, 0U);
142 #line 1125 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
143         _tmp0_ = index;
144 #line 1125 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
145         _tmp1_ = g_utf8_get_char (((gchar*) self) + _tmp0_);
146 #line 1125 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
147         result = _tmp1_;
148 #line 1125 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
149         return result;
150 #line 151 "moonshot-webp-parser.c"
151 }
152
153
154 static gpointer _g_object_ref0 (gpointer self) {
155 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
156         return self ? g_object_ref (self) : NULL;
157 #line 158 "moonshot-webp-parser.c"
158 }
159
160
161 static Rule* _vala_array_dup1 (Rule* self, int length) {
162         Rule* result;
163         int i;
164 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
165         result = g_new0 (Rule, length);
166 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
167         for (i = 0; i < length; i++) {
168 #line 169 "moonshot-webp-parser.c"
169                 Rule _tmp0_ = {0};
170 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
171                 rule_copy (&self[i], &_tmp0_);
172 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
173                 result[i] = _tmp0_;
174 #line 175 "moonshot-webp-parser.c"
175         }
176 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
177         return result;
178 #line 179 "moonshot-webp-parser.c"
179 }
180
181
182 static const gchar* string_to_string (const gchar* self) {
183         const gchar* result = NULL;
184 #line 1420 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
185         g_return_val_if_fail (self != NULL, NULL);
186 #line 1421 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
187         result = self;
188 #line 1421 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
189         return result;
190 #line 191 "moonshot-webp-parser.c"
191 }
192
193
194 static void _vala_Rule_array_free (Rule* array, gint array_length) {
195 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
196         if (array != NULL) {
197 #line 198 "moonshot-webp-parser.c"
198                 int i;
199 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
200                 for (i = 0; i < array_length; i = i + 1) {
201 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
202                         rule_destroy (&array[i]);
203 #line 204 "moonshot-webp-parser.c"
204                 }
205         }
206 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
207         g_free (array);
208 #line 209 "moonshot-webp-parser.c"
209 }
210
211
212 gint web_provisioning_main (gchar** args, int args_length1) {
213         gint result = 0;
214         MoonshotLogger* _tmp0_ = NULL;
215         gint arg_index = 0;
216         gint force_flat_file_store = 0;
217         gboolean bad_switch = FALSE;
218         gboolean _tmp18_ = FALSE;
219         gboolean _tmp19_ = FALSE;
220         gchar* webp_file = NULL;
221         gchar** _tmp26_ = NULL;
222         gint _tmp26__length1 = 0;
223         gint _tmp27_ = 0;
224         const gchar* _tmp28_ = NULL;
225         gchar* _tmp29_ = NULL;
226         const gchar* _tmp30_ = NULL;
227         gboolean _tmp31_ = FALSE;
228         WebProvisioningParser* webp = NULL;
229         const gchar* _tmp35_ = NULL;
230         WebProvisioningParser* _tmp36_ = NULL;
231         WebProvisioningParser* _tmp37_ = NULL;
232         MoonshotLogger* _tmp38_ = NULL;
233         WebProvisioningParser* _tmp39_ = NULL;
234         IdCard** _tmp40_ = NULL;
235         gint _tmp40__length1 = 0;
236         IdCard** _tmp41_ = NULL;
237         gint _tmp41__length1 = 0;
238         gchar* _tmp42_ = NULL;
239         gchar* _tmp43_ = NULL;
240         gchar* _tmp44_ = NULL;
241         gchar* _tmp45_ = NULL;
242         WebProvisioningParser* _tmp46_ = NULL;
243         IdCard** _tmp47_ = NULL;
244         gint _tmp47__length1 = 0;
245         IdCard** _tmp48_ = NULL;
246         gint _tmp48__length1 = 0;
247 #line 40 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
248         _tmp0_ = moonshot_logger_new ("WebProvisioning (WebpParser)");
249 #line 40 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
250         _g_object_unref0 (web_provisioning_logger);
251 #line 40 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
252         web_provisioning_logger = _tmp0_;
253 #line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
254         arg_index = -1;
255 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
256         force_flat_file_store = 0;
257 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
258         bad_switch = FALSE;
259 #line 260 "moonshot-webp-parser.c"
260         {
261                 gboolean _tmp1_ = FALSE;
262 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
263                 arg_index = 1;
264 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
265                 _tmp1_ = TRUE;
266 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
267                 while (TRUE) {
268 #line 269 "moonshot-webp-parser.c"
269                         gint _tmp3_ = 0;
270                         gchar** _tmp4_ = NULL;
271                         gint _tmp4__length1 = 0;
272                         gchar* arg = NULL;
273                         gchar** _tmp5_ = NULL;
274                         gint _tmp5__length1 = 0;
275                         gint _tmp6_ = 0;
276                         const gchar* _tmp7_ = NULL;
277                         gchar* _tmp8_ = NULL;
278                         gunichar c = 0U;
279                         const gchar* _tmp9_ = NULL;
280                         gunichar _tmp10_ = 0U;
281                         gunichar _tmp11_ = 0U;
282 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
283                         if (!_tmp1_) {
284 #line 285 "moonshot-webp-parser.c"
285                                 gint _tmp2_ = 0;
286 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
287                                 _tmp2_ = arg_index;
288 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
289                                 arg_index = _tmp2_ + 1;
290 #line 291 "moonshot-webp-parser.c"
291                         }
292 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
293                         _tmp1_ = FALSE;
294 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
295                         _tmp3_ = arg_index;
296 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
297                         _tmp4_ = args;
298 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
299                         _tmp4__length1 = args_length1;
300 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
301                         if (!(_tmp3_ < _tmp4__length1)) {
302 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
303                                 break;
304 #line 305 "moonshot-webp-parser.c"
305                         }
306 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
307                         _tmp5_ = args;
308 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
309                         _tmp5__length1 = args_length1;
310 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
311                         _tmp6_ = arg_index;
312 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
313                         _tmp7_ = _tmp5_[_tmp6_];
314 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
315                         _tmp8_ = g_strdup (_tmp7_);
316 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
317                         arg = _tmp8_;
318 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
319                         _tmp9_ = arg;
320 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
321                         _tmp10_ = string_get_char (_tmp9_, (glong) 0);
322 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
323                         c = _tmp10_;
324 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
325                         _tmp11_ = c;
326 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
327                         if (_tmp11_ == ((gunichar) '-')) {
328 #line 329 "moonshot-webp-parser.c"
329                                 const gchar* _tmp12_ = NULL;
330                                 const gchar* _tmp13_ = NULL;
331                                 gchar* _tmp14_ = NULL;
332                                 const gchar* _tmp15_ = NULL;
333                                 gunichar _tmp16_ = 0U;
334                                 gunichar _tmp17_ = 0U;
335 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
336                                 _tmp12_ = arg;
337 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
338                                 _tmp13_ = g_utf8_next_char (_tmp12_);
339 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
340                                 _tmp14_ = g_strdup (_tmp13_);
341 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
342                                 _g_free0 (arg);
343 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
344                                 arg = _tmp14_;
345 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
346                                 _tmp15_ = arg;
347 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
348                                 _tmp16_ = string_get_char (_tmp15_, (glong) 0);
349 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
350                                 c = _tmp16_;
351 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
352                                 _tmp17_ = c;
353 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
354                                 switch (_tmp17_) {
355 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
356                                         case 'f':
357 #line 358 "moonshot-webp-parser.c"
358                                         {
359 #line 53 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
360                                                 force_flat_file_store = 1;
361 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
362                                                 break;
363 #line 364 "moonshot-webp-parser.c"
364                                         }
365                                         default:
366                                         {
367 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
368                                                 bad_switch = TRUE;
369 #line 57 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
370                                                 break;
371 #line 372 "moonshot-webp-parser.c"
372                                         }
373                                 }
374                         } else {
375 #line 60 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
376                                 _g_free0 (arg);
377 #line 60 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
378                                 break;
379 #line 380 "moonshot-webp-parser.c"
380                         }
381 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
382                         _g_free0 (arg);
383 #line 384 "moonshot-webp-parser.c"
384                 }
385         }
386 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
387         _tmp19_ = bad_switch;
388 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
389         if (_tmp19_) {
390 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
391                 _tmp18_ = TRUE;
392 #line 393 "moonshot-webp-parser.c"
393         } else {
394                 gint _tmp20_ = 0;
395                 gchar** _tmp21_ = NULL;
396                 gint _tmp21__length1 = 0;
397 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
398                 _tmp20_ = arg_index;
399 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
400                 _tmp21_ = args;
401 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
402                 _tmp21__length1 = args_length1;
403 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
404                 _tmp18_ = _tmp20_ != (_tmp21__length1 - 1);
405 #line 406 "moonshot-webp-parser.c"
406         }
407 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
408         if (_tmp18_) {
409 #line 410 "moonshot-webp-parser.c"
410                 FILE* _tmp22_ = NULL;
411                 const gchar* _tmp23_ = NULL;
412                 gchar** _tmp24_ = NULL;
413                 gint _tmp24__length1 = 0;
414                 const gchar* _tmp25_ = NULL;
415 #line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
416                 _tmp22_ = stdout;
417 #line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
418                 _tmp23_ = _ ("Usage %s [-f] WEB_PROVISIONING_FILE\n" \
419 " -f: add identities to flat file store.\n");
420 #line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
421                 _tmp24_ = args;
422 #line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
423                 _tmp24__length1 = args_length1;
424 #line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
425                 _tmp25_ = _tmp24_[0];
426 #line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
427                 fprintf (_tmp22_, _tmp23_, _tmp25_);
428 #line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
429                 result = -1;
430 #line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
431                 return result;
432 #line 432 "moonshot-webp-parser.c"
433         }
434 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
435         _tmp26_ = args;
436 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
437         _tmp26__length1 = args_length1;
438 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
439         _tmp27_ = arg_index;
440 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
441         _tmp28_ = _tmp26_[_tmp27_];
442 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
443         _tmp29_ = g_strdup (_tmp28_);
444 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
445         webp_file = _tmp29_;
446 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
447         _tmp30_ = webp_file;
448 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
449         _tmp31_ = g_file_test (_tmp30_, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR);
450 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
451         if (!_tmp31_) {
452 #line 452 "moonshot-webp-parser.c"
453                 FILE* _tmp32_ = NULL;
454                 const gchar* _tmp33_ = NULL;
455                 const gchar* _tmp34_ = NULL;
456 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
457                 _tmp32_ = stdout;
458 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
459                 _tmp33_ = _ ("%s does not exist\n");
460 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
461                 _tmp34_ = webp_file;
462 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
463                 fprintf (_tmp32_, _tmp33_, _tmp34_);
464 #line 73 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
465                 result = -1;
466 #line 73 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
467                 _g_free0 (webp_file);
468 #line 73 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
469                 return result;
470 #line 470 "moonshot-webp-parser.c"
471         }
472 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
473         _tmp35_ = webp_file;
474 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
475         _tmp36_ = web_provisioning_parser_new (_tmp35_);
476 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
477         webp = _tmp36_;
478 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
479         _tmp37_ = webp;
480 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
481         web_provisioning_parser_parse (_tmp37_);
482 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
483         _tmp38_ = web_provisioning_logger;
484 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
485         _tmp39_ = webp;
486 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
487         _tmp40_ = web_provisioning_parser_get_cards (_tmp39_, &_tmp40__length1);
488 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
489         _tmp41_ = _tmp40_;
490 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
491         _tmp41__length1 = _tmp40__length1;
492 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
493         _tmp42_ = g_strdup_printf ("%i", _tmp41__length1);
494 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
495         _tmp43_ = _tmp42_;
496 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
497         _tmp44_ = g_strconcat ("Have ", _tmp43_, " IdCards", NULL);
498 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
499         _tmp45_ = _tmp44_;
500 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
501         moonshot_logger_trace (_tmp38_, _tmp45_, NULL);
502 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
503         _g_free0 (_tmp45_);
504 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
505         _g_free0 (_tmp43_);
506 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
507         _tmp46_ = webp;
508 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
509         _tmp47_ = web_provisioning_parser_get_cards (_tmp46_, &_tmp47__length1);
510 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
511         _tmp48_ = _tmp47_;
512 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
513         _tmp48__length1 = _tmp47__length1;
514 #line 514 "moonshot-webp-parser.c"
515         {
516                 IdCard** card_collection = NULL;
517                 gint card_collection_length1 = 0;
518                 gint _card_collection_size_ = 0;
519                 gint card_it = 0;
520 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
521                 card_collection = _tmp48_;
522 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
523                 card_collection_length1 = _tmp48__length1;
524 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
525                 for (card_it = 0; card_it < _tmp48__length1; card_it = card_it + 1) {
526 #line 526 "moonshot-webp-parser.c"
527                         IdCard* _tmp49_ = NULL;
528                         IdCard* card = NULL;
529 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
530                         _tmp49_ = _g_object_ref0 (card_collection[card_it]);
531 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
532                         card = _tmp49_;
533 #line 533 "moonshot-webp-parser.c"
534                         {
535                                 IdCard* _tmp50_ = NULL;
536                                 MoonshotError* _error_ = NULL;
537                                 gchar** rules_patterns = NULL;
538                                 gchar** _tmp52_ = NULL;
539                                 gint rules_patterns_length1 = 0;
540                                 gint _rules_patterns_size_ = 0;
541                                 gchar** rules_always_confirm = NULL;
542                                 gchar** _tmp53_ = NULL;
543                                 gint rules_always_confirm_length1 = 0;
544                                 gint _rules_always_confirm_size_ = 0;
545                                 Rule* rules = NULL;
546                                 IdCard* _tmp54_ = NULL;
547                                 Rule* _tmp55_ = NULL;
548                                 gint _tmp55__length1 = 0;
549                                 Rule* _tmp56_ = NULL;
550                                 gint _tmp56__length1 = 0;
551                                 Rule* _tmp57_ = NULL;
552                                 gint _tmp57__length1 = 0;
553                                 gint rules_length1 = 0;
554                                 gint _rules_size_ = 0;
555                                 gchar** svcs = NULL;
556                                 IdCard* _tmp58_ = NULL;
557                                 GeeArrayList* _tmp59_ = NULL;
558                                 GeeArrayList* _tmp60_ = NULL;
559                                 gint _tmp61_ = 0;
560                                 gint _tmp62_ = 0;
561                                 gchar** _tmp63_ = NULL;
562                                 gint svcs_length1 = 0;
563                                 gint _svcs_size_ = 0;
564                                 Rule* _tmp80_ = NULL;
565                                 gint _tmp80__length1 = 0;
566                                 MoonshotLogger* _tmp100_ = NULL;
567                                 IdCard* _tmp101_ = NULL;
568                                 const gchar* _tmp102_ = NULL;
569                                 const gchar* _tmp103_ = NULL;
570                                 const gchar* _tmp104_ = NULL;
571                                 gchar* _tmp105_ = NULL;
572                                 gchar* _tmp106_ = NULL;
573                                 IdCard* _tmp107_ = NULL;
574                                 const gchar* _tmp108_ = NULL;
575                                 const gchar* _tmp109_ = NULL;
576                                 IdCard* _tmp110_ = NULL;
577                                 const gchar* _tmp111_ = NULL;
578                                 const gchar* _tmp112_ = NULL;
579                                 IdCard* _tmp113_ = NULL;
580                                 const gchar* _tmp114_ = NULL;
581                                 const gchar* _tmp115_ = NULL;
582                                 IdCard* _tmp116_ = NULL;
583                                 const gchar* _tmp117_ = NULL;
584                                 const gchar* _tmp118_ = NULL;
585                                 gchar** _tmp119_ = NULL;
586                                 gint _tmp119__length1 = 0;
587                                 gchar** _tmp120_ = NULL;
588                                 gint _tmp120__length1 = 0;
589                                 gchar** _tmp121_ = NULL;
590                                 gint _tmp121__length1 = 0;
591                                 IdCard* _tmp122_ = NULL;
592                                 TrustAnchor* _tmp123_ = NULL;
593                                 TrustAnchor* _tmp124_ = NULL;
594                                 const gchar* _tmp125_ = NULL;
595                                 const gchar* _tmp126_ = NULL;
596                                 IdCard* _tmp127_ = NULL;
597                                 TrustAnchor* _tmp128_ = NULL;
598                                 TrustAnchor* _tmp129_ = NULL;
599                                 const gchar* _tmp130_ = NULL;
600                                 const gchar* _tmp131_ = NULL;
601                                 IdCard* _tmp132_ = NULL;
602                                 TrustAnchor* _tmp133_ = NULL;
603                                 TrustAnchor* _tmp134_ = NULL;
604                                 const gchar* _tmp135_ = NULL;
605                                 const gchar* _tmp136_ = NULL;
606                                 IdCard* _tmp137_ = NULL;
607                                 TrustAnchor* _tmp138_ = NULL;
608                                 TrustAnchor* _tmp139_ = NULL;
609                                 const gchar* _tmp140_ = NULL;
610                                 const gchar* _tmp141_ = NULL;
611                                 gint _tmp142_ = 0;
612                                 MoonshotError* _tmp143_ = NULL;
613                                 MoonshotError* _tmp144_ = NULL;
614 #line 82 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
615                                 _tmp50_ = card;
616 #line 82 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
617                                 if (_tmp50_ == NULL) {
618 #line 618 "moonshot-webp-parser.c"
619                                         MoonshotLogger* _tmp51_ = NULL;
620 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
621                                         _tmp51_ = web_provisioning_logger;
622 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
623                                         moonshot_logger_trace (_tmp51_, "Skipping null IdCard", NULL);
624 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
625                                         _g_object_unref0 (card);
626 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
627                                         continue;
628 #line 628 "moonshot-webp-parser.c"
629                                 }
630 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
631                                 _tmp52_ = g_new0 (gchar*, 0 + 1);
632 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
633                                 rules_patterns = _tmp52_;
634 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
635                                 rules_patterns_length1 = 0;
636 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
637                                 _rules_patterns_size_ = rules_patterns_length1;
638 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
639                                 _tmp53_ = g_new0 (gchar*, 0 + 1);
640 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
641                                 rules_always_confirm = _tmp53_;
642 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
643                                 rules_always_confirm_length1 = 0;
644 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
645                                 _rules_always_confirm_size_ = rules_always_confirm_length1;
646 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
647                                 _tmp54_ = card;
648 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
649                                 _tmp55_ = id_card_get_rules (_tmp54_, &_tmp55__length1);
650 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
651                                 _tmp56_ = _tmp55_;
652 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
653                                 _tmp56__length1 = _tmp55__length1;
654 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
655                                 _tmp57_ = (_tmp56_ != NULL) ? _vala_array_dup1 (_tmp56_, _tmp56__length1) : ((gpointer) _tmp56_);
656 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
657                                 _tmp57__length1 = _tmp56__length1;
658 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
659                                 rules = _tmp57_;
660 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
661                                 rules_length1 = _tmp57__length1;
662 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
663                                 _rules_size_ = rules_length1;
664 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
665                                 _tmp58_ = card;
666 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
667                                 _tmp59_ = id_card_get_services (_tmp58_);
668 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
669                                 _tmp60_ = _tmp59_;
670 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
671                                 _tmp61_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp60_);
672 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
673                                 _tmp62_ = _tmp61_;
674 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
675                                 _tmp63_ = g_new0 (gchar*, _tmp62_ + 1);
676 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
677                                 svcs = _tmp63_;
678 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
679                                 svcs_length1 = _tmp62_;
680 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
681                                 _svcs_size_ = svcs_length1;
682 #line 682 "moonshot-webp-parser.c"
683                                 {
684                                         gint i = 0;
685 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
686                                         i = 0;
687 #line 687 "moonshot-webp-parser.c"
688                                         {
689                                                 gboolean _tmp64_ = FALSE;
690 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
691                                                 _tmp64_ = TRUE;
692 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
693                                                 while (TRUE) {
694 #line 694 "moonshot-webp-parser.c"
695                                                         gint _tmp66_ = 0;
696                                                         IdCard* _tmp67_ = NULL;
697                                                         GeeArrayList* _tmp68_ = NULL;
698                                                         GeeArrayList* _tmp69_ = NULL;
699                                                         gint _tmp70_ = 0;
700                                                         gint _tmp71_ = 0;
701                                                         gchar** _tmp72_ = NULL;
702                                                         gint _tmp72__length1 = 0;
703                                                         gint _tmp73_ = 0;
704                                                         IdCard* _tmp74_ = NULL;
705                                                         GeeArrayList* _tmp75_ = NULL;
706                                                         GeeArrayList* _tmp76_ = NULL;
707                                                         gint _tmp77_ = 0;
708                                                         gpointer _tmp78_ = NULL;
709                                                         gchar* _tmp79_ = NULL;
710 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
711                                                         if (!_tmp64_) {
712 #line 712 "moonshot-webp-parser.c"
713                                                                 gint _tmp65_ = 0;
714 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
715                                                                 _tmp65_ = i;
716 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
717                                                                 i = _tmp65_ + 1;
718 #line 718 "moonshot-webp-parser.c"
719                                                         }
720 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
721                                                         _tmp64_ = FALSE;
722 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
723                                                         _tmp66_ = i;
724 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
725                                                         _tmp67_ = card;
726 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
727                                                         _tmp68_ = id_card_get_services (_tmp67_);
728 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
729                                                         _tmp69_ = _tmp68_;
730 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
731                                                         _tmp70_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp69_);
732 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
733                                                         _tmp71_ = _tmp70_;
734 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
735                                                         if (!(_tmp66_ < _tmp71_)) {
736 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
737                                                                 break;
738 #line 738 "moonshot-webp-parser.c"
739                                                         }
740 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
741                                                         _tmp72_ = svcs;
742 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
743                                                         _tmp72__length1 = svcs_length1;
744 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
745                                                         _tmp73_ = i;
746 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
747                                                         _tmp74_ = card;
748 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
749                                                         _tmp75_ = id_card_get_services (_tmp74_);
750 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
751                                                         _tmp76_ = _tmp75_;
752 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
753                                                         _tmp77_ = i;
754 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
755                                                         _tmp78_ = gee_abstract_list_get ((GeeAbstractList*) _tmp76_, _tmp77_);
756 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
757                                                         _g_free0 (_tmp72_[_tmp73_]);
758 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
759                                                         _tmp72_[_tmp73_] = (gchar*) _tmp78_;
760 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
761                                                         _tmp79_ = _tmp72_[_tmp73_];
762 #line 762 "moonshot-webp-parser.c"
763                                                 }
764                                         }
765                                 }
766 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
767                                 _tmp80_ = rules;
768 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
769                                 _tmp80__length1 = rules_length1;
770 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
771                                 if (_tmp80__length1 > 0) {
772 #line 772 "moonshot-webp-parser.c"
773                                         gint i = 0;
774                                         Rule* _tmp81_ = NULL;
775                                         gint _tmp81__length1 = 0;
776                                         gchar** _tmp82_ = NULL;
777                                         Rule* _tmp83_ = NULL;
778                                         gint _tmp83__length1 = 0;
779                                         gchar** _tmp84_ = NULL;
780                                         Rule* _tmp85_ = NULL;
781                                         gint _tmp85__length1 = 0;
782 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
783                                         i = 0;
784 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
785                                         _tmp81_ = rules;
786 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
787                                         _tmp81__length1 = rules_length1;
788 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
789                                         _tmp82_ = g_new0 (gchar*, _tmp81__length1 + 1);
790 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
791                                         rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
792 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
793                                         rules_patterns = _tmp82_;
794 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
795                                         rules_patterns_length1 = _tmp81__length1;
796 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
797                                         _rules_patterns_size_ = rules_patterns_length1;
798 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
799                                         _tmp83_ = rules;
800 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
801                                         _tmp83__length1 = rules_length1;
802 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
803                                         _tmp84_ = g_new0 (gchar*, _tmp83__length1 + 1);
804 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
805                                         rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL);
806 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
807                                         rules_always_confirm = _tmp84_;
808 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
809                                         rules_always_confirm_length1 = _tmp83__length1;
810 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
811                                         _rules_always_confirm_size_ = rules_always_confirm_length1;
812 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
813                                         _tmp85_ = rules;
814 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
815                                         _tmp85__length1 = rules_length1;
816 #line 816 "moonshot-webp-parser.c"
817                                         {
818                                                 Rule* r_collection = NULL;
819                                                 gint r_collection_length1 = 0;
820                                                 gint _r_collection_size_ = 0;
821                                                 gint r_it = 0;
822 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
823                                                 r_collection = _tmp85_;
824 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
825                                                 r_collection_length1 = _tmp85__length1;
826 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
827                                                 for (r_it = 0; r_it < _tmp85__length1; r_it = r_it + 1) {
828 #line 828 "moonshot-webp-parser.c"
829                                                         Rule _tmp86_ = {0};
830                                                         Rule r = {0};
831 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
832                                                         rule_copy (&r_collection[r_it], &_tmp86_);
833 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
834                                                         r = _tmp86_;
835 #line 835 "moonshot-webp-parser.c"
836                                                         {
837                                                                 gchar** _tmp87_ = NULL;
838                                                                 gint _tmp87__length1 = 0;
839                                                                 gint _tmp88_ = 0;
840                                                                 Rule _tmp89_ = {0};
841                                                                 const gchar* _tmp90_ = NULL;
842                                                                 gchar* _tmp91_ = NULL;
843                                                                 gchar* _tmp92_ = NULL;
844                                                                 gchar** _tmp93_ = NULL;
845                                                                 gint _tmp93__length1 = 0;
846                                                                 gint _tmp94_ = 0;
847                                                                 Rule _tmp95_ = {0};
848                                                                 const gchar* _tmp96_ = NULL;
849                                                                 gchar* _tmp97_ = NULL;
850                                                                 gchar* _tmp98_ = NULL;
851                                                                 gint _tmp99_ = 0;
852 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
853                                                                 _tmp87_ = rules_patterns;
854 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
855                                                                 _tmp87__length1 = rules_patterns_length1;
856 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
857                                                                 _tmp88_ = i;
858 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
859                                                                 _tmp89_ = r;
860 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
861                                                                 _tmp90_ = _tmp89_.pattern;
862 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
863                                                                 _tmp91_ = g_strdup (_tmp90_);
864 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
865                                                                 _g_free0 (_tmp87_[_tmp88_]);
866 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
867                                                                 _tmp87_[_tmp88_] = _tmp91_;
868 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
869                                                                 _tmp92_ = _tmp87_[_tmp88_];
870 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
871                                                                 _tmp93_ = rules_always_confirm;
872 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
873                                                                 _tmp93__length1 = rules_always_confirm_length1;
874 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
875                                                                 _tmp94_ = i;
876 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
877                                                                 _tmp95_ = r;
878 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
879                                                                 _tmp96_ = _tmp95_.always_confirm;
880 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
881                                                                 _tmp97_ = g_strdup (_tmp96_);
882 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
883                                                                 _g_free0 (_tmp93_[_tmp94_]);
884 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
885                                                                 _tmp93_[_tmp94_] = _tmp97_;
886 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
887                                                                 _tmp98_ = _tmp93_[_tmp94_];
888 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
889                                                                 _tmp99_ = i;
890 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
891                                                                 i = _tmp99_ + 1;
892 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
893                                                                 rule_destroy (&r);
894 #line 894 "moonshot-webp-parser.c"
895                                                         }
896                                                 }
897                                         }
898                                 }
899 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
900                                 _tmp100_ = web_provisioning_logger;
901 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
902                                 _tmp101_ = card;
903 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
904                                 _tmp102_ = id_card_get_display_name (_tmp101_);
905 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
906                                 _tmp103_ = _tmp102_;
907 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
908                                 _tmp104_ = string_to_string (_tmp103_);
909 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
910                                 _tmp105_ = g_strconcat ("Installing IdCard named '", _tmp104_, "'", NULL);
911 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
912                                 _tmp106_ = _tmp105_;
913 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
914                                 moonshot_logger_trace (_tmp100_, _tmp106_, NULL);
915 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
916                                 _g_free0 (_tmp106_);
917 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
918                                 _tmp107_ = card;
919 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
920                                 _tmp108_ = id_card_get_display_name (_tmp107_);
921 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
922                                 _tmp109_ = _tmp108_;
923 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
924                                 _tmp110_ = card;
925 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
926                                 _tmp111_ = id_card_get_username (_tmp110_);
927 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
928                                 _tmp112_ = _tmp111_;
929 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
930                                 _tmp113_ = card;
931 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
932                                 _tmp114_ = id_card_get_password (_tmp113_);
933 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
934                                 _tmp115_ = _tmp114_;
935 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
936                                 _tmp116_ = card;
937 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
938                                 _tmp117_ = id_card_get_issuer (_tmp116_);
939 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
940                                 _tmp118_ = _tmp117_;
941 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
942                                 _tmp119_ = rules_patterns;
943 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
944                                 _tmp119__length1 = rules_patterns_length1;
945 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
946                                 _tmp120_ = rules_always_confirm;
947 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
948                                 _tmp120__length1 = rules_always_confirm_length1;
949 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
950                                 _tmp121_ = svcs;
951 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
952                                 _tmp121__length1 = svcs_length1;
953 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
954                                 _tmp122_ = card;
955 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
956                                 _tmp123_ = id_card_get_trust_anchor (_tmp122_);
957 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
958                                 _tmp124_ = _tmp123_;
959 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
960                                 _tmp125_ = trust_anchor_get_ca_cert (_tmp124_);
961 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
962                                 _tmp126_ = _tmp125_;
963 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
964                                 _tmp127_ = card;
965 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
966                                 _tmp128_ = id_card_get_trust_anchor (_tmp127_);
967 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
968                                 _tmp129_ = _tmp128_;
969 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
970                                 _tmp130_ = trust_anchor_get_subject (_tmp129_);
971 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
972                                 _tmp131_ = _tmp130_;
973 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
974                                 _tmp132_ = card;
975 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
976                                 _tmp133_ = id_card_get_trust_anchor (_tmp132_);
977 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
978                                 _tmp134_ = _tmp133_;
979 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
980                                 _tmp135_ = trust_anchor_get_subject_alt (_tmp134_);
981 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
982                                 _tmp136_ = _tmp135_;
983 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
984                                 _tmp137_ = card;
985 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
986                                 _tmp138_ = id_card_get_trust_anchor (_tmp137_);
987 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
988                                 _tmp139_ = _tmp138_;
989 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
990                                 _tmp140_ = trust_anchor_get_server_cert (_tmp139_);
991 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
992                                 _tmp141_ = _tmp140_;
993 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
994                                 _tmp142_ = force_flat_file_store;
995 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
996                                 moonshot_install_id_card (_tmp109_, _tmp112_, _tmp115_, _tmp118_, _tmp119_, _tmp119__length1, _tmp120_, _tmp120__length1, _tmp121_, _tmp121__length1, _tmp126_, _tmp131_, _tmp136_, _tmp141_, _tmp142_, &_tmp143_);
997 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
998                                 _moonshot_error_free0 (_error_);
999 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1000                                 _error_ = _tmp143_;
1001 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1002                                 _tmp144_ = _error_;
1003 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1004                                 if (_tmp144_ != NULL) {
1005 #line 1005 "moonshot-webp-parser.c"
1006                                         FILE* _tmp145_ = NULL;
1007                                         MoonshotError* _tmp146_ = NULL;
1008                                         const gchar* _tmp147_ = NULL;
1009 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1010                                         _tmp145_ = stderr;
1011 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1012                                         _tmp146_ = _error_;
1013 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1014                                         _tmp147_ = _tmp146_->message;
1015 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1016                                         fprintf (_tmp145_, "Error: %s", _tmp147_);
1017 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1018                                         svcs = (_vala_array_free (svcs, svcs_length1, (GDestroyNotify) g_free), NULL);
1019 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1020                                         rules = (_vala_Rule_array_free (rules, rules_length1), NULL);
1021 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1022                                         rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL);
1023 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1024                                         rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
1025 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1026                                         _moonshot_error_free0 (_error_);
1027 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1028                                         _g_object_unref0 (card);
1029 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1030                                         continue;
1031 #line 1031 "moonshot-webp-parser.c"
1032                                 }
1033 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1034                                 svcs = (_vala_array_free (svcs, svcs_length1, (GDestroyNotify) g_free), NULL);
1035 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1036                                 rules = (_vala_Rule_array_free (rules, rules_length1), NULL);
1037 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1038                                 rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL);
1039 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1040                                 rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
1041 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1042                                 _moonshot_error_free0 (_error_);
1043 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1044                                 _g_object_unref0 (card);
1045 #line 1045 "moonshot-webp-parser.c"
1046                         }
1047                 }
1048         }
1049 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1050         result = 0;
1051 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1052         _g_object_unref0 (webp);
1053 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1054         _g_free0 (webp_file);
1055 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1056         return result;
1057 #line 1057 "moonshot-webp-parser.c"
1058 }
1059
1060
1061 int main (int argc, char ** argv) {
1062 #if !GLIB_CHECK_VERSION (2,35,0)
1063         g_type_init ();
1064 #endif
1065 #line 38 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1066         return web_provisioning_main (argv, argc);
1067 #line 1067 "moonshot-webp-parser.c"
1068 }
1069
1070
1071 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
1072         if ((array != NULL) && (destroy_func != NULL)) {
1073                 int i;
1074                 for (i = 0; i < array_length; i = i + 1) {
1075                         if (((gpointer*) array)[i] != NULL) {
1076                                 destroy_func (((gpointer*) array)[i]);
1077                         }
1078                 }
1079         }
1080 }
1081
1082
1083 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
1084         _vala_array_destroy (array, array_length, destroy_func);
1085         g_free (array);
1086 }
1087
1088
1089