/* moonshot-provisioning-common.c generated by valac 0.28.0, the Vala compiler
 * generated from moonshot-provisioning-common.vala, do not modify */

/*
 * Copyright (c) 2011-2014, JANET(UK)
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * 3. Neither the name of JANET(UK) nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
*/

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <gobject/gvaluecollector.h>


#define TYPE_ID_CARD (id_card_get_type ())
#define ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ID_CARD, IdCard))
#define ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ID_CARD, IdCardClass))
#define IS_ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ID_CARD))
#define IS_ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ID_CARD))
#define ID_CARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ID_CARD, IdCardClass))

typedef struct _IdCard IdCard;
typedef struct _IdCardClass IdCardClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define TYPE_RULE (rule_get_type ())
typedef struct _Rule Rule;
#define _g_free0(var) (var = (g_free (var), NULL))

#define TYPE_TRUST_ANCHOR (trust_anchor_get_type ())
#define TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRUST_ANCHOR, TrustAnchor))
#define TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRUST_ANCHOR, TrustAnchorClass))
#define IS_TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRUST_ANCHOR))
#define IS_TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRUST_ANCHOR))
#define TRUST_ANCHOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRUST_ANCHOR, TrustAnchorClass))

typedef struct _TrustAnchor TrustAnchor;
typedef struct _TrustAnchorClass TrustAnchorClass;

#define WEB_PROVISIONING_TYPE_PARSER (web_provisioning_parser_get_type ())
#define WEB_PROVISIONING_PARSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParser))
#define WEB_PROVISIONING_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParserClass))
#define WEB_PROVISIONING_IS_PARSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WEB_PROVISIONING_TYPE_PARSER))
#define WEB_PROVISIONING_IS_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), WEB_PROVISIONING_TYPE_PARSER))
#define WEB_PROVISIONING_PARSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParserClass))

typedef struct _WebProvisioningParser WebProvisioningParser;
typedef struct _WebProvisioningParserClass WebProvisioningParserClass;
typedef struct _WebProvisioningParserPrivate WebProvisioningParserPrivate;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_markup_parse_context_free0(var) ((var == NULL) ? NULL : (var = (g_markup_parse_context_free (var), NULL)))
typedef struct _WebProvisioningParamSpecParser WebProvisioningParamSpecParser;

struct _Rule {
	gchar* pattern;
	gchar* always_confirm;
};

struct _WebProvisioningParser {
	GTypeInstance parent_instance;
	volatile int ref_count;
	WebProvisioningParserPrivate * priv;
};

struct _WebProvisioningParserClass {
	GTypeClass parent_class;
	void (*finalize) (WebProvisioningParser *self);
};

struct _WebProvisioningParserPrivate {
	GMarkupParser parser;
	gchar* text;
	gchar* path;
};

struct _WebProvisioningParamSpecParser {
	GParamSpec parent_instance;
};


extern IdCard* web_provisioning_card;
IdCard* web_provisioning_card = NULL;
extern IdCard** web_provisioning_cards;
extern gint web_provisioning_cards_length1;
IdCard** web_provisioning_cards = NULL;
gint web_provisioning_cards_length1 = 0;
static gint _web_provisioning_cards_size_ = 0;
static gpointer web_provisioning_parser_parent_class = NULL;

GType id_card_get_type (void) G_GNUC_CONST;
gboolean web_provisioning_check_stack (GSList* stack, gchar** reference, int reference_length1);
gboolean web_provisioning_always_confirm_handler (GSList* stack);
gboolean web_provisioning_pattern_handler (GSList* stack);
gboolean web_provisioning_server_cert_handler (GSList* stack);
gboolean web_provisioning_subject_alt_handler (GSList* stack);
gboolean web_provisioning_subject_handler (GSList* stack);
gboolean web_provisioning_ca_cert_handler (GSList* stack);
gboolean web_provisioning_realm_handler (GSList* stack);
gboolean web_provisioning_password_handler (GSList* stack);
gboolean web_provisioning_user_handler (GSList* stack);
gboolean web_provisioning_display_name_handler (GSList* stack);
void web_provisioning_start_element_func (GMarkupParseContext* context, const gchar* element_name, gchar** attribute_names, int attribute_names_length1, gchar** attribute_values, int attribute_values_length1, GError** error);
static IdCard** _vala_array_dup3 (IdCard** self, int length);
IdCard* id_card_new (void);
IdCard* id_card_construct (GType object_type);
GType rule_get_type (void) G_GNUC_CONST;
Rule* rule_dup (const Rule* self);
void rule_free (Rule* self);
void rule_copy (const Rule* self, Rule* dest);
void rule_destroy (Rule* self);
Rule* id_card_get_rules (IdCard* self, int* result_length1);
static Rule* _vala_array_dup4 (Rule* self, int length);
void id_card_set_rules (IdCard* self, Rule* value, int value_length1);
static void _vala_Rule_array_free (Rule* array, gint array_length);
void web_provisioning_text_element_func (GMarkupParseContext* context, const gchar* text, gsize text_len, GError** error);
void id_card_set_display_name (IdCard* self, const gchar* value);
void id_card_set_username (IdCard* self, const gchar* value);
void id_card_set_password (IdCard* self, const gchar* value);
void id_card_set_issuer (IdCard* self, const gchar* value);
gchar** id_card_get_services (IdCard* self, int* result_length1);
static gchar** _vala_array_dup5 (gchar** self, int length);
void id_card_set_services (IdCard* self, gchar** value, int value_length1);
static Rule* _vala_array_dup6 (Rule* self, int length);
static Rule* _vala_array_dup7 (Rule* self, int length);
GType trust_anchor_get_type (void) G_GNUC_CONST;
TrustAnchor* id_card_get_trust_anchor (IdCard* self);
void trust_anchor_set_ca_cert (TrustAnchor* self, const gchar* value);
void trust_anchor_set_subject (TrustAnchor* self, const gchar* value);
void trust_anchor_set_subject_alt (TrustAnchor* self, const gchar* value);
void trust_anchor_set_server_cert (TrustAnchor* self, const gchar* value);
gpointer web_provisioning_parser_ref (gpointer instance);
void web_provisioning_parser_unref (gpointer instance);
GParamSpec* web_provisioning_param_spec_parser (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void web_provisioning_value_set_parser (GValue* value, gpointer v_object);
void web_provisioning_value_take_parser (GValue* value, gpointer v_object);
gpointer web_provisioning_value_get_parser (const GValue* value);
GType web_provisioning_parser_get_type (void) G_GNUC_CONST;
#define WEB_PROVISIONING_PARSER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParserPrivate))
enum  {
	WEB_PROVISIONING_PARSER_DUMMY_PROPERTY
};
WebProvisioningParser* web_provisioning_parser_new (const gchar* path);
WebProvisioningParser* web_provisioning_parser_construct (GType object_type, const gchar* path);
static void _web_provisioning_start_element_func_gmarkup_parser_start_element_func (GMarkupParseContext* context, const gchar* element_name, gchar** attribute_names, gchar** attribute_values, gpointer self, GError** error);
static void _web_provisioning_text_element_func_gmarkup_parser_text_func (GMarkupParseContext* context, const gchar* text, gsize text_len, gpointer self, GError** error);
void web_provisioning_parser_parse (WebProvisioningParser* self);
static void web_provisioning_parser_finalize (WebProvisioningParser* obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);


gboolean web_provisioning_check_stack (GSList* stack, gchar** reference, int reference_length1) {
	gboolean result = FALSE;
	GSList* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
	gchar** _tmp2_ = NULL;
	gint _tmp2__length1 = 0;
#line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp0_ = stack;
#line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp1_ = g_slist_length (_tmp0_);
#line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp2_ = reference;
#line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp2__length1 = reference_length1;
#line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (_tmp1_ < ((guint) _tmp2__length1)) {
#line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		result = FALSE;
#line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		return result;
#line 203 "moonshot-provisioning-common.c"
	}
	{
		gint i = 0;
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		i = 0;
#line 209 "moonshot-provisioning-common.c"
		{
			gboolean _tmp3_ = FALSE;
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp3_ = TRUE;
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			while (TRUE) {
#line 216 "moonshot-provisioning-common.c"
				gint _tmp5_ = 0;
				gchar** _tmp6_ = NULL;
				gint _tmp6__length1 = 0;
				GSList* _tmp7_ = NULL;
				gint _tmp8_ = 0;
				gconstpointer _tmp9_ = NULL;
				gchar** _tmp10_ = NULL;
				gint _tmp10__length1 = 0;
				gint _tmp11_ = 0;
				const gchar* _tmp12_ = NULL;
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				if (!_tmp3_) {
#line 229 "moonshot-provisioning-common.c"
					gint _tmp4_ = 0;
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp4_ = i;
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					i = _tmp4_ + 1;
#line 235 "moonshot-provisioning-common.c"
				}
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp3_ = FALSE;
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp5_ = i;
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp6_ = reference;
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp6__length1 = reference_length1;
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				if (!(_tmp5_ < _tmp6__length1)) {
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					break;
#line 249 "moonshot-provisioning-common.c"
				}
#line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp7_ = stack;
#line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp8_ = i;
#line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp9_ = g_slist_nth_data (_tmp7_, (guint) _tmp8_);
#line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp10_ = reference;
#line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp10__length1 = reference_length1;
#line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp11_ = i;
#line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp12_ = _tmp10_[_tmp11_];
#line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				if (g_strcmp0 ((const gchar*) _tmp9_, _tmp12_) != 0) {
#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					result = FALSE;
#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					return result;
#line 271 "moonshot-provisioning-common.c"
				}
			}
		}
	}
