diff options
Diffstat (limited to 'src/publishing/Publishing.c')
-rw-r--r-- | src/publishing/Publishing.c | 196 |
1 files changed, 196 insertions, 0 deletions
diff --git a/src/publishing/Publishing.c b/src/publishing/Publishing.c new file mode 100644 index 0000000..fc14775 --- /dev/null +++ b/src/publishing/Publishing.c @@ -0,0 +1,196 @@ +/* Publishing.c generated by valac 0.32.1, the Vala compiler + * generated from Publishing.vala, do not modify */ + +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + */ + +#include <glib.h> +#include <glib-object.h> +#include <stdlib.h> +#include <string.h> +#include "shotwell-plugin-dev-1.0.h" +#include <glib/gi18n-lib.h> + + + + +void publishing_init (GError** error); +static void _vala_array_add51 (gchar*** array, int* length, int* size, gchar* value); +static void _vala_array_add52 (gchar*** array, int* length, int* size, gchar* value); +static void _vala_array_add53 (gchar*** array, int* length, int* size, gchar* value); +static void _vala_array_add54 (gchar*** array, int* length, int* size, gchar* value); +void plugins_register_extension_point (GType type, const gchar* name, const gchar* icon_name, gchar** core_ids, int core_ids_length1); +#define RESOURCES_PUBLISH "applications-internet" +void publishing_terminate (void); +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 void _vala_array_add51 (gchar*** array, int* length, int* size, gchar* value) { +#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + if ((*length) == (*size)) { +#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + *array = g_renew (gchar*, *array, (*size) + 1); +#line 40 "Publishing.c" + } +#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + (*array)[(*length)++] = value; +#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + (*array)[*length] = NULL; +#line 46 "Publishing.c" +} + + +static void _vala_array_add52 (gchar*** array, int* length, int* size, gchar* value) { +#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + if ((*length) == (*size)) { +#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + *array = g_renew (gchar*, *array, (*size) + 1); +#line 57 "Publishing.c" + } +#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + (*array)[(*length)++] = value; +#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + (*array)[*length] = NULL; +#line 63 "Publishing.c" +} + + +static void _vala_array_add53 (gchar*** array, int* length, int* size, gchar* value) { +#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + if ((*length) == (*size)) { +#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + *array = g_renew (gchar*, *array, (*size) + 1); +#line 74 "Publishing.c" + } +#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + (*array)[(*length)++] = value; +#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + (*array)[*length] = NULL; +#line 80 "Publishing.c" +} + + +static void _vala_array_add54 (gchar*** array, int* length, int* size, gchar* value) { +#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + if ((*length) == (*size)) { +#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + *array = g_renew (gchar*, *array, (*size) + 1); +#line 91 "Publishing.c" + } +#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + (*array)[(*length)++] = value; +#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + (*array)[*length] = NULL; +#line 97 "Publishing.c" +} + + +void publishing_init (GError** error) { + gchar** core_ids = NULL; + gchar** _tmp0_ = NULL; + gint core_ids_length1 = 0; + gint _core_ids_size_ = 0; + gchar** _tmp1_ = NULL; + gint _tmp1__length1 = 0; + gchar* _tmp2_ = NULL; + gchar** _tmp3_ = NULL; + gint _tmp3__length1 = 0; + gchar* _tmp4_ = NULL; + gchar** _tmp5_ = NULL; + gint _tmp5__length1 = 0; + gchar* _tmp6_ = NULL; + gchar** _tmp7_ = NULL; + gint _tmp7__length1 = 0; + gchar* _tmp8_ = NULL; + const gchar* _tmp9_ = NULL; + gchar** _tmp10_ = NULL; + gint _tmp10__length1 = 0; +#line 10 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _tmp0_ = g_new0 (gchar*, 0 + 1); +#line 10 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + core_ids = _tmp0_; +#line 10 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + core_ids_length1 = 0; +#line 10 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _core_ids_size_ = core_ids_length1; +#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _tmp1_ = core_ids; +#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _tmp1__length1 = core_ids_length1; +#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _tmp2_ = g_strdup ("org.yorba.shotwell.publishing.facebook"); +#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _vala_array_add51 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp2_); +#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _tmp3_ = core_ids; +#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _tmp3__length1 = core_ids_length1; +#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _tmp4_ = g_strdup ("org.yorba.shotwell.publishing.picasa"); +#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _vala_array_add52 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp4_); +#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _tmp5_ = core_ids; +#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _tmp5__length1 = core_ids_length1; +#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _tmp6_ = g_strdup ("org.yorba.shotwell.publishing.flickr"); +#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _vala_array_add53 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp6_); +#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _tmp7_ = core_ids; +#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _tmp7__length1 = core_ids_length1; +#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _tmp8_ = g_strdup ("org.yorba.shotwell.publishing.youtube"); +#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _vala_array_add54 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp8_); +#line 16 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _tmp9_ = _ ("Publishing"); +#line 16 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _tmp10_ = core_ids; +#line 16 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + _tmp10__length1 = core_ids_length1; +#line 16 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + plugins_register_extension_point (SPIT_PUBLISHING_TYPE_SERVICE, _tmp9_, RESOURCES_PUBLISH, _tmp10_, _tmp10__length1); +#line 9 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" + core_ids = (_vala_array_free (core_ids, core_ids_length1, (GDestroyNotify) g_free), NULL); +#line 171 "Publishing.c" +} + + +void publishing_terminate (void) { +} + + +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); +} + + + |