summaryrefslogtreecommitdiff
path: root/src/slideshow/Slideshow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/slideshow/Slideshow.c')
-rw-r--r--src/slideshow/Slideshow.c205
1 files changed, 153 insertions, 52 deletions
diff --git a/src/slideshow/Slideshow.c b/src/slideshow/Slideshow.c
index c4a2082..63e0bda 100644
--- a/src/slideshow/Slideshow.c
+++ b/src/slideshow/Slideshow.c
@@ -1,4 +1,4 @@
-/* Slideshow.c generated by valac 0.36.6, the Vala compiler
+/* Slideshow.c generated by valac 0.40.4, the Vala compiler
* generated from Slideshow.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 <glib.h>
#include <glib-object.h>
#include <stdlib.h>
@@ -18,196 +19,286 @@
void slideshow_init (GError** error);
-static void _vala_array_add36 (gchar** * array, int* length, int* size, gchar* value);
-static void _vala_array_add37 (gchar** * array, int* length, int* size, gchar* value);
-static void _vala_array_add38 (gchar** * array, int* length, int* size, gchar* value);
-static void _vala_array_add39 (gchar** * array, int* length, int* size, gchar* value);
-static void _vala_array_add40 (gchar** * array, int* length, int* size, gchar* value);
-static void _vala_array_add41 (gchar** * array, int* length, int* size, gchar* value);
-static void _vala_array_add42 (gchar** * array, int* length, int* size, gchar* value);
-static void _vala_array_add43 (gchar** * array, int* length, int* size, gchar* value);
-static void _vala_array_add44 (gchar** * array, int* length, int* size, gchar* value);
-static void _vala_array_add45 (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);
+static void _vala_array_add36 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value);
+static void _vala_array_add37 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value);
+static void _vala_array_add38 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value);
+static void _vala_array_add39 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value);
+static void _vala_array_add40 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value);
+static void _vala_array_add41 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value);
+static void _vala_array_add42 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value);
+static void _vala_array_add43 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value);
+static void _vala_array_add44 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value);
+static void _vala_array_add45 (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_ICON_SLIDESHOW_EXTENSION_POINT "slideshow-extension-point"
void transition_effects_manager_init (void);
void slideshow_terminate (void);
void transition_effects_manager_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_add36 (gchar** * array, int* length, int* size, gchar* value) {
+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_add36 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value)
+{
#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
if ((*length) == (*size)) {
#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
-#line 48 "Slideshow.c"
+#line 92 "Slideshow.c"
}
#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[(*length)++] = value;
#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[*length] = NULL;
-#line 54 "Slideshow.c"
+#line 98 "Slideshow.c"
}
-static void _vala_array_add37 (gchar** * array, int* length, int* size, gchar* value) {
+static void
+_vala_array_add37 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value)
+{
#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
if ((*length) == (*size)) {
#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
-#line 65 "Slideshow.c"
+#line 114 "Slideshow.c"
}
#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[(*length)++] = value;
#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[*length] = NULL;
-#line 71 "Slideshow.c"
+#line 120 "Slideshow.c"
}
-static void _vala_array_add38 (gchar** * array, int* length, int* size, gchar* value) {
+static void
+_vala_array_add38 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value)
+{
#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
if ((*length) == (*size)) {
#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
-#line 82 "Slideshow.c"
+#line 136 "Slideshow.c"
}
#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[(*length)++] = value;
#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[*length] = NULL;
-#line 88 "Slideshow.c"
+#line 142 "Slideshow.c"
}
-static void _vala_array_add39 (gchar** * array, int* length, int* size, gchar* value) {
+static void
+_vala_array_add39 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value)
+{
#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
if ((*length) == (*size)) {
#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
-#line 99 "Slideshow.c"
+#line 158 "Slideshow.c"
}
#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[(*length)++] = value;
#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[*length] = NULL;
-#line 105 "Slideshow.c"
+#line 164 "Slideshow.c"
}
-static void _vala_array_add40 (gchar** * array, int* length, int* size, gchar* value) {
+static void
+_vala_array_add40 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value)
+{
#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
if ((*length) == (*size)) {
#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
-#line 116 "Slideshow.c"
+#line 180 "Slideshow.c"
}
#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[(*length)++] = value;
#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[*length] = NULL;
-#line 122 "Slideshow.c"
+#line 186 "Slideshow.c"
}
-static void _vala_array_add41 (gchar** * array, int* length, int* size, gchar* value) {
+static void
+_vala_array_add41 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value)
+{
#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
if ((*length) == (*size)) {
#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
-#line 133 "Slideshow.c"
+#line 202 "Slideshow.c"
}
#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[(*length)++] = value;
#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[*length] = NULL;
-#line 139 "Slideshow.c"
+#line 208 "Slideshow.c"
}
-static void _vala_array_add42 (gchar** * array, int* length, int* size, gchar* value) {
+static void
+_vala_array_add42 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value)
+{
#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
if ((*length) == (*size)) {
#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
-#line 150 "Slideshow.c"
+#line 224 "Slideshow.c"
}
#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[(*length)++] = value;
#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[*length] = NULL;
-#line 156 "Slideshow.c"
+#line 230 "Slideshow.c"
}
-static void _vala_array_add43 (gchar** * array, int* length, int* size, gchar* value) {
+static void
+_vala_array_add43 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value)
+{
#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
if ((*length) == (*size)) {
#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
-#line 167 "Slideshow.c"
+#line 246 "Slideshow.c"
}
#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[(*length)++] = value;
#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[*length] = NULL;
-#line 173 "Slideshow.c"
+#line 252 "Slideshow.c"
}
-static void _vala_array_add44 (gchar** * array, int* length, int* size, gchar* value) {
+static void
+_vala_array_add44 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value)
+{
#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
if ((*length) == (*size)) {
#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
-#line 184 "Slideshow.c"
+#line 268 "Slideshow.c"
}
#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[(*length)++] = value;
#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[*length] = NULL;
-#line 190 "Slideshow.c"
+#line 274 "Slideshow.c"
}
-static void _vala_array_add45 (gchar** * array, int* length, int* size, gchar* value) {
+static void
+_vala_array_add45 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value)
+{
#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
if ((*length) == (*size)) {
#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
-#line 201 "Slideshow.c"
+#line 290 "Slideshow.c"
}
#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[(*length)++] = value;
#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
(*array)[*length] = NULL;
-#line 207 "Slideshow.c"
+#line 296 "Slideshow.c"
}
-void slideshow_init (GError** error) {
+void
+slideshow_init (GError** error)
+{
gchar** core_ids = NULL;
gchar** _tmp0_;
gint core_ids_length1;
@@ -342,18 +433,24 @@ void slideshow_init (GError** error) {
transition_effects_manager_init ();
#line 9 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
core_ids = (_vala_array_free (core_ids, core_ids_length1, (GDestroyNotify) g_free), NULL);
-#line 346 "Slideshow.c"
+#line 437 "Slideshow.c"
}
-void slideshow_terminate (void) {
+void
+slideshow_terminate (void)
+{
#line 28 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala"
transition_effects_manager_terminate ();
-#line 353 "Slideshow.c"
+#line 446 "Slideshow.c"
}
-static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+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) {
@@ -365,7 +462,11 @@ static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNoti
}
-static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+static void
+_vala_array_free (gpointer array,
+ gint array_length,
+ GDestroyNotify destroy_func)
+{
_vala_array_destroy (array, array_length, destroy_func);
g_free (array);
}