#line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	result = TRUE;
#line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return result;
#line 280 "moonshot-provisioning-common.c"
}


gboolean web_provisioning_always_confirm_handler (GSList* stack) {
	gboolean result = FALSE;
	gchar** always_confirm_path = NULL;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar** _tmp5_ = NULL;
	gint always_confirm_path_length1 = 0;
	gint _always_confirm_path_size_ = 0;
	GSList* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp0_ = g_strdup ("always-confirm");
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp1_ = g_strdup ("rule");
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp2_ = g_strdup ("selection-rules");
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_ = g_strdup ("identity");
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_ = g_strdup ("identities");
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_ = g_new0 (gchar*, 5 + 1);
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_[0] = _tmp0_;
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_[1] = _tmp1_;
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_[2] = _tmp2_;
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_[3] = _tmp3_;
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_[4] = _tmp4_;
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	always_confirm_path = _tmp5_;
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	always_confirm_path_length1 = 5;
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_always_confirm_path_size_ = always_confirm_path_length1;
#line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp6_ = stack;
#line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp7_ = web_provisioning_check_stack (_tmp6_, always_confirm_path, always_confirm_path_length1);
#line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	result = _tmp7_;
#line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	always_confirm_path = (_vala_array_free (always_confirm_path, always_confirm_path_length1, (GDestroyNotify) g_free), NULL);
#line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return result;
#line 335 "moonshot-provisioning-common.c"
}


gboolean web_provisioning_pattern_handler (GSList* stack) {
	gboolean result = FALSE;
	gchar** pattern_path = NULL;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar** _tmp5_ = NULL;
	gint pattern_path_length1 = 0;
	gint _pattern_path_size_ = 0;
	GSList* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp0_ = g_strdup ("pattern");
#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp1_ = g_strdup ("rule");
#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp2_ = g_strdup ("selection-rules");
#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_ = g_strdup ("identity");
#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_ = g_strdup ("identities");
#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_ = g_new0 (gchar*, 5 + 1);
#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_[0] = _tmp0_;
#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_[1] = _tmp1_;
#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_[2] = _tmp2_;
#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_[3] = _tmp3_;
#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_[4] = _tmp4_;
#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	pattern_path = _tmp5_;
#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	pattern_path_length1 = 5;
#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_pattern_path_size_ = pattern_path_length1;
#line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp6_ = stack;
#line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp7_ = web_provisioning_check_stack (_tmp6_, pattern_path, pattern_path_length1);
#line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	result = _tmp7_;
#line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	pattern_path = (_vala_array_free (pattern_path, pattern_path_length1, (GDestroyNotify) g_free), NULL);
#line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return result;
#line 390 "moonshot-provisioning-common.c"
}


gboolean web_provisioning_server_cert_handler (GSList* stack) {
	gboolean result = FALSE;
	gchar** server_cert_path = NULL;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar** _tmp4_ = NULL;
	gint server_cert_path_length1 = 0;
	gint _server_cert_path_size_ = 0;
	GSList* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
#line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp0_ = g_strdup ("server-cert");
#line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp1_ = g_strdup ("trust-anchor");
#line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp2_ = g_strdup ("identity");
#line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_ = g_strdup ("identities");
#line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_ = g_new0 (gchar*, 4 + 1);
#line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_[0] = _tmp0_;
#line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_[1] = _tmp1_;
#line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_[2] = _tmp2_;
#line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_[3] = _tmp3_;
#line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	server_cert_path = _tmp4_;
#line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	server_cert_path_length1 = 4;
#line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_server_cert_path_size_ = server_cert_path_length1;
#line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_ = stack;
#line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp6_ = web_provisioning_check_stack (_tmp5_, server_cert_path, server_cert_path_length1);
#line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	result = _tmp6_;
#line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	server_cert_path = (_vala_array_free (server_cert_path, server_cert_path_length1, (GDestroyNotify) g_free), NULL);
#line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return result;
#line 440 "moonshot-provisioning-common.c"
}


gboolean web_provisioning_subject_alt_handler (GSList* stack) {
	gboolean result = FALSE;
	gchar** subject_alt_path = NULL;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar** _tmp4_ = NULL;
	gint subject_alt_path_length1 = 0;
	gint _subject_alt_path_size_ = 0;
	GSList* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp0_ = g_strdup ("subject-alt");
#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp1_ = g_strdup ("trust-anchor");
#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp2_ = g_strdup ("identity");
#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_ = g_strdup ("identities");
#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_ = g_new0 (gchar*, 4 + 1);
#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_[0] = _tmp0_;
#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_[1] = _tmp1_;
#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_[2] = _tmp2_;
#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_[3] = _tmp3_;
#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	subject_alt_path = _tmp4_;
#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	subject_alt_path_length1 = 4;
#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_subject_alt_path_size_ = subject_alt_path_length1;
#line 82 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_ = stack;
#line 82 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp6_ = web_provisioning_check_stack (_tmp5_, subject_alt_path, subject_alt_path_length1);
#line 82 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	result = _tmp6_;
#line 82 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	subject_alt_path = (_vala_array_free (subject_alt_path, subject_alt_path_length1, (GDestroyNotify) g_free), NULL);
#line 82 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return result;
#line 490 "moonshot-provisioning-common.c"
}


gboolean web_provisioning_subject_handler (GSList* stack) {
	gboolean result = FALSE;
	gchar** subject_path = NULL;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar** _tmp4_ = NULL;
	gint subject_path_length1 = 0;
	gint _subject_path_size_ = 0;
	GSList* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
#line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp0_ = g_strdup ("subject");
#line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp1_ = g_strdup ("trust-anchor");
#line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp2_ = g_strdup ("identity");
#line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_ = g_strdup ("identities");
#line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_ = g_new0 (gchar*, 4 + 1);
#line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_[0] = _tmp0_;
#line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_[1] = _tmp1_;
#line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_[2] = _tmp2_;
#line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_[3] = _tmp3_;
#line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	subject_path = _tmp4_;
#line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	subject_path_length1 = 4;
#line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_subject_path_size_ = subject_path_length1;
#line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_ = stack;
#line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp6_ = web_provisioning_check_stack (_tmp5_, subject_path, subject_path_length1);
#line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	result = _tmp6_;
#line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	subject_path = (_vala_array_free (subject_path, subject_path_length1, (GDestroyNotify) g_free), NULL);
#line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return result;
#line 540 "moonshot-provisioning-common.c"
}


gboolean web_provisioning_ca_cert_handler (GSList* stack) {
	gboolean result = FALSE;
	gchar** ca_path = NULL;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar** _tmp4_ = NULL;
	gint ca_path_length1 = 0;
	gint _ca_path_size_ = 0;
	GSList* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp0_ = g_strdup ("ca-cert");
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp1_ = g_strdup ("trust-anchor");
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp2_ = g_strdup ("identity");
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_ = g_strdup ("identities");
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_ = g_new0 (gchar*, 4 + 1);
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_[0] = _tmp0_;
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_[1] = _tmp1_;
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_[2] = _tmp2_;
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_[3] = _tmp3_;
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	ca_path = _tmp4_;
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	ca_path_length1 = 4;
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_ca_path_size_ = ca_path_length1;
#line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_ = stack;
#line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp6_ = web_provisioning_check_stack (_tmp5_, ca_path, ca_path_length1);
#line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	result = _tmp6_;
#line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	ca_path = (_vala_array_free (ca_path, ca_path_length1, (GDestroyNotify) g_free), NULL);
#line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return result;
#line 590 "moonshot-provisioning-common.c"
}


gboolean web_provisioning_realm_handler (GSList* stack) {
	gboolean result = FALSE;
	gchar** realm_path = NULL;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar** _tmp3_ = NULL;
	gint realm_path_length1 = 0;
	gint _realm_path_size_ = 0;
	GSList* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
#line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp0_ = g_strdup ("realm");
#line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp1_ = g_strdup ("identity");
#line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp2_ = g_strdup ("identities");
#line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_ = g_new0 (gchar*, 3 + 1);
#line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_[0] = _tmp0_;
#line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_[1] = _tmp1_;
#line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_[2] = _tmp2_;
#line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	realm_path = _tmp3_;
#line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	realm_path_length1 = 3;
#line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_realm_path_size_ = realm_path_length1;
#line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_ = stack;
#line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_ = web_provisioning_check_stack (_tmp4_, realm_path, realm_path_length1);
#line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	result = _tmp5_;
#line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	realm_path = (_vala_array_free (realm_path, realm_path_length1, (GDestroyNotify) g_free), NULL);
#line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return result;
#line 635 "moonshot-provisioning-common.c"
}


