From ab841afa5cb39058d9ab2cebb67cfe6369443f6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 25 Jun 2018 20:55:59 +0200 Subject: New upstream version 0.28.3 --- src/plugins/StandardHostInterface.c | 446 +++++++++++++++++++----------------- 1 file changed, 242 insertions(+), 204 deletions(-) (limited to 'src/plugins/StandardHostInterface.c') diff --git a/src/plugins/StandardHostInterface.c b/src/plugins/StandardHostInterface.c index c1b8599..4dfc7ed 100644 --- a/src/plugins/StandardHostInterface.c +++ b/src/plugins/StandardHostInterface.c @@ -1,4 +1,4 @@ -/* StandardHostInterface.c generated by valac 0.36.6, the Vala compiler +/* StandardHostInterface.c generated by valac 0.40.4, the Vala compiler * generated from StandardHostInterface.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -7,6 +7,7 @@ * (version 2.1 or later). See the COPYING file in this distribution. */ + #include #include #include "shotwell-plugin-dev-1.0.h" @@ -27,6 +28,11 @@ typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface; typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass; typedef struct _PluginsStandardHostInterfacePrivate PluginsStandardHostInterfacePrivate; +enum { + PLUGINS_STANDARD_HOST_INTERFACE_0_PROPERTY, + PLUGINS_STANDARD_HOST_INTERFACE_NUM_PROPERTIES +}; +static GParamSpec* plugins_standard_host_interface_properties[PLUGINS_STANDARD_HOST_INTERFACE_NUM_PROPERTIES]; #define _g_free0(var) (var = (g_free (var), NULL)) #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) @@ -72,48 +78,100 @@ static SpitHostInterfaceIface * plugins_standard_host_interface_spit_host_interf GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST; #define PLUGINS_STANDARD_HOST_INTERFACE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfacePrivate)) -enum { - PLUGINS_STANDARD_HOST_INTERFACE_DUMMY_PROPERTY -}; -PluginsStandardHostInterface* plugins_standard_host_interface_new (SpitPluggable* pluggable, const gchar* config_domain); -PluginsStandardHostInterface* plugins_standard_host_interface_construct (GType object_type, SpitPluggable* pluggable, const gchar* config_domain); +PluginsStandardHostInterface* plugins_standard_host_interface_new (SpitPluggable* pluggable, + const gchar* config_domain); +PluginsStandardHostInterface* plugins_standard_host_interface_construct (GType object_type, + SpitPluggable* pluggable, + const gchar* config_domain); static gchar* plugins_standard_host_interface_parse_key (const gchar* id); GFile* plugins_get_pluggable_module_file (SpitPluggable* pluggable); static GFile* plugins_standard_host_interface_real_get_module_file (SpitHostInterface* base); -static gboolean plugins_standard_host_interface_real_get_config_bool (SpitHostInterface* base, const gchar* key, gboolean def); +static gboolean plugins_standard_host_interface_real_get_config_bool (SpitHostInterface* base, + const gchar* key, + gboolean def); GType configuration_facade_get_type (void) G_GNUC_CONST; GType config_facade_get_type (void) G_GNUC_CONST; ConfigFacade* config_facade_get_instance (void); -gboolean configuration_facade_get_plugin_bool (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gboolean def); -static void plugins_standard_host_interface_real_set_config_bool (SpitHostInterface* base, const gchar* key, gboolean val); -void configuration_facade_set_plugin_bool (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gboolean val); -static gint plugins_standard_host_interface_real_get_config_int (SpitHostInterface* base, const gchar* key, gint def); -gint configuration_facade_get_plugin_int (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gint def); -static void plugins_standard_host_interface_real_set_config_int (SpitHostInterface* base, const gchar* key, gint val); -void configuration_facade_set_plugin_int (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gint val); -static gchar* plugins_standard_host_interface_real_get_config_string (SpitHostInterface* base, const gchar* key, const gchar* def); -gchar* configuration_facade_get_plugin_string (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* def); -static void plugins_standard_host_interface_real_set_config_string (SpitHostInterface* base, const gchar* key, const gchar* val); -void configuration_facade_set_plugin_string (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* val); -static gdouble plugins_standard_host_interface_real_get_config_double (SpitHostInterface* base, const gchar* key, gdouble def); -gdouble configuration_facade_get_plugin_double (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gdouble def); -static void plugins_standard_host_interface_real_set_config_double (SpitHostInterface* base, const gchar* key, gdouble val); -void configuration_facade_set_plugin_double (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gdouble val); -static void plugins_standard_host_interface_real_unset_config_key (SpitHostInterface* base, const gchar* key); -void configuration_facade_unset_plugin_key (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key); +gboolean configuration_facade_get_plugin_bool (ConfigurationFacade* self, + const gchar* domain, + const gchar* id, + const gchar* key, + gboolean def); +static void plugins_standard_host_interface_real_set_config_bool (SpitHostInterface* base, + const gchar* key, + gboolean val); +void configuration_facade_set_plugin_bool (ConfigurationFacade* self, + const gchar* domain, + const gchar* id, + const gchar* key, + gboolean val); +static gint plugins_standard_host_interface_real_get_config_int (SpitHostInterface* base, + const gchar* key, + gint def); +gint configuration_facade_get_plugin_int (ConfigurationFacade* self, + const gchar* domain, + const gchar* id, + const gchar* key, + gint def); +static void plugins_standard_host_interface_real_set_config_int (SpitHostInterface* base, + const gchar* key, + gint val); +void configuration_facade_set_plugin_int (ConfigurationFacade* self, + const gchar* domain, + const gchar* id, + const gchar* key, + gint val); +static gchar* plugins_standard_host_interface_real_get_config_string (SpitHostInterface* base, + const gchar* key, + const gchar* def); +gchar* configuration_facade_get_plugin_string (ConfigurationFacade* self, + const gchar* domain, + const gchar* id, + const gchar* key, + const gchar* def); +static void plugins_standard_host_interface_real_set_config_string (SpitHostInterface* base, + const gchar* key, + const gchar* val); +void configuration_facade_set_plugin_string (ConfigurationFacade* self, + const gchar* domain, + const gchar* id, + const gchar* key, + const gchar* val); +static gdouble plugins_standard_host_interface_real_get_config_double (SpitHostInterface* base, + const gchar* key, + gdouble def); +gdouble configuration_facade_get_plugin_double (ConfigurationFacade* self, + const gchar* domain, + const gchar* id, + const gchar* key, + gdouble def); +static void plugins_standard_host_interface_real_set_config_double (SpitHostInterface* base, + const gchar* key, + gdouble val); +void configuration_facade_set_plugin_double (ConfigurationFacade* self, + const gchar* domain, + const gchar* id, + const gchar* key, + gdouble val); +static void plugins_standard_host_interface_real_unset_config_key (SpitHostInterface* base, + const gchar* key); +void configuration_facade_unset_plugin_key (ConfigurationFacade* self, + const gchar* domain, + const gchar* id, + const gchar* key); static void plugins_standard_host_interface_finalize (GObject * obj); -PluginsStandardHostInterface* plugins_standard_host_interface_construct (GType object_type, SpitPluggable* pluggable, const gchar* config_domain) { +PluginsStandardHostInterface* +plugins_standard_host_interface_construct (GType object_type, + SpitPluggable* pluggable, + const gchar* config_domain) +{ PluginsStandardHostInterface * self = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; - SpitPluggable* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - SpitPluggable* _tmp5_; - GFile* _tmp6_; - SpitPluggable* _tmp7_; + gchar* _tmp0_; + const gchar* _tmp1_; + gchar* _tmp2_; + GFile* _tmp3_; #line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" g_return_val_if_fail (SPIT_IS_PLUGGABLE (pluggable), NULL); #line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" @@ -121,165 +179,160 @@ PluginsStandardHostInterface* plugins_standard_host_interface_construct (GType o #line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" self = (PluginsStandardHostInterface*) g_object_new (object_type, NULL); #line 16 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_domain; -#line 16 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = g_strdup (_tmp0_); + _tmp0_ = g_strdup (config_domain); #line 16 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _g_free0 (self->priv->config_domain); #line 16 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self->priv->config_domain = _tmp1_; -#line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = pluggable; + self->priv->config_domain = _tmp0_; #line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = spit_pluggable_get_id (_tmp2_); + _tmp1_ = spit_pluggable_get_id (pluggable); #line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = plugins_standard_host_interface_parse_key (_tmp3_); + _tmp2_ = plugins_standard_host_interface_parse_key (_tmp1_); #line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _g_free0 (self->priv->config_id); #line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self->priv->config_id = _tmp4_; + self->priv->config_id = _tmp2_; #line 18 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp5_ = pluggable; -#line 18 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp6_ = plugins_get_pluggable_module_file (_tmp5_); + _tmp3_ = plugins_get_pluggable_module_file (pluggable); #line 18 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _g_object_unref0 (self->priv->module_file); #line 18 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self->priv->module_file = _tmp6_; -#line 19 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp7_ = pluggable; + self->priv->module_file = _tmp3_; #line 19 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - spit_pluggable_get_info (_tmp7_, &self->priv->info); + spit_pluggable_get_info (pluggable, &self->priv->info); #line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" return self; -#line 156 "StandardHostInterface.c" +#line 206 "StandardHostInterface.c" } -PluginsStandardHostInterface* plugins_standard_host_interface_new (SpitPluggable* pluggable, const gchar* config_domain) { +PluginsStandardHostInterface* +plugins_standard_host_interface_new (SpitPluggable* pluggable, + const gchar* config_domain) +{ #line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" return plugins_standard_host_interface_construct (PLUGINS_TYPE_STANDARD_HOST_INTERFACE, pluggable, config_domain); -#line 163 "StandardHostInterface.c" +#line 216 "StandardHostInterface.c" } -static gchar* plugins_standard_host_interface_parse_key (const gchar* id) { +static gchar* +plugins_standard_host_interface_parse_key (const gchar* id) +{ gchar* result = NULL; const gchar* _tmp0_; - const gchar* _tmp1_; - GQuark _tmp3_ = 0U; + GQuark _tmp2_ = 0U; #line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - static GQuark _tmp2_label0 = 0; + static GQuark _tmp1_label0 = 0; #line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - static GQuark _tmp2_label1 = 0; + static GQuark _tmp1_label1 = 0; #line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - static GQuark _tmp2_label2 = 0; + static GQuark _tmp1_label2 = 0; #line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - static GQuark _tmp2_label3 = 0; + static GQuark _tmp1_label3 = 0; #line 22 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" g_return_val_if_fail (id != NULL, NULL); #line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _tmp0_ = id; #line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_); + _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_); #line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - if (_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("org.yorba.shotwell.publishing.facebook")))) { + if (_tmp2_ == ((0 != _tmp1_label0) ? _tmp1_label0 : (_tmp1_label0 = g_quark_from_static_string ("org.yorba.shotwell.publishing.facebook")))) { #line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" switch (0) { -#line 192 "StandardHostInterface.c" +#line 244 "StandardHostInterface.c" default: { - gchar* _tmp4_; + gchar* _tmp3_; #line 27 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = g_strdup ("facebook"); + _tmp3_ = g_strdup ("facebook"); #line 27 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp4_; + result = _tmp3_; #line 27 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" return result; -#line 202 "StandardHostInterface.c" +#line 254 "StandardHostInterface.c" } } - } else if (_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("org.yorba.shotwell.publishing.picasa")))) { + } else if (_tmp2_ == ((0 != _tmp1_label1) ? _tmp1_label1 : (_tmp1_label1 = g_quark_from_static_string ("org.yorba.shotwell.publishing.picasa")))) { #line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" switch (0) { -#line 208 "StandardHostInterface.c" +#line 260 "StandardHostInterface.c" default: { - gchar* _tmp5_; + gchar* _tmp4_; #line 30 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp5_ = g_strdup ("picasa"); + _tmp4_ = g_strdup ("picasa"); #line 30 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp5_; + result = _tmp4_; #line 30 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" return result; -#line 218 "StandardHostInterface.c" +#line 270 "StandardHostInterface.c" } } - } else if (_tmp3_ == ((0 != _tmp2_label2) ? _tmp2_label2 : (_tmp2_label2 = g_quark_from_static_string ("org.yorba.shotwell.publishing.flickr")))) { + } else if (_tmp2_ == ((0 != _tmp1_label2) ? _tmp1_label2 : (_tmp1_label2 = g_quark_from_static_string ("org.yorba.shotwell.publishing.flickr")))) { #line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" switch (0) { -#line 224 "StandardHostInterface.c" +#line 276 "StandardHostInterface.c" default: { - gchar* _tmp6_; + gchar* _tmp5_; #line 33 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp6_ = g_strdup ("flickr"); + _tmp5_ = g_strdup ("flickr"); #line 33 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp6_; + result = _tmp5_; #line 33 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" return result; -#line 234 "StandardHostInterface.c" +#line 286 "StandardHostInterface.c" } } - } else if (_tmp3_ == ((0 != _tmp2_label3) ? _tmp2_label3 : (_tmp2_label3 = g_quark_from_static_string ("org.yorba.shotwell.publishing.youtube")))) { + } else if (_tmp2_ == ((0 != _tmp1_label3) ? _tmp1_label3 : (_tmp1_label3 = g_quark_from_static_string ("org.yorba.shotwell.publishing.youtube")))) { #line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" switch (0) { -#line 240 "StandardHostInterface.c" +#line 292 "StandardHostInterface.c" default: { - gchar* _tmp7_; + gchar* _tmp6_; #line 36 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp7_ = g_strdup ("youtube"); + _tmp6_ = g_strdup ("youtube"); #line 36 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp7_; + result = _tmp6_; #line 36 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" return result; -#line 250 "StandardHostInterface.c" +#line 302 "StandardHostInterface.c" } } } else { #line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" switch (0) { -#line 256 "StandardHostInterface.c" +#line 308 "StandardHostInterface.c" default: { - const gchar* _tmp8_; - gchar* _tmp9_; -#line 39 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp8_ = id; + gchar* _tmp7_; #line 39 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp9_ = g_strdup (_tmp8_); + _tmp7_ = g_strdup (id); #line 39 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp9_; + result = _tmp7_; #line 39 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" return result; -#line 269 "StandardHostInterface.c" +#line 318 "StandardHostInterface.c" } } } } -static gpointer _g_object_ref0 (gpointer self) { +static gpointer +_g_object_ref0 (gpointer self) +{ #line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" return self ? g_object_ref (self) : NULL; -#line 279 "StandardHostInterface.c" +#line 330 "StandardHostInterface.c" } -static GFile* plugins_standard_host_interface_real_get_module_file (SpitHostInterface* base) { +static GFile* +plugins_standard_host_interface_real_get_module_file (SpitHostInterface* base) +{ PluginsStandardHostInterface * self; GFile* result = NULL; GFile* _tmp0_; @@ -294,21 +347,22 @@ static GFile* plugins_standard_host_interface_real_get_module_file (SpitHostInte result = _tmp1_; #line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" return result; -#line 298 "StandardHostInterface.c" +#line 351 "StandardHostInterface.c" } -static gboolean plugins_standard_host_interface_real_get_config_bool (SpitHostInterface* base, const gchar* key, gboolean def) { +static gboolean +plugins_standard_host_interface_real_get_config_bool (SpitHostInterface* base, + const gchar* key, + gboolean def) +{ PluginsStandardHostInterface * self; gboolean result = FALSE; ConfigFacade* _tmp0_; ConfigFacade* _tmp1_; const gchar* _tmp2_; const gchar* _tmp3_; - const gchar* _tmp4_; - gboolean _tmp5_; - gboolean _tmp6_; - gboolean _tmp7_; + gboolean _tmp4_; #line 47 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); #line 47 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" @@ -322,31 +376,27 @@ static gboolean plugins_standard_host_interface_real_get_config_bool (SpitHostIn #line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _tmp3_ = self->priv->config_id; #line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = key; -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp5_ = def; -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp6_ = configuration_facade_get_plugin_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, _tmp4_, _tmp5_); -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp7_ = _tmp6_; + _tmp4_ = configuration_facade_get_plugin_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, def); #line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _g_object_unref0 (_tmp1_); #line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp7_; + result = _tmp4_; #line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" return result; -#line 339 "StandardHostInterface.c" +#line 387 "StandardHostInterface.c" } -static void plugins_standard_host_interface_real_set_config_bool (SpitHostInterface* base, const gchar* key, gboolean val) { +static void +plugins_standard_host_interface_real_set_config_bool (SpitHostInterface* base, + const gchar* key, + gboolean val) +{ PluginsStandardHostInterface * self; ConfigFacade* _tmp0_; ConfigFacade* _tmp1_; const gchar* _tmp2_; const gchar* _tmp3_; - const gchar* _tmp4_; - gboolean _tmp5_; #line 51 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); #line 51 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" @@ -360,28 +410,25 @@ static void plugins_standard_host_interface_real_set_config_bool (SpitHostInterf #line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _tmp3_ = self->priv->config_id; #line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = key; -#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp5_ = val; -#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - configuration_facade_set_plugin_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, _tmp4_, _tmp5_); + configuration_facade_set_plugin_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, val); #line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _g_object_unref0 (_tmp1_); -#line 371 "StandardHostInterface.c" +#line 417 "StandardHostInterface.c" } -static gint plugins_standard_host_interface_real_get_config_int (SpitHostInterface* base, const gchar* key, gint def) { +static gint +plugins_standard_host_interface_real_get_config_int (SpitHostInterface* base, + const gchar* key, + gint def) +{ PluginsStandardHostInterface * self; gint result = 0; ConfigFacade* _tmp0_; ConfigFacade* _tmp1_; const gchar* _tmp2_; const gchar* _tmp3_; - const gchar* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; + gint _tmp4_; #line 55 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); #line 55 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" @@ -395,31 +442,27 @@ static gint plugins_standard_host_interface_real_get_config_int (SpitHostInterfa #line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _tmp3_ = self->priv->config_id; #line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = key; -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp5_ = def; -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp6_ = configuration_facade_get_plugin_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, _tmp4_, _tmp5_); -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp7_ = _tmp6_; + _tmp4_ = configuration_facade_get_plugin_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, def); #line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _g_object_unref0 (_tmp1_); #line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp7_; + result = _tmp4_; #line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" return result; -#line 412 "StandardHostInterface.c" +#line 453 "StandardHostInterface.c" } -static void plugins_standard_host_interface_real_set_config_int (SpitHostInterface* base, const gchar* key, gint val) { +static void +plugins_standard_host_interface_real_set_config_int (SpitHostInterface* base, + const gchar* key, + gint val) +{ PluginsStandardHostInterface * self; ConfigFacade* _tmp0_; ConfigFacade* _tmp1_; const gchar* _tmp2_; const gchar* _tmp3_; - const gchar* _tmp4_; - gint _tmp5_; #line 59 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); #line 59 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" @@ -433,28 +476,26 @@ static void plugins_standard_host_interface_real_set_config_int (SpitHostInterfa #line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _tmp3_ = self->priv->config_id; #line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = key; -#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp5_ = val; -#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - configuration_facade_set_plugin_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, _tmp4_, _tmp5_); + configuration_facade_set_plugin_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, val); #line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _g_object_unref0 (_tmp1_); -#line 444 "StandardHostInterface.c" +#line 483 "StandardHostInterface.c" } -static gchar* plugins_standard_host_interface_real_get_config_string (SpitHostInterface* base, const gchar* key, const gchar* def) { +static gchar* +plugins_standard_host_interface_real_get_config_string (SpitHostInterface* base, + const gchar* key, + const gchar* def) +{ PluginsStandardHostInterface * self; gchar* result = NULL; ConfigFacade* _tmp0_; ConfigFacade* _tmp1_; const gchar* _tmp2_; const gchar* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; + gchar* _tmp4_; + gchar* _tmp5_; #line 63 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); #line 63 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" @@ -468,31 +509,29 @@ static gchar* plugins_standard_host_interface_real_get_config_string (SpitHostIn #line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _tmp3_ = self->priv->config_id; #line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = key; -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp5_ = def; + _tmp4_ = configuration_facade_get_plugin_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, def); #line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp6_ = configuration_facade_get_plugin_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, _tmp4_, _tmp5_); -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp7_ = _tmp6_; + _tmp5_ = _tmp4_; #line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _g_object_unref0 (_tmp1_); #line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp7_; + result = _tmp5_; #line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" return result; -#line 485 "StandardHostInterface.c" +#line 522 "StandardHostInterface.c" } -static void plugins_standard_host_interface_real_set_config_string (SpitHostInterface* base, const gchar* key, const gchar* val) { +static void +plugins_standard_host_interface_real_set_config_string (SpitHostInterface* base, + const gchar* key, + const gchar* val) +{ PluginsStandardHostInterface * self; ConfigFacade* _tmp0_; ConfigFacade* _tmp1_; const gchar* _tmp2_; const gchar* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp5_; #line 67 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); #line 67 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" @@ -506,28 +545,25 @@ static void plugins_standard_host_interface_real_set_config_string (SpitHostInte #line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _tmp3_ = self->priv->config_id; #line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = key; -#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp5_ = val; -#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - configuration_facade_set_plugin_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, _tmp4_, _tmp5_); + configuration_facade_set_plugin_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, val); #line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _g_object_unref0 (_tmp1_); -#line 517 "StandardHostInterface.c" +#line 552 "StandardHostInterface.c" } -static gdouble plugins_standard_host_interface_real_get_config_double (SpitHostInterface* base, const gchar* key, gdouble def) { +static gdouble +plugins_standard_host_interface_real_get_config_double (SpitHostInterface* base, + const gchar* key, + gdouble def) +{ PluginsStandardHostInterface * self; gdouble result = 0.0; ConfigFacade* _tmp0_; ConfigFacade* _tmp1_; const gchar* _tmp2_; const gchar* _tmp3_; - const gchar* _tmp4_; - gdouble _tmp5_; - gdouble _tmp6_; - gdouble _tmp7_; + gdouble _tmp4_; #line 71 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); #line 71 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" @@ -541,31 +577,27 @@ static gdouble plugins_standard_host_interface_real_get_config_double (SpitHostI #line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _tmp3_ = self->priv->config_id; #line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = key; -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp5_ = def; -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp6_ = configuration_facade_get_plugin_double (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, _tmp4_, _tmp5_); -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp7_ = _tmp6_; + _tmp4_ = configuration_facade_get_plugin_double (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, def); #line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _g_object_unref0 (_tmp1_); #line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp7_; + result = _tmp4_; #line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" return result; -#line 558 "StandardHostInterface.c" +#line 588 "StandardHostInterface.c" } -static void plugins_standard_host_interface_real_set_config_double (SpitHostInterface* base, const gchar* key, gdouble val) { +static void +plugins_standard_host_interface_real_set_config_double (SpitHostInterface* base, + const gchar* key, + gdouble val) +{ PluginsStandardHostInterface * self; ConfigFacade* _tmp0_; ConfigFacade* _tmp1_; const gchar* _tmp2_; const gchar* _tmp3_; - const gchar* _tmp4_; - gdouble _tmp5_; #line 75 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); #line 75 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" @@ -579,24 +611,22 @@ static void plugins_standard_host_interface_real_set_config_double (SpitHostInte #line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _tmp3_ = self->priv->config_id; #line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = key; -#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp5_ = val; -#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - configuration_facade_set_plugin_double (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, _tmp4_, _tmp5_); + configuration_facade_set_plugin_double (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, val); #line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _g_object_unref0 (_tmp1_); -#line 590 "StandardHostInterface.c" +#line 618 "StandardHostInterface.c" } -static void plugins_standard_host_interface_real_unset_config_key (SpitHostInterface* base, const gchar* key) { +static void +plugins_standard_host_interface_real_unset_config_key (SpitHostInterface* base, + const gchar* key) +{ PluginsStandardHostInterface * self; ConfigFacade* _tmp0_; ConfigFacade* _tmp1_; const gchar* _tmp2_; const gchar* _tmp3_; - const gchar* _tmp4_; #line 79 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); #line 79 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" @@ -610,27 +640,29 @@ static void plugins_standard_host_interface_real_unset_config_key (SpitHostInter #line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _tmp3_ = self->priv->config_id; #line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = key; -#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - configuration_facade_unset_plugin_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, _tmp4_); + configuration_facade_unset_plugin_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key); #line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" _g_object_unref0 (_tmp1_); -#line 619 "StandardHostInterface.c" +#line 647 "StandardHostInterface.c" } -static void plugins_standard_host_interface_class_init (PluginsStandardHostInterfaceClass * klass) { +static void +plugins_standard_host_interface_class_init (PluginsStandardHostInterfaceClass * klass) +{ #line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" plugins_standard_host_interface_parent_class = g_type_class_peek_parent (klass); #line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" g_type_class_add_private (klass, sizeof (PluginsStandardHostInterfacePrivate)); #line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" G_OBJECT_CLASS (klass)->finalize = plugins_standard_host_interface_finalize; -#line 630 "StandardHostInterface.c" +#line 660 "StandardHostInterface.c" } -static void plugins_standard_host_interface_spit_host_interface_interface_init (SpitHostInterfaceIface * iface) { +static void +plugins_standard_host_interface_spit_host_interface_interface_init (SpitHostInterfaceIface * iface) +{ #line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" plugins_standard_host_interface_spit_host_interface_parent_iface = g_type_interface_peek_parent (iface); #line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" @@ -653,18 +685,22 @@ static void plugins_standard_host_interface_spit_host_interface_interface_init ( iface->set_config_double = (void (*) (SpitHostInterface *, const gchar*, gdouble)) plugins_standard_host_interface_real_set_config_double; #line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" iface->unset_config_key = (void (*) (SpitHostInterface *, const gchar*)) plugins_standard_host_interface_real_unset_config_key; -#line 657 "StandardHostInterface.c" +#line 689 "StandardHostInterface.c" } -static void plugins_standard_host_interface_instance_init (PluginsStandardHostInterface * self) { +static void +plugins_standard_host_interface_instance_init (PluginsStandardHostInterface * self) +{ #line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" self->priv = PLUGINS_STANDARD_HOST_INTERFACE_GET_PRIVATE (self); -#line 664 "StandardHostInterface.c" +#line 698 "StandardHostInterface.c" } -static void plugins_standard_host_interface_finalize (GObject * obj) { +static void +plugins_standard_host_interface_finalize (GObject * obj) +{ PluginsStandardHostInterface * self; #line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); @@ -678,11 +714,13 @@ static void plugins_standard_host_interface_finalize (GObject * obj) { spit_pluggable_info_destroy (&self->priv->info); #line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" G_OBJECT_CLASS (plugins_standard_host_interface_parent_class)->finalize (obj); -#line 682 "StandardHostInterface.c" +#line 718 "StandardHostInterface.c" } -GType plugins_standard_host_interface_get_type (void) { +GType +plugins_standard_host_interface_get_type (void) +{ static volatile gsize plugins_standard_host_interface_type_id__volatile = 0; if (g_once_init_enter (&plugins_standard_host_interface_type_id__volatile)) { static const GTypeInfo g_define_type_info = { sizeof (PluginsStandardHostInterfaceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_standard_host_interface_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsStandardHostInterface), 0, (GInstanceInitFunc) plugins_standard_host_interface_instance_init, NULL }; -- cgit v1.2.3