gboolean web_provisioning_password_handler (GSList* stack) {
	gboolean result = FALSE;
	gchar** password_path = NULL;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar** _tmp3_ = NULL;
	gint password_path_length1 = 0;
	gint _password_path_size_ = 0;
	GSList* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
#line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp0_ = g_strdup ("password");
#line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp1_ = g_strdup ("identity");
#line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp2_ = g_strdup ("identities");
#line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_ = g_new0 (gchar*, 3 + 1);
#line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_[0] = _tmp0_;
#line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_[1] = _tmp1_;
#line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_[2] = _tmp2_;
#line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	password_path = _tmp3_;
#line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	password_path_length1 = 3;
#line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_password_path_size_ = password_path_length1;
#line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_ = stack;
#line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_ = web_provisioning_check_stack (_tmp4_, password_path, password_path_length1);
#line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	result = _tmp5_;
#line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	password_path = (_vala_array_free (password_path, password_path_length1, (GDestroyNotify) g_free), NULL);
#line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return result;
#line 680 "moonshot-provisioning-common.c"
}


gboolean web_provisioning_user_handler (GSList* stack) {
	gboolean result = FALSE;
	gchar** user_path = NULL;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar** _tmp3_ = NULL;
	gint user_path_length1 = 0;
	gint _user_path_size_ = 0;
	GSList* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
#line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp0_ = g_strdup ("user");
#line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp1_ = g_strdup ("identity");
#line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp2_ = g_strdup ("identities");
#line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_ = g_new0 (gchar*, 3 + 1);
#line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_[0] = _tmp0_;
#line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_[1] = _tmp1_;
#line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_[2] = _tmp2_;
#line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	user_path = _tmp3_;
#line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	user_path_length1 = 3;
#line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_user_path_size_ = user_path_length1;
#line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_ = stack;
#line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_ = web_provisioning_check_stack (_tmp4_, user_path, user_path_length1);
#line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	result = _tmp5_;
#line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	user_path = (_vala_array_free (user_path, user_path_length1, (GDestroyNotify) g_free), NULL);
#line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return result;
#line 725 "moonshot-provisioning-common.c"
}


gboolean web_provisioning_display_name_handler (GSList* stack) {
	gboolean result = FALSE;
	gchar** display_name_path = NULL;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar** _tmp3_ = NULL;
	gint display_name_path_length1 = 0;
	gint _display_name_path_size_ = 0;
	GSList* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
#line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp0_ = g_strdup ("display-name");
#line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp1_ = g_strdup ("identity");
#line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp2_ = g_strdup ("identities");
#line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_ = g_new0 (gchar*, 3 + 1);
#line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_[0] = _tmp0_;
#line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_[1] = _tmp1_;
#line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_[2] = _tmp2_;
#line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	display_name_path = _tmp3_;
#line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	display_name_path_length1 = 3;
#line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_display_name_path_size_ = display_name_path_length1;
#line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_ = stack;
#line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_ = web_provisioning_check_stack (_tmp4_, display_name_path, display_name_path_length1);
#line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	result = _tmp5_;
#line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	display_name_path = (_vala_array_free (display_name_path, display_name_path_length1, (GDestroyNotify) g_free), NULL);
#line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return result;
#line 770 "moonshot-provisioning-common.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return self ? g_object_ref (self) : NULL;
#line 777 "moonshot-provisioning-common.c"
}


static IdCard** _vala_array_dup3 (IdCard** self, int length) {
	IdCard** result;
	int i;
#line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	result = g_new0 (IdCard*, length + 1);
#line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	for (i = 0; i < length; i++) {
#line 788 "moonshot-provisioning-common.c"
		IdCard* _tmp0_ = NULL;
#line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp0_ = _g_object_ref0 (self[i]);
#line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		result[i] = _tmp0_;
#line 794 "moonshot-provisioning-common.c"
	}
#line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return result;
#line 798 "moonshot-provisioning-common.c"
}


static Rule* _vala_array_dup4 (Rule* self, int length) {
	Rule* result;
	int i;
#line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	result = g_new0 (Rule, length);
#line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	for (i = 0; i < length; i++) {
#line 809 "moonshot-provisioning-common.c"
		Rule _tmp0_ = {0};
#line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		rule_copy (&self[i], &_tmp0_);
#line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		result[i] = _tmp0_;
#line 815 "moonshot-provisioning-common.c"
	}
#line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return result;
#line 819 "moonshot-provisioning-common.c"
}


static void _vala_Rule_array_free (Rule* array, gint array_length) {
#line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (array != NULL) {
#line 826 "moonshot-provisioning-common.c"
		int i;
#line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			rule_destroy (&array[i]);
#line 832 "moonshot-provisioning-common.c"
		}
	}
#line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	g_free (array);
#line 837 "moonshot-provisioning-common.c"
}


void web_provisioning_start_element_func (GMarkupParseContext* context, const gchar* element_name, gchar** attribute_names, int attribute_names_length1, gchar** attribute_values, int attribute_values_length1, GError** error) {
	const gchar* _tmp0_ = NULL;
#line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	g_return_if_fail (context != NULL);
#line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	g_return_if_fail (element_name != NULL);
#line 139 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp0_ = element_name;
#line 139 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (g_strcmp0 (_tmp0_, "identity") == 0) {
#line 851 "moonshot-provisioning-common.c"
		IdCard** tmp_cards = NULL;
		IdCard** _tmp1_ = NULL;
		gint _tmp1__length1 = 0;
		IdCard** _tmp2_ = NULL;
		gint _tmp2__length1 = 0;
		gint tmp_cards_length1 = 0;
		gint _tmp_cards_size_ = 0;
		IdCard** _tmp3_ = NULL;
		gint _tmp3__length1 = 0;
		IdCard** _tmp4_ = NULL;
		IdCard* _tmp16_ = NULL;
		IdCard** _tmp17_ = NULL;
		gint _tmp17__length1 = 0;
		IdCard** _tmp18_ = NULL;
		gint _tmp18__length1 = 0;
		IdCard* _tmp19_ = NULL;
		IdCard* _tmp20_ = NULL;
		IdCard* _tmp21_ = NULL;
#line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp1_ = web_provisioning_cards;
#line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp1__length1 = web_provisioning_cards_length1;
#line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp2_ = (_tmp1_ != NULL) ? _vala_array_dup3 (_tmp1_, _tmp1__length1) : ((gpointer) _tmp1_);
#line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp2__length1 = _tmp1__length1;
#line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		tmp_cards = _tmp2_;
#line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		tmp_cards_length1 = _tmp2__length1;
#line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp_cards_size_ = tmp_cards_length1;
#line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp3_ = tmp_cards;
#line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp3__length1 = tmp_cards_length1;
#line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp4_ = g_new0 (IdCard*, (_tmp3__length1 + 1) + 1);
#line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		web_provisioning_cards = (_vala_array_free (web_provisioning_cards, web_provisioning_cards_length1, (GDestroyNotify) g_object_unref), NULL);
#line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		web_provisioning_cards = _tmp4_;
#line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		web_provisioning_cards_length1 = _tmp3__length1 + 1;
#line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_web_provisioning_cards_size_ = web_provisioning_cards_length1;
#line 898 "moonshot-provisioning-common.c"
		{
			gint i = 0;
#line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			i = 0;
#line 903 "moonshot-provisioning-common.c"
			{
				gboolean _tmp5_ = FALSE;
#line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp5_ = TRUE;
#line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				while (TRUE) {
#line 910 "moonshot-provisioning-common.c"
					gint _tmp7_ = 0;
					IdCard** _tmp8_ = NULL;
					gint _tmp8__length1 = 0;
					IdCard** _tmp9_ = NULL;
					gint _tmp9__length1 = 0;
					gint _tmp10_ = 0;
					IdCard** _tmp11_ = NULL;
					gint _tmp11__length1 = 0;
					gint _tmp12_ = 0;
					IdCard* _tmp13_ = NULL;
					IdCard* _tmp14_ = NULL;
					IdCard* _tmp15_ = NULL;
#line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					if (!_tmp5_) {
#line 925 "moonshot-provisioning-common.c"
						gint _tmp6_ = 0;
#line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp6_ = i;
#line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						i = _tmp6_ + 1;
#line 931 "moonshot-provisioning-common.c"
					}
#line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp5_ = FALSE;
#line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp7_ = i;
#line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp8_ = tmp_cards;
#line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp8__length1 = tmp_cards_length1;
#line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					if (!(_tmp7_ < _tmp8__length1)) {
#line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						break;
#line 945 "moonshot-provisioning-common.c"
					}
#line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp9_ = web_provisioning_cards;
#line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp9__length1 = web_provisioning_cards_length1;
#line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp10_ = i;
#line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp11_ = tmp_cards;
#line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp11__length1 = tmp_cards_length1;
#line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp12_ = i;
#line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp13_ = _tmp11_[_tmp12_];
#line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp14_ = _g_object_ref0 (_tmp13_);
#line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_g_object_unref0 (_tmp9_[_tmp10_]);
#line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp9_[_tmp10_] = _tmp14_;
#line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp15_ = _tmp9_[_tmp10_];
#line 969 "moonshot-provisioning-common.c"
				}
			}
		}
#line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp16_ = id_card_new ();
#line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_g_object_unref0 (web_provisioning_card);
#line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		web_provisioning_card = _tmp16_;
#line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp17_ = web_provisioning_cards;
#line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp17__length1 = web_provisioning_cards_length1;
#line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp18_ = tmp_cards;
#line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp18__length1 = tmp_cards_length1;
#line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp19_ = web_provisioning_card;
#line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp20_ = _g_object_ref0 (_tmp19_);
#line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_g_object_unref0 (_tmp17_[_tmp18__length1]);
#line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp17_[_tmp18__length1] = _tmp20_;
#line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp21_ = _tmp17_[_tmp18__length1];
#line 139 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		tmp_cards = (_vala_array_free (tmp_cards, tmp_cards_length1, (GDestroyNotify) g_object_unref), NULL);
#line 999 "moonshot-provisioning-common.c"
	} else {
		const gchar* _tmp22_ = NULL;
#line 151 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp22_ = element_name;
#line 151 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		if (g_strcmp0 (_tmp22_, "rule") == 0) {
#line 1006 "moonshot-provisioning-common.c"
			Rule* tmp_rules = NULL;
			IdCard* _tmp23_ = NULL;
			Rule* _tmp24_ = NULL;
			gint _tmp24__length1 = 0;
			Rule* _tmp25_ = NULL;
			gint _tmp25__length1 = 0;
			Rule* _tmp26_ = NULL;
			gint _tmp26__length1 = 0;
			gint tmp_rules_length1 = 0;
			gint _tmp_rules_size_ = 0;
			IdCard* _tmp27_ = NULL;
			Rule* _tmp28_ = NULL;
			gint _tmp28__length1 = 0;
			Rule* _tmp29_ = NULL;
			Rule* _tmp30_ = NULL;
			gint _tmp30__length1 = 0;
			IdCard* _tmp44_ = NULL;
			Rule* _tmp45_ = NULL;
			gint _tmp45__length1 = 0;
			Rule* _tmp46_ = NULL;
			gint _tmp46__length1 = 0;
			Rule* _tmp47_ = NULL;
			gint _tmp47__length1 = 0;
			Rule _tmp48_ = {0};
			Rule _tmp49_ = {0};
#line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp23_ = web_provisioning_card;
#line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp24_ = id_card_get_rules (_tmp23_, &_tmp24__length1);
#line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp25_ = _tmp24_;
#line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp25__length1 = _tmp24__length1;
#line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp26_ = (_tmp25_ != NULL) ? _vala_array_dup4 (_tmp25_, _tmp25__length1) : ((gpointer) _tmp25_);
#line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp26__length1 = _tmp25__length1;
#line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			tmp_rules = _tmp26_;
#line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			tmp_rules_length1 = _tmp26__length1;
#line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp_rules_size_ = tmp_rules_length1;
#line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp27_ = web_provisioning_card;
#line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp28_ = tmp_rules;
#line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp28__length1 = tmp_rules_length1;
#line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp29_ = g_new0 (Rule, _tmp28__length1 + 1);
#line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp30_ = _tmp29_;
#line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp30__length1 = _tmp28__length1 + 1;
#line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			id_card_set_rules (_tmp27_, _tmp30_, _tmp28__length1 + 1);
#line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp30_ = (_vala_Rule_array_free (_tmp30_, _tmp30__length1), NULL);
#line 1066 "moonshot-provisioning-common.c"
			{
				gint i = 0;
#line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				i = 0;
#line 1071 "moonshot-provisioning-common.c"
				{
					gboolean _tmp31_ = FALSE;
#line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp31_ = TRUE;
#line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					while (TRUE) {
#line 1078 "moonshot-provisioning-common.c"
						gint _tmp33_ = 0;
						Rule* _tmp34_ = NULL;
						gint _tmp34__length1 = 0;
						IdCard* _tmp35_ = NULL;
						Rule* _tmp36_ = NULL;
						gint _tmp36__length1 = 0;
						Rule* _tmp37_ = NULL;
						gint _tmp37__length1 = 0;
						gint _tmp38_ = 0;
						Rule* _tmp39_ = NULL;
						gint _tmp39__length1 = 0;
						gint _tmp40_ = 0;
						Rule _tmp41_ = {0};
						Rule _tmp42_ = {0};
						Rule _tmp43_ = {0};
#line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						if (!_tmp31_) {
#line 1096 "moonshot-provisioning-common.c"
							gint _tmp32_ = 0;
#line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp32_ = i;
#line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							i = _tmp32_ + 1;
#line 1102 "moonshot-provisioning-common.c"
						}
#line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp31_ = FALSE;
#line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp33_ = i;
#line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp34_ = tmp_rules;
#line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp34__length1 = tmp_rules_length1;
#line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						if (!(_tmp33_ < _tmp34__length1)) {
#line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							break;
#line 1116 "moonshot-provisioning-common.c"
						}
#line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp35_ = web_provisioning_card;
#line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp36_ = id_card_get_rules (_tmp35_, &_tmp36__length1);
#line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp37_ = _tmp36_;
#line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp37__length1 = _tmp36__length1;
#line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp38_ = i;
#line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp39_ = tmp_rules;
#line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp39__length1 = tmp_rules_length1;
#line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp40_ = i;
#line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp41_ = _tmp39_[_tmp40_];
#line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						rule_copy (&_tmp41_, &_tmp42_);
#line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						rule_destroy (&_tmp37_[_tmp38_]);
#line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp37_[_tmp38_] = _tmp42_;
#line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp43_ = _tmp37_[_tmp38_];
#line 1144 "moonshot-provisioning-common.c"
					}
				}
			}
#line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp44_ = web_provisioning_card;
#line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp45_ = id_card_get_rules (_tmp44_, &_tmp45__length1);
#line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp46_ = _tmp45_;
#line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp46__length1 = _tmp45__length1;
#line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp47_ = tmp_rules;
#line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp47__length1 = tmp_rules_length1;
#line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			memset (&_tmp48_, 0, sizeof (Rule));
#line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			rule_destroy (&_tmp46_[_tmp47__length1]);
#line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp46_[_tmp47__length1] = _tmp48_;
#line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp49_ = _tmp46_[_tmp47__length1];
#line 151 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			tmp_rules = (_vala_Rule_array_free (tmp_rules, tmp_rules_length1), NULL);
#line 1170 "moonshot-provisioning-common.c"
		}
	}
}


static gchar** _vala_array_dup5 (gchar** self, int length) {
	gchar** result;
	int i;
#line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	result = g_new0 (gchar*, length + 1);
#line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	for (i = 0; i < length; i++) {
#line 1183 "moonshot-provisioning-common.c"
		gchar* _tmp0_ = NULL;
#line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp0_ = g_strdup (self[i]);
#line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		result[i] = _tmp0_;
#line 1189 "moonshot-provisioning-common.c"
	}
#line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return result;
#line 1193 "moonshot-provisioning-common.c"
}


static Rule* _vala_array_dup6 (Rule* self, int length) {
	Rule* result;
	int i;
#line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	result = g_new0 (Rule, length);
#line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	for (i = 0; i < length; i++) {
#line 1204 "moonshot-provisioning-common.c"
		Rule _tmp0_ = {0};
#line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		rule_copy (&self[i], &_tmp0_);
#line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		result[i] = _tmp0_;
#line 1210 "moonshot-provisioning-common.c"
	}
#line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return result;
#line 1214 "moonshot-provisioning-common.c"
}


static Rule* _vala_array_dup7 (Rule* self, int length) {
	Rule* result;
	int i;
#line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	result = g_new0 (Rule, length);
#line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	for (i = 0; i < length; i++) {
#line 1225 "moonshot-provisioning-common.c"
		Rule _tmp0_ = {0};
#line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		rule_copy (&self[i], &_tmp0_);
#line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		result[i] = _tmp0_;
#line 1231 "moonshot-provisioning-common.c"
	}
#line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return result;
#line 1235 "moonshot-provisioning-common.c"
}


void web_provisioning_text_element_func (GMarkupParseContext* context, const gchar* text, gsize text_len, GError** error) {
	GSList* stack = NULL;
	GMarkupParseContext* _tmp0_ = NULL;
	GSList* _tmp1_ = NULL;
	gsize _tmp2_ = 0UL;
	gboolean _tmp3_ = FALSE;
	GSList* _tmp4_ = NULL;
	gconstpointer _tmp5_ = NULL;
#line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	g_return_if_fail (context != NULL);
#line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	g_return_if_fail (text != NULL);
#line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp0_ = context;
#line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp1_ = g_markup_parse_context_get_element_stack (_tmp0_);
#line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	stack = _tmp1_;
#line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp2_ = text_len;
#line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (_tmp2_ < ((gsize) 1)) {
#line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		return;
#line 1263 "moonshot-provisioning-common.c"
	}
#line 174 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_ = stack;
#line 174 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp5_ = g_slist_nth_data (_tmp4_, (guint) 0);
#line 174 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (g_strcmp0 ((const gchar*) _tmp5_, "display-name") == 0) {
#line 1271 "moonshot-provisioning-common.c"
		GSList* _tmp6_ = NULL;
		gboolean _tmp7_ = FALSE;
#line 174 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp6_ = stack;
#line 174 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp7_ = web_provisioning_display_name_handler (_tmp6_);
#line 174 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp3_ = _tmp7_;
#line 1280 "moonshot-provisioning-common.c"
	} else {
#line 174 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp3_ = FALSE;
#line 1284 "moonshot-provisioning-common.c"
	}
#line 174 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (_tmp3_) {
#line 1288 "moonshot-provisioning-common.c"
		IdCard* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
#line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp8_ = web_provisioning_card;
#line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp9_ = text;
#line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		id_card_set_display_name (_tmp8_, _tmp9_);
#line 1297 "moonshot-provisioning-common.c"
	} else {
		gboolean _tmp10_ = FALSE;
		GSList* _tmp11_ = NULL;
		gconstpointer _tmp12_ = NULL;
#line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp11_ = stack;
#line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp12_ = g_slist_nth_data (_tmp11_, (guint) 0);
#line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		if (g_strcmp0 ((const gchar*) _tmp12_, "user") == 0) {
#line 1308 "moonshot-provisioning-common.c"
			GSList* _tmp13_ = NULL;
			gboolean _tmp14_ = FALSE;
#line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp13_ = stack;
#line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp14_ = web_provisioning_user_handler (_tmp13_);
#line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp10_ = _tmp14_;
#line 1317 "moonshot-provisioning-common.c"
		} else {
#line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp10_ = FALSE;
#line 1321 "moonshot-provisioning-common.c"
		}
#line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		if (_tmp10_) {
#line 1325 "moonshot-provisioning-common.c"
			IdCard* _tmp15_ = NULL;
			const gchar* _tmp16_ = NULL;
#line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp15_ = web_provisioning_card;
#line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp16_ = text;
#line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			id_card_set_username (_tmp15_, _tmp16_);
#line 1334 "moonshot-provisioning-common.c"
		} else {
			gboolean _tmp17_ = FALSE;
			GSList* _tmp18_ = NULL;
			gconstpointer _tmp19_ = NULL;
#line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp18_ = stack;
#line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp19_ = g_slist_nth_data (_tmp18_, (guint) 0);
#line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			if (g_strcmp0 ((const gchar*) _tmp19_, "password") == 0) {
#line 1345 "moonshot-provisioning-common.c"
				GSList* _tmp20_ = NULL;
				gboolean _tmp21_ = FALSE;
#line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp20_ = stack;
#line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp21_ = web_provisioning_password_handler (_tmp20_);
#line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp17_ = _tmp21_;
#line 1354 "moonshot-provisioning-common.c"
			} else {
#line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp17_ = FALSE;
#line 1358 "moonshot-provisioning-common.c"
			}
#line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			if (_tmp17_) {
#line 1362 "moonshot-provisioning-common.c"
				IdCard* _tmp22_ = NULL;
				const gchar* _tmp23_ = NULL;
#line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp22_ = web_provisioning_card;
#line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp23_ = text;
#line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				id_card_set_password (_tmp22_, _tmp23_);
#line 1371 "moonshot-provisioning-common.c"
			} else {
				gboolean _tmp24_ = FALSE;
				GSList* _tmp25_ = NULL;
				gconstpointer _tmp26_ = NULL;
#line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp25_ = stack;
#line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_tmp26_ = g_slist_nth_data (_tmp25_, (guint) 0);
#line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				if (g_strcmp0 ((const gchar*) _tmp26_, "realm") == 0) {
#line 1382 "moonshot-provisioning-common.c"
					GSList* _tmp27_ = NULL;
					gboolean _tmp28_ = FALSE;
#line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp27_ = stack;
#line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp28_ = web_provisioning_realm_handler (_tmp27_);
#line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp24_ = _tmp28_;
#line 1391 "moonshot-provisioning-common.c"
				} else {
#line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp24_ = FALSE;
#line 1395 "moonshot-provisioning-common.c"
				}
#line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				if (_tmp24_) {
#line 1399 "moonshot-provisioning-common.c"
					IdCard* _tmp29_ = NULL;
					const gchar* _tmp30_ = NULL;
#line 188 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp29_ = web_provisioning_card;
#line 188 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp30_ = text;
#line 188 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					id_card_set_issuer (_tmp29_, _tmp30_);
#line 1408 "moonshot-provisioning-common.c"
				} else {
					GSList* _tmp31_ = NULL;
					gconstpointer _tmp32_ = NULL;
#line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp31_ = stack;
#line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					_tmp32_ = g_slist_nth_data (_tmp31_, (guint) 0);
#line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
					if (g_strcmp0 ((const gchar*) _tmp32_, "service") == 0) {
#line 1418 "moonshot-provisioning-common.c"
						gchar** services = NULL;
						IdCard* _tmp33_ = NULL;
						gchar** _tmp34_ = NULL;
						gint _tmp34__length1 = 0;
						gchar** _tmp35_ = NULL;
						gint _tmp35__length1 = 0;
						gchar** _tmp36_ = NULL;
						gint _tmp36__length1 = 0;
						gint services_length1 = 0;
						gint _services_size_ = 0;
						IdCard* _tmp37_ = NULL;
						gchar** _tmp38_ = NULL;
						gint _tmp38__length1 = 0;
						gchar** _tmp39_ = NULL;
						gchar** _tmp40_ = NULL;
						gint _tmp40__length1 = 0;
						IdCard* _tmp54_ = NULL;
						gchar** _tmp55_ = NULL;
						gint _tmp55__length1 = 0;
						gchar** _tmp56_ = NULL;
						gint _tmp56__length1 = 0;
						gchar** _tmp57_ = NULL;
						gint _tmp57__length1 = 0;
						const gchar* _tmp58_ = NULL;
						gchar* _tmp59_ = NULL;
						gchar* _tmp60_ = NULL;
#line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp33_ = web_provisioning_card;
#line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp34_ = id_card_get_services (_tmp33_, &_tmp34__length1);
#line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp35_ = _tmp34_;
#line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp35__length1 = _tmp34__length1;
#line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp36_ = (_tmp35_ != NULL) ? _vala_array_dup5 (_tmp35_, _tmp35__length1) : ((gpointer) _tmp35_);
#line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp36__length1 = _tmp35__length1;
#line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						services = _tmp36_;
#line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						services_length1 = _tmp36__length1;
#line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_services_size_ = services_length1;
#line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp37_ = web_provisioning_card;
#line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp38_ = services;
#line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp38__length1 = services_length1;
#line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp39_ = g_new0 (gchar*, (_tmp38__length1 + 1) + 1);
#line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp40_ = _tmp39_;
#line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp40__length1 = _tmp38__length1 + 1;
#line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						id_card_set_services (_tmp37_, _tmp40_, _tmp38__length1 + 1);
#line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp40_ = (_vala_array_free (_tmp40_, _tmp40__length1, (GDestroyNotify) g_free), NULL);
#line 1479 "moonshot-provisioning-common.c"
						{
							gint i = 0;
#line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							i = 0;
#line 1484 "moonshot-provisioning-common.c"
							{
								gboolean _tmp41_ = FALSE;
#line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
								_tmp41_ = TRUE;
#line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
								while (TRUE) {
#line 1491 "moonshot-provisioning-common.c"
									gint _tmp43_ = 0;
									gchar** _tmp44_ = NULL;
									gint _tmp44__length1 = 0;
									IdCard* _tmp45_ = NULL;
									gchar** _tmp46_ = NULL;
									gint _tmp46__length1 = 0;
									gchar** _tmp47_ = NULL;
									gint _tmp47__length1 = 0;
									gint _tmp48_ = 0;
									gchar** _tmp49_ = NULL;
									gint _tmp49__length1 = 0;
									gint _tmp50_ = 0;
									const gchar* _tmp51_ = NULL;
									gchar* _tmp52_ = NULL;
									gchar* _tmp53_ = NULL;
#line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									if (!_tmp41_) {
#line 1509 "moonshot-provisioning-common.c"
										gint _tmp42_ = 0;
#line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
										_tmp42_ = i;
#line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
										i = _tmp42_ + 1;
#line 1515 "moonshot-provisioning-common.c"
									}
#line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp41_ = FALSE;
#line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp43_ = i;
#line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp44_ = services;
#line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp44__length1 = services_length1;
#line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									if (!(_tmp43_ < _tmp44__length1)) {
#line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
										break;
#line 1529 "moonshot-provisioning-common.c"
									}
#line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp45_ = web_provisioning_card;
#line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp46_ = id_card_get_services (_tmp45_, &_tmp46__length1);
#line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp47_ = _tmp46_;
#line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp47__length1 = _tmp46__length1;
#line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp48_ = i;
#line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp49_ = services;
#line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp49__length1 = services_length1;
#line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp50_ = i;
#line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp51_ = _tmp49_[_tmp50_];
#line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp52_ = g_strdup (_tmp51_);
#line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_g_free0 (_tmp47_[_tmp48_]);
#line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp47_[_tmp48_] = _tmp52_;
#line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp53_ = _tmp47_[_tmp48_];
#line 1557 "moonshot-provisioning-common.c"
								}
							}
						}
#line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp54_ = web_provisioning_card;
#line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp55_ = id_card_get_services (_tmp54_, &_tmp55__length1);
#line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp56_ = _tmp55_;
#line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp56__length1 = _tmp55__length1;
#line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp57_ = services;
#line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp57__length1 = services_length1;
#line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp58_ = text;
#line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp59_ = g_strdup (_tmp58_);
#line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_g_free0 (_tmp56_[_tmp57__length1]);
#line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp56_[_tmp57__length1] = _tmp59_;
#line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp60_ = _tmp56_[_tmp57__length1];
#line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_free), NULL);
#line 1585 "moonshot-provisioning-common.c"
					} else {
						gboolean _tmp61_ = FALSE;
						GSList* _tmp62_ = NULL;
						gconstpointer _tmp63_ = NULL;
#line 201 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp62_ = stack;
#line 201 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						_tmp63_ = g_slist_nth_data (_tmp62_, (guint) 0);
#line 201 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						if (g_strcmp0 ((const gchar*) _tmp63_, "pattern") == 0) {
#line 1596 "moonshot-provisioning-common.c"
							GSList* _tmp64_ = NULL;
							gboolean _tmp65_ = FALSE;
#line 201 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp64_ = stack;
#line 201 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp65_ = web_provisioning_pattern_handler (_tmp64_);
#line 201 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp61_ = _tmp65_;
#line 1605 "moonshot-provisioning-common.c"
						} else {
#line 201 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp61_ = FALSE;
#line 1609 "moonshot-provisioning-common.c"
						}
#line 201 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
						if (_tmp61_) {
#line 1613 "moonshot-provisioning-common.c"
							Rule* temp = NULL;
							IdCard* _tmp66_ = NULL;
							Rule* _tmp67_ = NULL;
							gint _tmp67__length1 = 0;
							Rule* _tmp68_ = NULL;
							gint _tmp68__length1 = 0;
							Rule* _tmp69_ = NULL;
							gint _tmp69__length1 = 0;
							gint temp_length1 = 0;
							gint _temp_size_ = 0;
							IdCard* _tmp70_ = NULL;
							Rule* _tmp71_ = NULL;
							gint _tmp71__length1 = 0;
							Rule* _tmp72_ = NULL;
							gint _tmp72__length1 = 0;
							Rule* _tmp73_ = NULL;
							gint _tmp73__length1 = 0;
							const gchar* _tmp74_ = NULL;
							gchar* _tmp75_ = NULL;
#line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp66_ = web_provisioning_card;
#line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp67_ = id_card_get_rules (_tmp66_, &_tmp67__length1);
#line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp68_ = _tmp67_;
#line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp68__length1 = _tmp67__length1;
#line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp69_ = (_tmp68_ != NULL) ? _vala_array_dup6 (_tmp68_, _tmp68__length1) : ((gpointer) _tmp68_);
#line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp69__length1 = _tmp68__length1;
#line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							temp = _tmp69_;
#line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							temp_length1 = _tmp69__length1;
#line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_temp_size_ = temp_length1;
#line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp70_ = web_provisioning_card;
#line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp71_ = id_card_get_rules (_tmp70_, &_tmp71__length1);
#line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp72_ = _tmp71_;
#line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp72__length1 = _tmp71__length1;
#line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp73_ = temp;
#line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp73__length1 = temp_length1;
#line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp74_ = text;
#line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp75_ = g_strdup (_tmp74_);
#line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_g_free0 (_tmp72_[_tmp73__length1 - 1].pattern);
#line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp72_[_tmp73__length1 - 1].pattern = _tmp75_;
#line 201 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							temp = (_vala_Rule_array_free (temp, temp_length1), NULL);
#line 1673 "moonshot-provisioning-common.c"
						} else {
							gboolean _tmp76_ = FALSE;
							GSList* _tmp77_ = NULL;
							gconstpointer _tmp78_ = NULL;
#line 207 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp77_ = stack;
#line 207 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							_tmp78_ = g_slist_nth_data (_tmp77_, (guint) 0);
#line 207 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							if (g_strcmp0 ((const gchar*) _tmp78_, "always-confirm") == 0) {
#line 1684 "moonshot-provisioning-common.c"
								GSList* _tmp79_ = NULL;
								gboolean _tmp80_ = FALSE;
#line 207 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
								_tmp79_ = stack;
#line 207 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
								_tmp80_ = web_provisioning_always_confirm_handler (_tmp79_);
#line 207 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
								_tmp76_ = _tmp80_;
#line 1693 "moonshot-provisioning-common.c"
							} else {
#line 207 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
								_tmp76_ = FALSE;
#line 1697 "moonshot-provisioning-common.c"
							}
#line 207 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
							if (_tmp76_) {
#line 1701 "moonshot-provisioning-common.c"
								gboolean _tmp81_ = FALSE;
								const gchar* _tmp82_ = NULL;
#line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
								_tmp82_ = text;
#line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
								if (g_strcmp0 (_tmp82_, "true") == 0) {
#line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp81_ = TRUE;
#line 1710 "moonshot-provisioning-common.c"
								} else {
									const gchar* _tmp83_ = NULL;
#line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp83_ = text;
#line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp81_ = g_strcmp0 (_tmp83_, "false") == 0;
#line 1717 "moonshot-provisioning-common.c"
								}
#line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
								if (_tmp81_) {
#line 1721 "moonshot-provisioning-common.c"
									Rule* temp = NULL;
									IdCard* _tmp84_ = NULL;
									Rule* _tmp85_ = NULL;
									gint _tmp85__length1 = 0;
									Rule* _tmp86_ = NULL;
									gint _tmp86__length1 = 0;
									Rule* _tmp87_ = NULL;
									gint _tmp87__length1 = 0;
									gint temp_length1 = 0;
									gint _temp_size_ = 0;
									IdCard* _tmp88_ = NULL;
									Rule* _tmp89_ = NULL;
									gint _tmp89__length1 = 0;
									Rule* _tmp90_ = NULL;
									gint _tmp90__length1 = 0;
									Rule* _tmp91_ = NULL;
									gint _tmp91__length1 = 0;
									const gchar* _tmp92_ = NULL;
									gchar* _tmp93_ = NULL;
#line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp84_ = web_provisioning_card;
#line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp85_ = id_card_get_rules (_tmp84_, &_tmp85__length1);
#line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp86_ = _tmp85_;
#line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp86__length1 = _tmp85__length1;
#line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp87_ = (_tmp86_ != NULL) ? _vala_array_dup7 (_tmp86_, _tmp86__length1) : ((gpointer) _tmp86_);
#line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp87__length1 = _tmp86__length1;
#line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									temp = _tmp87_;
#line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									temp_length1 = _tmp87__length1;
#line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_temp_size_ = temp_length1;
#line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp88_ = web_provisioning_card;
#line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp89_ = id_card_get_rules (_tmp88_, &_tmp89__length1);
#line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp90_ = _tmp89_;
#line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp90__length1 = _tmp89__length1;
#line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp91_ = temp;
#line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp91__length1 = temp_length1;
#line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp92_ = text;
#line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp93_ = g_strdup (_tmp92_);
#line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_g_free0 (_tmp90_[_tmp91__length1 - 1].always_confirm);
#line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp90_[_tmp91__length1 - 1].always_confirm = _tmp93_;
#line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									temp = (_vala_Rule_array_free (temp, temp_length1), NULL);
#line 1781 "moonshot-provisioning-common.c"
								}
							} else {
								gboolean _tmp94_ = FALSE;
								GSList* _tmp95_ = NULL;
								gconstpointer _tmp96_ = NULL;
#line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
								_tmp95_ = stack;
#line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
								_tmp96_ = g_slist_nth_data (_tmp95_, (guint) 0);
#line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
								if (g_strcmp0 ((const gchar*) _tmp96_, "ca-cert") == 0) {
#line 1793 "moonshot-provisioning-common.c"
									GSList* _tmp97_ = NULL;
									gboolean _tmp98_ = FALSE;
#line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp97_ = stack;
#line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp98_ = web_provisioning_ca_cert_handler (_tmp97_);
#line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp94_ = _tmp98_;
#line 1802 "moonshot-provisioning-common.c"
								} else {
#line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp94_ = FALSE;
#line 1806 "moonshot-provisioning-common.c"
								}
#line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
								if (_tmp94_) {
#line 1810 "moonshot-provisioning-common.c"
									IdCard* _tmp99_ = NULL;
									TrustAnchor* _tmp100_ = NULL;
									TrustAnchor* _tmp101_ = NULL;
									const gchar* _tmp102_ = NULL;
#line 218 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp99_ = web_provisioning_card;
#line 218 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp100_ = id_card_get_trust_anchor (_tmp99_);
#line 218 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp101_ = _tmp100_;
#line 218 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp102_ = text;
#line 218 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									trust_anchor_set_ca_cert (_tmp101_, _tmp102_);
#line 1825 "moonshot-provisioning-common.c"
								} else {
									gboolean _tmp103_ = FALSE;
									GSList* _tmp104_ = NULL;
									gconstpointer _tmp105_ = NULL;
#line 220 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp104_ = stack;
#line 220 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									_tmp105_ = g_slist_nth_data (_tmp104_, (guint) 0);
#line 220 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									if (g_strcmp0 ((const gchar*) _tmp105_, "subject") == 0) {
#line 1836 "moonshot-provisioning-common.c"
										GSList* _tmp106_ = NULL;
										gboolean _tmp107_ = FALSE;
#line 220 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
										_tmp106_ = stack;
#line 220 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
										_tmp107_ = web_provisioning_subject_handler (_tmp106_);
#line 220 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
										_tmp103_ = _tmp107_;
#line 1845 "moonshot-provisioning-common.c"
									} else {
#line 220 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
										_tmp103_ = FALSE;
#line 1849 "moonshot-provisioning-common.c"
									}
#line 220 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
									if (_tmp103_) {
#line 1853 "moonshot-provisioning-common.c"
										IdCard* _tmp108_ = NULL;
										TrustAnchor* _tmp109_ = NULL;
										TrustAnchor* _tmp110_ = NULL;
										const gchar* _tmp111_ = NULL;
#line 222 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
										_tmp108_ = web_provisioning_card;
#line 222 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
										_tmp109_ = id_card_get_trust_anchor (_tmp108_);
#line 222 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
										_tmp110_ = _tmp109_;
#line 222 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
										_tmp111_ = text;
#line 222 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
										trust_anchor_set_subject (_tmp110_, _tmp111_);
#line 1868 "moonshot-provisioning-common.c"
									} else {
										gboolean _tmp112_ = FALSE;
										GSList* _tmp113_ = NULL;
										gconstpointer _tmp114_ = NULL;
#line 224 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
										_tmp113_ = stack;
#line 224 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
										_tmp114_ = g_slist_nth_data (_tmp113_, (guint) 0);
#line 224 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
										if (g_strcmp0 ((const gchar*) _tmp114_, "subject-alt") == 0) {
#line 1879 "moonshot-provisioning-common.c"
											GSList* _tmp115_ = NULL;
											gboolean _tmp116_ = FALSE;
#line 224 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
											_tmp115_ = stack;
#line 224 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
											_tmp116_ = web_provisioning_subject_alt_handler (_tmp115_);
#line 224 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
											_tmp112_ = _tmp116_;
#line 1888 "moonshot-provisioning-common.c"
										} else {
#line 224 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
											_tmp112_ = FALSE;
#line 1892 "moonshot-provisioning-common.c"
										}
#line 224 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
										if (_tmp112_) {
#line 1896 "moonshot-provisioning-common.c"
											IdCard* _tmp117_ = NULL;
											TrustAnchor* _tmp118_ = NULL;
											TrustAnchor* _tmp119_ = NULL;
											const gchar* _tmp120_ = NULL;
#line 226 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
											_tmp117_ = web_provisioning_card;
#line 226 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
											_tmp118_ = id_card_get_trust_anchor (_tmp117_);
#line 226 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
											_tmp119_ = _tmp118_;
#line 226 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
											_tmp120_ = text;
#line 226 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
											trust_anchor_set_subject_alt (_tmp119_, _tmp120_);
#line 1911 "moonshot-provisioning-common.c"
										} else {
											gboolean _tmp121_ = FALSE;
											GSList* _tmp122_ = NULL;
											gconstpointer _tmp123_ = NULL;
#line 228 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
											_tmp122_ = stack;
#line 228 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
											_tmp123_ = g_slist_nth_data (_tmp122_, (guint) 0);
#line 228 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
											if (g_strcmp0 ((const gchar*) _tmp123_, "server-cert") == 0) {
#line 1922 "moonshot-provisioning-common.c"
												GSList* _tmp124_ = NULL;
												gboolean _tmp125_ = FALSE;
#line 228 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
												_tmp124_ = stack;
#line 228 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
												_tmp125_ = web_provisioning_server_cert_handler (_tmp124_);
#line 228 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
												_tmp121_ = _tmp125_;
#line 1931 "moonshot-provisioning-common.c"
											} else {
#line 228 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
												_tmp121_ = FALSE;
#line 1935 "moonshot-provisioning-common.c"
											}
#line 228 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
											if (_tmp121_) {
#line 1939 "moonshot-provisioning-common.c"
												IdCard* _tmp126_ = NULL;
												TrustAnchor* _tmp127_ = NULL;
												TrustAnchor* _tmp128_ = NULL;
												const gchar* _tmp129_ = NULL;
#line 230 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
												_tmp126_ = web_provisioning_card;
#line 230 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
												_tmp127_ = id_card_get_trust_anchor (_tmp126_);
#line 230 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
												_tmp128_ = _tmp127_;
#line 230 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
												_tmp129_ = text;
#line 230 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
												trust_anchor_set_server_cert (_tmp128_, _tmp129_);
#line 1954 "moonshot-provisioning-common.c"
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
}


static void _web_provisioning_start_element_func_gmarkup_parser_start_element_func (GMarkupParseContext* context, const gchar* element_name, gchar** attribute_names, gchar** attribute_values, gpointer self, GError** error) {
#line 258 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	web_provisioning_start_element_func (context, element_name, attribute_names, _vala_array_length (attribute_names), attribute_values, _vala_array_length (attribute_values), error);
#line 1972 "moonshot-provisioning-common.c"
}


static void _web_provisioning_text_element_func_gmarkup_parser_text_func (GMarkupParseContext* context, const gchar* text, gsize text_len, gpointer self, GError** error) {
#line 258 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	web_provisioning_text_element_func (context, text, text_len, error);
#line 1979 "moonshot-provisioning-common.c"
}


WebProvisioningParser* web_provisioning_parser_construct (GType object_type, const gchar* path) {
	WebProvisioningParser* self = NULL;
	gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	GFile* file = NULL;
	const gchar* _tmp3_ = NULL;
	GFile* _tmp4_ = NULL;
	GMarkupParser _tmp17_ = {0};
	GError * _inner_error_ = NULL;
#line 239 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	g_return_val_if_fail (path != NULL, NULL);
#line 239 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	self = (WebProvisioningParser*) g_type_create_instance (object_type);
#line 241 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp0_ = g_strdup ("");
#line 241 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_g_free0 (self->priv->text);
#line 241 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	self->priv->text = _tmp0_;
#line 242 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp1_ = path;
#line 242 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 242 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_g_free0 (self->priv->path);
#line 242 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	self->priv->path = _tmp2_;
#line 244 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp3_ = path;
#line 244 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp4_ = g_file_new_for_path (_tmp3_);
#line 244 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	file = _tmp4_;
#line 2017 "moonshot-provisioning-common.c"
	{
		GFileInputStream* _tmp5_ = NULL;
		GFile* _tmp6_ = NULL;
		GFileInputStream* _tmp7_ = NULL;
		GDataInputStream* dis = NULL;
		GDataInputStream* _tmp8_ = NULL;
		gchar* line = NULL;
#line 248 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp6_ = file;
#line 248 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp7_ = g_file_read (_tmp6_, NULL, &_inner_error_);
#line 248 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp5_ = _tmp7_;
#line 248 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2033 "moonshot-provisioning-common.c"
			goto __catch0_g_error;
		}
#line 248 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp8_ = g_data_input_stream_new ((GInputStream*) _tmp5_);
#line 248 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		dis = _tmp8_;
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		while (TRUE) {
#line 2042 "moonshot-provisioning-common.c"
			gchar* _tmp9_ = NULL;
			GDataInputStream* _tmp10_ = NULL;
			gchar* _tmp11_ = NULL;
			gchar* _tmp12_ = NULL;
			const gchar* _tmp13_ = NULL;
			const gchar* _tmp14_ = NULL;
			const gchar* _tmp15_ = NULL;
			gchar* _tmp16_ = NULL;
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp10_ = dis;
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp11_ = g_data_input_stream_read_line (_tmp10_, NULL, NULL, &_inner_error_);
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp9_ = _tmp11_;
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_g_free0 (line);
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_g_object_unref0 (dis);
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_g_object_unref0 (_tmp5_);
#line 2065 "moonshot-provisioning-common.c"
				goto __catch0_g_error;
			}
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp12_ = _tmp9_;
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp9_ = NULL;
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_g_free0 (line);
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			line = _tmp12_;
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp13_ = line;
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			if (!(_tmp13_ != NULL)) {
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				_g_free0 (_tmp9_);
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
				break;
#line 2084 "moonshot-provisioning-common.c"
			}
#line 251 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp14_ = self->priv->text;
#line 251 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp15_ = line;
#line 251 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_tmp16_ = g_strconcat (_tmp14_, _tmp15_, NULL);
#line 251 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_g_free0 (self->priv->text);
#line 251 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			self->priv->text = _tmp16_;
#line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			_g_free0 (_tmp9_);
#line 2098 "moonshot-provisioning-common.c"
		}
#line 246 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_g_free0 (line);
#line 246 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_g_object_unref0 (dis);
#line 246 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_g_object_unref0 (_tmp5_);
#line 2106 "moonshot-provisioning-common.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
#line 246 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		e = _inner_error_;
#line 246 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_inner_error_ = NULL;
#line 255 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		g_error ("moonshot-provisioning-common.vala:255: Could not retreive file size");
#line 246 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_g_error_free0 (e);
#line 2120 "moonshot-provisioning-common.c"
	}
	__finally0:
#line 246 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 246 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_g_object_unref0 (file);
#line 246 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 246 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		g_clear_error (&_inner_error_);
#line 246 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		return NULL;
#line 2133 "moonshot-provisioning-common.c"
	}
#line 258 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp17_.start_element = _web_provisioning_start_element_func_gmarkup_parser_start_element_func;
#line 258 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp17_.end_element = NULL;
#line 258 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp17_.text = _web_provisioning_text_element_func_gmarkup_parser_text_func;
#line 258 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp17_.passthrough = NULL;
#line 258 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp17_.error = NULL;
#line 258 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	self->priv->parser = _tmp17_;
#line 239 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_g_object_unref0 (file);
#line 239 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return self;
#line 2151 "moonshot-provisioning-common.c"
}


WebProvisioningParser* web_provisioning_parser_new (const gchar* path) {
#line 239 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return web_provisioning_parser_construct (WEB_PROVISIONING_TYPE_PARSER, path);
#line 2158 "moonshot-provisioning-common.c"
}


void web_provisioning_parser_parse (WebProvisioningParser* self) {
	GMarkupParseContext* ctx = NULL;
	GMarkupParser _tmp0_ = {0};
	GMarkupParseContext* _tmp1_ = NULL;
	GError * _inner_error_ = NULL;
#line 261 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	g_return_if_fail (self != NULL);
#line 264 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp0_ = self->priv->parser;
#line 264 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_tmp1_ = g_markup_parse_context_new (&_tmp0_, 0, NULL, NULL);
#line 264 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	ctx = _tmp1_;
#line 2175 "moonshot-provisioning-common.c"
	{
		const gchar* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		gint _tmp4_ = 0;
		gint _tmp5_ = 0;
#line 268 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp2_ = self->priv->text;
#line 268 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp3_ = self->priv->text;
#line 268 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp4_ = strlen (_tmp3_);
#line 268 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp5_ = _tmp4_;
#line 268 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		g_markup_parse_context_parse (ctx, _tmp2_, (gssize) _tmp5_, &_inner_error_);
#line 268 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2193 "moonshot-provisioning-common.c"
			goto __catch1_g_error;
		}
	}
	goto __finally1;
	__catch1_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp6_ = NULL;
#line 266 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		e = _inner_error_;
#line 266 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_inner_error_ = NULL;
#line 272 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_tmp6_ = self->priv->path;
#line 272 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		g_error ("moonshot-provisioning-common.vala:272: Could not parse %s, invalid con" \
"tent", _tmp6_);
#line 266 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_g_error_free0 (e);
#line 2212 "moonshot-provisioning-common.c"
	}
	__finally1:
#line 266 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 266 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		_g_markup_parse_context_free0 (ctx);
#line 266 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 266 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		g_clear_error (&_inner_error_);
#line 266 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		return;
#line 2225 "moonshot-provisioning-common.c"
	}
#line 261 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_g_markup_parse_context_free0 (ctx);
#line 2229 "moonshot-provisioning-common.c"
}


static void web_provisioning_value_parser_init (GValue* value) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	value->data[0].v_pointer = NULL;
#line 2236 "moonshot-provisioning-common.c"
}


static void web_provisioning_value_parser_free_value (GValue* value) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (value->data[0].v_pointer) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		web_provisioning_parser_unref (value->data[0].v_pointer);
#line 2245 "moonshot-provisioning-common.c"
	}
}


static void web_provisioning_value_parser_copy_value (const GValue* src_value, GValue* dest_value) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (src_value->data[0].v_pointer) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		dest_value->data[0].v_pointer = web_provisioning_parser_ref (src_value->data[0].v_pointer);
#line 2255 "moonshot-provisioning-common.c"
	} else {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		dest_value->data[0].v_pointer = NULL;
#line 2259 "moonshot-provisioning-common.c"
	}
}


static gpointer web_provisioning_value_parser_peek_pointer (const GValue* value) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return value->data[0].v_pointer;
#line 2267 "moonshot-provisioning-common.c"
}


static gchar* web_provisioning_value_parser_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (collect_values[0].v_pointer) {
#line 2274 "moonshot-provisioning-common.c"
		WebProvisioningParser* object;
		object = collect_values[0].v_pointer;
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		if (object->parent_instance.g_class == NULL) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 2281 "moonshot-provisioning-common.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 2285 "moonshot-provisioning-common.c"
		}
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		value->data[0].v_pointer = web_provisioning_parser_ref (object);
#line 2289 "moonshot-provisioning-common.c"
	} else {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		value->data[0].v_pointer = NULL;
#line 2293 "moonshot-provisioning-common.c"
	}
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return NULL;
#line 2297 "moonshot-provisioning-common.c"
}


static gchar* web_provisioning_value_parser_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	WebProvisioningParser** object_p;
	object_p = collect_values[0].v_pointer;
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (!object_p) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 2308 "moonshot-provisioning-common.c"
	}
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (!value->data[0].v_pointer) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		*object_p = NULL;
#line 2314 "moonshot-provisioning-common.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		*object_p = value->data[0].v_pointer;
#line 2318 "moonshot-provisioning-common.c"
	} else {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		*object_p = web_provisioning_parser_ref (value->data[0].v_pointer);
#line 2322 "moonshot-provisioning-common.c"
	}
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return NULL;
#line 2326 "moonshot-provisioning-common.c"
}


GParamSpec* web_provisioning_param_spec_parser (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	WebProvisioningParamSpecParser* spec;
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	g_return_val_if_fail (g_type_is_a (object_type, WEB_PROVISIONING_TYPE_PARSER), NULL);
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return G_PARAM_SPEC (spec);
#line 2340 "moonshot-provisioning-common.c"
}


gpointer web_provisioning_value_get_parser (const GValue* value) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, WEB_PROVISIONING_TYPE_PARSER), NULL);
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return value->data[0].v_pointer;
#line 2349 "moonshot-provisioning-common.c"
}


void web_provisioning_value_set_parser (GValue* value, gpointer v_object) {
	WebProvisioningParser* old;
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, WEB_PROVISIONING_TYPE_PARSER));
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	old = value->data[0].v_pointer;
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (v_object) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, WEB_PROVISIONING_TYPE_PARSER));
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		value->data[0].v_pointer = v_object;
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		web_provisioning_parser_ref (value->data[0].v_pointer);
#line 2369 "moonshot-provisioning-common.c"
	} else {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		value->data[0].v_pointer = NULL;
#line 2373 "moonshot-provisioning-common.c"
	}
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (old) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		web_provisioning_parser_unref (old);
#line 2379 "moonshot-provisioning-common.c"
	}
}


void web_provisioning_value_take_parser (GValue* value, gpointer v_object) {
	WebProvisioningParser* old;
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, WEB_PROVISIONING_TYPE_PARSER));
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	old = value->data[0].v_pointer;
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (v_object) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, WEB_PROVISIONING_TYPE_PARSER));
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		value->data[0].v_pointer = v_object;
#line 2398 "moonshot-provisioning-common.c"
	} else {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		value->data[0].v_pointer = NULL;
#line 2402 "moonshot-provisioning-common.c"
	}
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (old) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		web_provisioning_parser_unref (old);
#line 2408 "moonshot-provisioning-common.c"
	}
}


static void web_provisioning_parser_class_init (WebProvisioningParserClass * klass) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	web_provisioning_parser_parent_class = g_type_class_peek_parent (klass);
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	((WebProvisioningParserClass *) klass)->finalize = web_provisioning_parser_finalize;
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	g_type_class_add_private (klass, sizeof (WebProvisioningParserPrivate));
#line 2420 "moonshot-provisioning-common.c"
}


static void web_provisioning_parser_instance_init (WebProvisioningParser * self) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	self->priv = WEB_PROVISIONING_PARSER_GET_PRIVATE (self);
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	self->ref_count = 1;
#line 2429 "moonshot-provisioning-common.c"
}


static void web_provisioning_parser_finalize (WebProvisioningParser* obj) {
	WebProvisioningParser * self;
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParser);
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	g_signal_handlers_destroy (self);
#line 237 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_g_free0 (self->priv->text);
#line 238 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	_g_free0 (self->priv->path);
#line 2443 "moonshot-provisioning-common.c"
}


GType web_provisioning_parser_get_type (void) {
	static volatile gsize web_provisioning_parser_type_id__volatile = 0;
	if (g_once_init_enter (&web_provisioning_parser_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { web_provisioning_value_parser_init, web_provisioning_value_parser_free_value, web_provisioning_value_parser_copy_value, web_provisioning_value_parser_peek_pointer, "p", web_provisioning_value_parser_collect_value, "p", web_provisioning_value_parser_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (WebProvisioningParserClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) web_provisioning_parser_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (WebProvisioningParser), 0, (GInstanceInitFunc) web_provisioning_parser_instance_init, &g_define_type_value_table };
		static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
		GType web_provisioning_parser_type_id;
		web_provisioning_parser_type_id = g_type_register_fundamental (g_type_fundamental_next (), "WebProvisioningParser", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&web_provisioning_parser_type_id__volatile, web_provisioning_parser_type_id);
	}
	return web_provisioning_parser_type_id__volatile;
}


gpointer web_provisioning_parser_ref (gpointer instance) {
	WebProvisioningParser* self;
	self = instance;
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	g_atomic_int_inc (&self->ref_count);
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	return instance;
#line 2468 "moonshot-provisioning-common.c"
}


void web_provisioning_parser_unref (gpointer instance) {
	WebProvisioningParser* self;
	self = instance;
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		WEB_PROVISIONING_PARSER_GET_CLASS (self)->finalize (self);
#line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-provisioning-common.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 2481 "moonshot-provisioning-common.c"
	}
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}



