summaryrefslogtreecommitdiff
path: root/src/threads/BackgroundJob.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-07-09 12:10:38 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-07-09 12:10:38 +0200
commit709e2d6f5652ec90c194a4ec2b530bebc6f952cb (patch)
tree496b2f3899e1d5728ee9ae76095cc5056c317447 /src/threads/BackgroundJob.c
parentf1353e9ffd34db5f755c7da0b3f9c10638fbfd38 (diff)
parent5c8be07095cc04a6d8a95204b0504fd7ab030154 (diff)
Merge branch 'release/0.28.3-1'0.28.3-1
Diffstat (limited to 'src/threads/BackgroundJob.c')
-rw-r--r--src/threads/BackgroundJob.c1071
1 files changed, 622 insertions, 449 deletions
diff --git a/src/threads/BackgroundJob.c b/src/threads/BackgroundJob.c
index f2ba99a..1de262e 100644
--- a/src/threads/BackgroundJob.c
+++ b/src/threads/BackgroundJob.c
@@ -1,4 +1,4 @@
-/* BackgroundJob.c generated by valac 0.36.6, the Vala compiler
+/* BackgroundJob.c generated by valac 0.40.4, the Vala compiler
* generated from BackgroundJob.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -9,6 +9,7 @@
/* This callback is executed when an associated BackgroundJob completes. It is called from within*/
/* the Gtk event loop, *not* the background thread's context.*/
+
#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
@@ -193,36 +194,48 @@ static gpointer background_job_notification_job_parent_class = NULL;
gpointer background_job_ref (gpointer instance);
void background_job_unref (gpointer instance);
-GParamSpec* param_spec_background_job (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_background_job (GValue* value, gpointer v_object);
-void value_take_background_job (GValue* value, gpointer v_object);
+GParamSpec* param_spec_background_job (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_background_job (GValue* value,
+ gpointer v_object);
+void value_take_background_job (GValue* value,
+ gpointer v_object);
gpointer value_get_background_job (const GValue* value);
GType background_job_get_type (void) G_GNUC_CONST;
gpointer notification_object_ref (gpointer instance);
void notification_object_unref (gpointer instance);
-GParamSpec* param_spec_notification_object (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_notification_object (GValue* value, gpointer v_object);
-void value_take_notification_object (GValue* value, gpointer v_object);
+GParamSpec* param_spec_notification_object (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_notification_object (GValue* value,
+ gpointer v_object);
+void value_take_notification_object (GValue* value,
+ gpointer v_object);
gpointer value_get_notification_object (const GValue* value);
GType notification_object_get_type (void) G_GNUC_CONST;
-enum {
- NOTIFICATION_OBJECT_DUMMY_PROPERTY
-};
NotificationObject* notification_object_construct (GType object_type);
static void notification_object_finalize (NotificationObject * obj);
GType interlocked_notification_object_get_type (void) G_GNUC_CONST;
gpointer abstract_semaphore_ref (gpointer instance);
void abstract_semaphore_unref (gpointer instance);
-GParamSpec* param_spec_abstract_semaphore (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_abstract_semaphore (GValue* value, gpointer v_object);
-void value_take_abstract_semaphore (GValue* value, gpointer v_object);
+GParamSpec* param_spec_abstract_semaphore (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_abstract_semaphore (GValue* value,
+ gpointer v_object);
+void value_take_abstract_semaphore (GValue* value,
+ gpointer v_object);
gpointer value_get_abstract_semaphore (const GValue* value);
GType abstract_semaphore_get_type (void) G_GNUC_CONST;
GType semaphore_get_type (void) G_GNUC_CONST;
#define INTERLOCKED_NOTIFICATION_OBJECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObjectPrivate))
-enum {
- INTERLOCKED_NOTIFICATION_OBJECT_DUMMY_PROPERTY
-};
Semaphore* semaphore_new (void);
Semaphore* semaphore_construct (GType object_type);
void interlocked_notification_object_internal_wait_for_completion (InterlockedNotificationObject* self);
@@ -233,27 +246,43 @@ InterlockedNotificationObject* interlocked_notification_object_construct (GType
static void interlocked_notification_object_finalize (NotificationObject * obj);
GType background_job_job_priority_get_type (void) G_GNUC_CONST;
#define BACKGROUND_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_BACKGROUND_JOB, BackgroundJobPrivate))
-enum {
- BACKGROUND_JOB_DUMMY_PROPERTY
-};
-gint background_job_job_priority_compare (BackgroundJobJobPriority self, BackgroundJobJobPriority other);
-gint background_job_job_priority_compare_func (BackgroundJobJobPriority a, BackgroundJobJobPriority b);
+gint background_job_job_priority_compare (BackgroundJobJobPriority self,
+ BackgroundJobJobPriority other);
+gint background_job_job_priority_compare_func (BackgroundJobJobPriority a,
+ BackgroundJobJobPriority b);
static gpointer background_job_notification_job_ref (gpointer instance);
static void background_job_notification_job_unref (gpointer instance);
-static GParamSpec* background_job_param_spec_notification_job (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) G_GNUC_UNUSED;
-static void background_job_value_set_notification_job (GValue* value, gpointer v_object) G_GNUC_UNUSED;
-static void background_job_value_take_notification_job (GValue* value, gpointer v_object) G_GNUC_UNUSED;
+static GParamSpec* background_job_param_spec_notification_job (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags) G_GNUC_UNUSED;
+static void background_job_value_set_notification_job (GValue* value,
+ gpointer v_object) G_GNUC_UNUSED;
+static void background_job_value_take_notification_job (GValue* value,
+ gpointer v_object) G_GNUC_UNUSED;
static gpointer background_job_value_get_notification_job (const GValue* value) G_GNUC_UNUSED;
static GType background_job_notification_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
-BackgroundJob* background_job_construct (GType object_type, GObject* owner, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target, AbstractSemaphore* completion_semaphore);
+BackgroundJob* background_job_construct (GType object_type,
+ GObject* owner,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target,
+ AbstractSemaphore* completion_semaphore);
void background_job_execute (BackgroundJob* self);
static void background_job_real_execute (BackgroundJob* self);
BackgroundJobJobPriority background_job_get_priority (BackgroundJob* self);
static BackgroundJobJobPriority background_job_real_get_priority (BackgroundJob* self);
-gint background_job_priority_compare_func (BackgroundJob* a, BackgroundJob* b);
-gint64 background_job_priority_comparator (void* a, void* b);
-void background_job_set_completion_priority (BackgroundJob* self, gint priority);
-void background_job_set_notification_priority (BackgroundJob* self, gint priority);
+gint background_job_priority_compare_func (BackgroundJob* a,
+ BackgroundJob* b);
+gint64 background_job_priority_comparator (void* a,
+ void* b);
+void background_job_set_completion_priority (BackgroundJob* self,
+ gint priority);
+void background_job_set_notification_priority (BackgroundJob* self,
+ gint priority);
void background_job_wait_for_completion (BackgroundJob* self);
GCancellable* background_job_get_cancellable (BackgroundJob* self);
gboolean background_job_is_cancelled (BackgroundJob* self);
@@ -261,126 +290,160 @@ void background_job_cancel (BackgroundJob* self);
void background_job_internal_notify_completion (BackgroundJob* self);
static gboolean background_job_on_notify_completion (BackgroundJob* self);
static gboolean _background_job_on_notify_completion_gsource_func (gpointer self);
-void background_job_notify (BackgroundJob* self, NotificationCallback callback, void* callback_target, NotificationObject* user);
-static BackgroundJobNotificationJob* background_job_notification_job_new (NotificationCallback callback, void* callback_target, BackgroundJob* background_job, NotificationObject* user);
-static BackgroundJobNotificationJob* background_job_notification_job_construct (GType object_type, NotificationCallback callback, void* callback_target, BackgroundJob* background_job, NotificationObject* user);
+void background_job_notify (BackgroundJob* self,
+ NotificationCallback callback,
+ void* callback_target,
+ NotificationObject* user);
+static BackgroundJobNotificationJob* background_job_notification_job_new (NotificationCallback callback,
+ void* callback_target,
+ BackgroundJob* background_job,
+ NotificationObject* user);
+static BackgroundJobNotificationJob* background_job_notification_job_construct (GType object_type,
+ NotificationCallback callback,
+ void* callback_target,
+ BackgroundJob* background_job,
+ NotificationObject* user);
static gboolean background_job_on_notification_ready (BackgroundJob* self);
static gboolean _background_job_on_notification_ready_gsource_func (gpointer self);
-enum {
- BACKGROUND_JOB_NOTIFICATION_JOB_DUMMY_PROPERTY
-};
static void background_job_notification_job_finalize (BackgroundJobNotificationJob * obj);
static void background_job_finalize (BackgroundJob * obj);
-NotificationObject* notification_object_construct (GType object_type) {
+NotificationObject*
+notification_object_construct (GType object_type)
+{
NotificationObject* self = NULL;
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
self = (NotificationObject*) g_type_create_instance (object_type);
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return self;
-#line 283 "BackgroundJob.c"
+#line 321 "BackgroundJob.c"
}
-static void value_notification_object_init (GValue* value) {
+static void
+value_notification_object_init (GValue* value)
+{
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 290 "BackgroundJob.c"
+#line 330 "BackgroundJob.c"
}
-static void value_notification_object_free_value (GValue* value) {
+static void
+value_notification_object_free_value (GValue* value)
+{
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (value->data[0].v_pointer) {
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
notification_object_unref (value->data[0].v_pointer);
-#line 299 "BackgroundJob.c"
+#line 341 "BackgroundJob.c"
}
}
-static void value_notification_object_copy_value (const GValue* src_value, GValue* dest_value) {
+static void
+value_notification_object_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (src_value->data[0].v_pointer) {
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
dest_value->data[0].v_pointer = notification_object_ref (src_value->data[0].v_pointer);
-#line 309 "BackgroundJob.c"
+#line 354 "BackgroundJob.c"
} else {
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
dest_value->data[0].v_pointer = NULL;
-#line 313 "BackgroundJob.c"
+#line 358 "BackgroundJob.c"
}
}
-static gpointer value_notification_object_peek_pointer (const GValue* value) {
+static gpointer
+value_notification_object_peek_pointer (const GValue* value)
+{
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return value->data[0].v_pointer;
-#line 321 "BackgroundJob.c"
+#line 368 "BackgroundJob.c"
}
-static gchar* value_notification_object_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_notification_object_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (collect_values[0].v_pointer) {
-#line 328 "BackgroundJob.c"
+#line 380 "BackgroundJob.c"
NotificationObject * object;
object = collect_values[0].v_pointer;
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (object->parent_instance.g_class == NULL) {
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 335 "BackgroundJob.c"
+#line 387 "BackgroundJob.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.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 339 "BackgroundJob.c"
+#line 391 "BackgroundJob.c"
}
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = notification_object_ref (object);
-#line 343 "BackgroundJob.c"
+#line 395 "BackgroundJob.c"
} else {
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 347 "BackgroundJob.c"
+#line 399 "BackgroundJob.c"
}
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return NULL;
-#line 351 "BackgroundJob.c"
+#line 403 "BackgroundJob.c"
}
-static gchar* value_notification_object_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_notification_object_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
NotificationObject ** object_p;
object_p = collect_values[0].v_pointer;
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (!object_p) {
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 362 "BackgroundJob.c"
+#line 419 "BackgroundJob.c"
}
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (!value->data[0].v_pointer) {
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
*object_p = NULL;
-#line 368 "BackgroundJob.c"
+#line 425 "BackgroundJob.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
*object_p = value->data[0].v_pointer;
-#line 372 "BackgroundJob.c"
+#line 429 "BackgroundJob.c"
} else {
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
*object_p = notification_object_ref (value->data[0].v_pointer);
-#line 376 "BackgroundJob.c"
+#line 433 "BackgroundJob.c"
}
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return NULL;
-#line 380 "BackgroundJob.c"
+#line 437 "BackgroundJob.c"
}
-GParamSpec* param_spec_notification_object (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_notification_object (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecNotificationObject* spec;
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_NOTIFICATION_OBJECT), NULL);
@@ -390,20 +453,25 @@ GParamSpec* param_spec_notification_object (const gchar* name, const gchar* nick
G_PARAM_SPEC (spec)->value_type = object_type;
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return G_PARAM_SPEC (spec);
-#line 394 "BackgroundJob.c"
+#line 457 "BackgroundJob.c"
}
-gpointer value_get_notification_object (const GValue* value) {
+gpointer
+value_get_notification_object (const GValue* value)
+{
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_NOTIFICATION_OBJECT), NULL);
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return value->data[0].v_pointer;
-#line 403 "BackgroundJob.c"
+#line 468 "BackgroundJob.c"
}
-void value_set_notification_object (GValue* value, gpointer v_object) {
+void
+value_set_notification_object (GValue* value,
+ gpointer v_object)
+{
NotificationObject * old;
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_NOTIFICATION_OBJECT));
@@ -419,22 +487,25 @@ void value_set_notification_object (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
notification_object_ref (value->data[0].v_pointer);
-#line 423 "BackgroundJob.c"
+#line 491 "BackgroundJob.c"
} else {
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 427 "BackgroundJob.c"
+#line 495 "BackgroundJob.c"
}
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (old) {
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
notification_object_unref (old);
-#line 433 "BackgroundJob.c"
+#line 501 "BackgroundJob.c"
}
}
-void value_take_notification_object (GValue* value, gpointer v_object) {
+void
+value_take_notification_object (GValue* value,
+ gpointer v_object)
+{
NotificationObject * old;
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_NOTIFICATION_OBJECT));
@@ -448,48 +519,56 @@ void value_take_notification_object (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = v_object;
-#line 452 "BackgroundJob.c"
+#line 523 "BackgroundJob.c"
} else {
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 456 "BackgroundJob.c"
+#line 527 "BackgroundJob.c"
}
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (old) {
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
notification_object_unref (old);
-#line 462 "BackgroundJob.c"
+#line 533 "BackgroundJob.c"
}
}
-static void notification_object_class_init (NotificationObjectClass * klass) {
+static void
+notification_object_class_init (NotificationObjectClass * klass)
+{
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
notification_object_parent_class = g_type_class_peek_parent (klass);
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
((NotificationObjectClass *) klass)->finalize = notification_object_finalize;
-#line 472 "BackgroundJob.c"
+#line 545 "BackgroundJob.c"
}
-static void notification_object_instance_init (NotificationObject * self) {
+static void
+notification_object_instance_init (NotificationObject * self)
+{
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
self->ref_count = 1;
-#line 479 "BackgroundJob.c"
+#line 554 "BackgroundJob.c"
}
-static void notification_object_finalize (NotificationObject * obj) {
+static void
+notification_object_finalize (NotificationObject * obj)
+{
NotificationObject * self;
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NOTIFICATION_OBJECT, NotificationObject);
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_signal_handlers_destroy (self);
-#line 489 "BackgroundJob.c"
+#line 566 "BackgroundJob.c"
}
-GType notification_object_get_type (void) {
+GType
+notification_object_get_type (void)
+{
static volatile gsize notification_object_type_id__volatile = 0;
if (g_once_init_enter (&notification_object_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_notification_object_init, value_notification_object_free_value, value_notification_object_copy_value, value_notification_object_peek_pointer, "p", value_notification_object_collect_value, "p", value_notification_object_lcopy_value };
@@ -503,18 +582,22 @@ GType notification_object_get_type (void) {
}
-gpointer notification_object_ref (gpointer instance) {
+gpointer
+notification_object_ref (gpointer instance)
+{
NotificationObject * self;
self = instance;
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_atomic_int_inc (&self->ref_count);
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return instance;
-#line 514 "BackgroundJob.c"
+#line 595 "BackgroundJob.c"
}
-void notification_object_unref (gpointer instance) {
+void
+notification_object_unref (gpointer instance)
+{
NotificationObject * self;
self = instance;
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -523,12 +606,14 @@ void notification_object_unref (gpointer instance) {
NOTIFICATION_OBJECT_GET_CLASS (self)->finalize (self);
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 527 "BackgroundJob.c"
+#line 610 "BackgroundJob.c"
}
}
-void interlocked_notification_object_internal_wait_for_completion (InterlockedNotificationObject* self) {
+void
+interlocked_notification_object_internal_wait_for_completion (InterlockedNotificationObject* self)
+{
Semaphore* _tmp0_;
#line 41 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (IS_INTERLOCKED_NOTIFICATION_OBJECT (self));
@@ -536,11 +621,13 @@ void interlocked_notification_object_internal_wait_for_completion (InterlockedNo
_tmp0_ = self->priv->semaphore;
#line 42 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
abstract_semaphore_wait (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore));
-#line 540 "BackgroundJob.c"
+#line 625 "BackgroundJob.c"
}
-void interlocked_notification_object_internal_completed (InterlockedNotificationObject* self) {
+void
+interlocked_notification_object_internal_completed (InterlockedNotificationObject* self)
+{
Semaphore* _tmp0_;
#line 46 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (IS_INTERLOCKED_NOTIFICATION_OBJECT (self));
@@ -548,32 +635,38 @@ void interlocked_notification_object_internal_completed (InterlockedNotification
_tmp0_ = self->priv->semaphore;
#line 47 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
abstract_semaphore_notify (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore));
-#line 552 "BackgroundJob.c"
+#line 639 "BackgroundJob.c"
}
-InterlockedNotificationObject* interlocked_notification_object_construct (GType object_type) {
+InterlockedNotificationObject*
+interlocked_notification_object_construct (GType object_type)
+{
InterlockedNotificationObject* self = NULL;
#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
self = (InterlockedNotificationObject*) notification_object_construct (object_type);
#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return self;
-#line 562 "BackgroundJob.c"
+#line 651 "BackgroundJob.c"
}
-static void interlocked_notification_object_class_init (InterlockedNotificationObjectClass * klass) {
+static void
+interlocked_notification_object_class_init (InterlockedNotificationObjectClass * klass)
+{
#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
interlocked_notification_object_parent_class = g_type_class_peek_parent (klass);
#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
((NotificationObjectClass *) klass)->finalize = interlocked_notification_object_finalize;
#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_type_class_add_private (klass, sizeof (InterlockedNotificationObjectPrivate));
-#line 573 "BackgroundJob.c"
+#line 664 "BackgroundJob.c"
}
-static void interlocked_notification_object_instance_init (InterlockedNotificationObject * self) {
+static void
+interlocked_notification_object_instance_init (InterlockedNotificationObject * self)
+{
Semaphore* _tmp0_;
#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
self->priv = INTERLOCKED_NOTIFICATION_OBJECT_GET_PRIVATE (self);
@@ -581,11 +674,13 @@ static void interlocked_notification_object_instance_init (InterlockedNotificati
_tmp0_ = semaphore_new ();
#line 38 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
self->priv->semaphore = _tmp0_;
-#line 585 "BackgroundJob.c"
+#line 678 "BackgroundJob.c"
}
-static void interlocked_notification_object_finalize (NotificationObject * obj) {
+static void
+interlocked_notification_object_finalize (NotificationObject * obj)
+{
InterlockedNotificationObject * self;
#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObject);
@@ -593,11 +688,13 @@ static void interlocked_notification_object_finalize (NotificationObject * obj)
_abstract_semaphore_unref0 (self->priv->semaphore);
#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
NOTIFICATION_OBJECT_CLASS (interlocked_notification_object_parent_class)->finalize (obj);
-#line 597 "BackgroundJob.c"
+#line 692 "BackgroundJob.c"
}
-GType interlocked_notification_object_get_type (void) {
+GType
+interlocked_notification_object_get_type (void)
+{
static volatile gsize interlocked_notification_object_type_id__volatile = 0;
if (g_once_init_enter (&interlocked_notification_object_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (InterlockedNotificationObjectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) interlocked_notification_object_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (InterlockedNotificationObject), 0, (GInstanceInitFunc) interlocked_notification_object_instance_init, NULL };
@@ -609,36 +706,35 @@ GType interlocked_notification_object_get_type (void) {
}
-gint background_job_job_priority_compare (BackgroundJobJobPriority self, BackgroundJobJobPriority other) {
+gint
+background_job_job_priority_compare (BackgroundJobJobPriority self,
+ BackgroundJobJobPriority other)
+{
gint result = 0;
- BackgroundJobJobPriority _tmp0_;
-#line 75 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = other;
#line 75 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- result = ((gint) _tmp0_) - ((gint) self);
+ result = ((gint) other) - ((gint) self);
#line 75 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return result;
-#line 622 "BackgroundJob.c"
+#line 719 "BackgroundJob.c"
}
-gint background_job_job_priority_compare_func (BackgroundJobJobPriority a, BackgroundJobJobPriority b) {
+gint
+background_job_job_priority_compare_func (BackgroundJobJobPriority a,
+ BackgroundJobJobPriority b)
+{
gint result = 0;
- BackgroundJobJobPriority _tmp0_;
- BackgroundJobJobPriority _tmp1_;
-#line 79 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = b;
#line 79 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ = a;
-#line 79 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- result = ((gint) _tmp0_) - ((gint) _tmp1_);
+ result = ((gint) b) - ((gint) a);
#line 79 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return result;
-#line 638 "BackgroundJob.c"
+#line 732 "BackgroundJob.c"
}
-GType background_job_job_priority_get_type (void) {
+GType
+background_job_job_priority_get_type (void)
+{
static volatile gsize background_job_job_priority_type_id__volatile = 0;
if (g_once_init_enter (&background_job_job_priority_type_id__volatile)) {
static const GEnumValue values[] = {{BACKGROUND_JOB_JOB_PRIORITY_HIGHEST, "BACKGROUND_JOB_JOB_PRIORITY_HIGHEST", "highest"}, {BACKGROUND_JOB_JOB_PRIORITY_HIGH, "BACKGROUND_JOB_JOB_PRIORITY_HIGH", "high"}, {BACKGROUND_JOB_JOB_PRIORITY_NORMAL, "BACKGROUND_JOB_JOB_PRIORITY_NORMAL", "normal"}, {BACKGROUND_JOB_JOB_PRIORITY_LOW, "BACKGROUND_JOB_JOB_PRIORITY_LOW", "low"}, {BACKGROUND_JOB_JOB_PRIORITY_LOWEST, "BACKGROUND_JOB_JOB_PRIORITY_LOWEST", "lowest"}, {0, NULL, NULL}};
@@ -650,32 +746,38 @@ GType background_job_job_priority_get_type (void) {
}
-static gpointer _g_object_ref0 (gpointer self) {
+static gpointer
+_g_object_ref0 (gpointer self)
+{
#line 116 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return self ? g_object_ref (self) : NULL;
-#line 657 "BackgroundJob.c"
+#line 755 "BackgroundJob.c"
}
-static gpointer _abstract_semaphore_ref0 (gpointer self) {
+static gpointer
+_abstract_semaphore_ref0 (gpointer self)
+{
#line 120 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return self ? abstract_semaphore_ref (self) : NULL;
-#line 664 "BackgroundJob.c"
+#line 764 "BackgroundJob.c"
}
-BackgroundJob* background_job_construct (GType object_type, GObject* owner, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target, AbstractSemaphore* completion_semaphore) {
+BackgroundJob*
+background_job_construct (GType object_type,
+ GObject* owner,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target,
+ AbstractSemaphore* completion_semaphore)
+{
BackgroundJob* self = NULL;
GObject* _tmp0_;
- GObject* _tmp1_;
- CompletionCallback _tmp2_;
- void* _tmp2__target;
- GCancellable* _tmp3_;
- GCancellable* _tmp4_;
- CancellationCallback _tmp5_;
- void* _tmp5__target;
- AbstractSemaphore* _tmp6_;
- AbstractSemaphore* _tmp7_;
+ GCancellable* _tmp1_;
+ AbstractSemaphore* _tmp2_;
#line 113 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_val_if_fail ((owner == NULL) || G_IS_OBJECT (owner), NULL);
#line 113 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -685,161 +787,139 @@ BackgroundJob* background_job_construct (GType object_type, GObject* owner, Comp
#line 113 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
self = (BackgroundJob*) g_type_create_instance (object_type);
#line 116 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = owner;
-#line 116 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
+ _tmp0_ = _g_object_ref0 (owner);
#line 116 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_g_object_unref0 (self->priv->owner);
#line 116 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->owner = _tmp1_;
-#line 117 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2_ = callback;
+ self->priv->owner = _tmp0_;
#line 117 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2__target = callback_target;
+ self->priv->callback = callback;
#line 117 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->callback = _tmp2_;
-#line 117 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->callback_target = _tmp2__target;
-#line 118 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp3_ = cancellable;
+ self->priv->callback_target = callback_target;
#line 118 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp4_ = _g_object_ref0 (_tmp3_);
+ _tmp1_ = _g_object_ref0 (cancellable);
#line 118 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_g_object_unref0 (self->priv->cancellable);
#line 118 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->cancellable = _tmp4_;
-#line 119 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp5_ = cancellation;
-#line 119 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp5__target = cancellation_target;
+ self->priv->cancellable = _tmp1_;
#line 119 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->cancellation = _tmp5_;
+ self->priv->cancellation = cancellation;
#line 119 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->cancellation_target = _tmp5__target;
+ self->priv->cancellation_target = cancellation_target;
#line 120 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp6_ = completion_semaphore;
-#line 120 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp7_ = _abstract_semaphore_ref0 (_tmp6_);
+ _tmp2_ = _abstract_semaphore_ref0 (completion_semaphore);
#line 120 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_abstract_semaphore_unref0 (self->priv->semaphore);
#line 120 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->semaphore = _tmp7_;
+ self->priv->semaphore = _tmp2_;
#line 113 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return self;
-#line 730 "BackgroundJob.c"
+#line 818 "BackgroundJob.c"
}
-static void background_job_real_execute (BackgroundJob* self) {
+static void
+background_job_real_execute (BackgroundJob* self)
+{
#line 123 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_critical ("Type `%s' does not implement abstract method `background_job_execute'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 123 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return;
-#line 739 "BackgroundJob.c"
+#line 829 "BackgroundJob.c"
}
-void background_job_execute (BackgroundJob* self) {
+void
+background_job_execute (BackgroundJob* self)
+{
#line 123 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (IS_BACKGROUND_JOB (self));
#line 123 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
BACKGROUND_JOB_GET_CLASS (self)->execute (self);
-#line 748 "BackgroundJob.c"
+#line 840 "BackgroundJob.c"
}
-static BackgroundJobJobPriority background_job_real_get_priority (BackgroundJob* self) {
+static BackgroundJobJobPriority
+background_job_real_get_priority (BackgroundJob* self)
+{
BackgroundJobJobPriority result = 0;
#line 126 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
result = BACKGROUND_JOB_JOB_PRIORITY_NORMAL;
#line 126 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return result;
-#line 758 "BackgroundJob.c"
+#line 852 "BackgroundJob.c"
}
-BackgroundJobJobPriority background_job_get_priority (BackgroundJob* self) {
+BackgroundJobJobPriority
+background_job_get_priority (BackgroundJob* self)
+{
#line 125 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_val_if_fail (IS_BACKGROUND_JOB (self), 0);
#line 125 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return BACKGROUND_JOB_GET_CLASS (self)->get_priority (self);
-#line 767 "BackgroundJob.c"
+#line 863 "BackgroundJob.c"
}
-gint background_job_priority_compare_func (BackgroundJob* a, BackgroundJob* b) {
+gint
+background_job_priority_compare_func (BackgroundJob* a,
+ BackgroundJob* b)
+{
gint result = 0;
- BackgroundJob* _tmp0_;
- BackgroundJobJobPriority _tmp1_;
- BackgroundJob* _tmp2_;
- BackgroundJobJobPriority _tmp3_;
- gint _tmp4_;
#line 130 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_val_if_fail (IS_BACKGROUND_JOB (a), 0);
#line 130 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_val_if_fail (IS_BACKGROUND_JOB (b), 0);
#line 131 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = a;
-#line 131 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ = background_job_get_priority (_tmp0_);
-#line 131 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2_ = b;
-#line 131 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp3_ = background_job_get_priority (_tmp2_);
-#line 131 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp4_ = background_job_job_priority_compare (_tmp1_, _tmp3_);
-#line 131 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- result = _tmp4_;
+ result = background_job_job_priority_compare (background_job_get_priority (a), background_job_get_priority (b));
#line 131 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return result;
-#line 796 "BackgroundJob.c"
+#line 880 "BackgroundJob.c"
}
-gint64 background_job_priority_comparator (void* a, void* b) {
+gint64
+background_job_priority_comparator (void* a,
+ void* b)
+{
gint64 result = 0LL;
- void* _tmp0_;
- void* _tmp1_;
- gint _tmp2_;
-#line 136 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = a;
-#line 136 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ = b;
#line 136 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2_ = background_job_priority_compare_func (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_BACKGROUND_JOB, BackgroundJob), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 136 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- result = (gint64) _tmp2_;
+ result = (gint64) background_job_priority_compare_func (G_TYPE_CHECK_INSTANCE_CAST (a, TYPE_BACKGROUND_JOB, BackgroundJob), G_TYPE_CHECK_INSTANCE_CAST (b, TYPE_BACKGROUND_JOB, BackgroundJob));
#line 136 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return result;
-#line 815 "BackgroundJob.c"
+#line 893 "BackgroundJob.c"
}
-void background_job_set_completion_priority (BackgroundJob* self, gint priority) {
- gint _tmp0_;
+void
+background_job_set_completion_priority (BackgroundJob* self,
+ gint priority)
+{
#line 140 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (IS_BACKGROUND_JOB (self));
#line 141 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = priority;
-#line 141 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->completion_priority = _tmp0_;
-#line 827 "BackgroundJob.c"
+ self->priv->completion_priority = priority;
+#line 905 "BackgroundJob.c"
}
-void background_job_set_notification_priority (BackgroundJob* self, gint priority) {
- gint _tmp0_;
+void
+background_job_set_notification_priority (BackgroundJob* self,
+ gint priority)
+{
#line 145 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (IS_BACKGROUND_JOB (self));
#line 146 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = priority;
-#line 146 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->notification_priority = _tmp0_;
-#line 839 "BackgroundJob.c"
+ self->priv->notification_priority = priority;
+#line 917 "BackgroundJob.c"
}
-void background_job_wait_for_completion (BackgroundJob* self) {
+void
+background_job_wait_for_completion (BackgroundJob* self)
+{
AbstractSemaphore* _tmp0_;
#line 152 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (IS_BACKGROUND_JOB (self));
@@ -847,18 +927,20 @@ void background_job_wait_for_completion (BackgroundJob* self) {
_tmp0_ = self->priv->semaphore;
#line 153 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp0_ != NULL) {
-#line 851 "BackgroundJob.c"
+#line 931 "BackgroundJob.c"
AbstractSemaphore* _tmp1_;
#line 154 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp1_ = self->priv->semaphore;
#line 154 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
abstract_semaphore_wait (_tmp1_);
-#line 857 "BackgroundJob.c"
+#line 937 "BackgroundJob.c"
}
}
-GCancellable* background_job_get_cancellable (BackgroundJob* self) {
+GCancellable*
+background_job_get_cancellable (BackgroundJob* self)
+{
GCancellable* result = NULL;
GCancellable* _tmp0_;
GCancellable* _tmp1_;
@@ -872,11 +954,13 @@ GCancellable* background_job_get_cancellable (BackgroundJob* self) {
result = _tmp1_;
#line 158 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return result;
-#line 876 "BackgroundJob.c"
+#line 958 "BackgroundJob.c"
}
-gboolean background_job_is_cancelled (BackgroundJob* self) {
+gboolean
+background_job_is_cancelled (BackgroundJob* self)
+{
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
GCancellable* _tmp1_;
@@ -886,30 +970,29 @@ gboolean background_job_is_cancelled (BackgroundJob* self) {
_tmp1_ = self->priv->cancellable;
#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp1_ != NULL) {
-#line 890 "BackgroundJob.c"
+#line 974 "BackgroundJob.c"
GCancellable* _tmp2_;
- gboolean _tmp3_;
#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp2_ = self->priv->cancellable;
#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp3_ = g_cancellable_is_cancelled (_tmp2_);
-#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = _tmp3_;
-#line 899 "BackgroundJob.c"
+ _tmp0_ = g_cancellable_is_cancelled (_tmp2_);
+#line 980 "BackgroundJob.c"
} else {
#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp0_ = FALSE;
-#line 903 "BackgroundJob.c"
+#line 984 "BackgroundJob.c"
}
#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
result = _tmp0_;
#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return result;
-#line 909 "BackgroundJob.c"
+#line 990 "BackgroundJob.c"
}
-void background_job_cancel (BackgroundJob* self) {
+void
+background_job_cancel (BackgroundJob* self)
+{
GCancellable* _tmp0_;
#line 165 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (IS_BACKGROUND_JOB (self));
@@ -917,55 +1000,60 @@ void background_job_cancel (BackgroundJob* self) {
_tmp0_ = self->priv->cancellable;
#line 166 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp0_ != NULL) {
-#line 921 "BackgroundJob.c"
+#line 1004 "BackgroundJob.c"
GCancellable* _tmp1_;
#line 167 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp1_ = self->priv->cancellable;
#line 167 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_cancellable_cancel (_tmp1_);
-#line 927 "BackgroundJob.c"
+#line 1010 "BackgroundJob.c"
}
}
-static gpointer _background_job_ref0 (gpointer self) {
+static gpointer
+_background_job_ref0 (gpointer self)
+{
#line 183 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return self ? background_job_ref (self) : NULL;
-#line 935 "BackgroundJob.c"
+#line 1020 "BackgroundJob.c"
}
-static gboolean _background_job_on_notify_completion_gsource_func (gpointer self) {
+static gboolean
+_background_job_on_notify_completion_gsource_func (gpointer self)
+{
gboolean result;
result = background_job_on_notify_completion ((BackgroundJob*) self);
#line 185 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return result;
-#line 944 "BackgroundJob.c"
+#line 1031 "BackgroundJob.c"
}
-void background_job_internal_notify_completion (BackgroundJob* self) {
+void
+background_job_internal_notify_completion (BackgroundJob* self)
+{
AbstractSemaphore* _tmp0_;
gboolean _tmp2_ = FALSE;
CompletionCallback _tmp3_;
void* _tmp3__target;
gboolean _tmp5_ = FALSE;
- gboolean _tmp6_;
- BackgroundJob* _tmp8_;
- gint _tmp9_;
+ BackgroundJob* _tmp7_;
+ gint _tmp8_;
#line 171 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (IS_BACKGROUND_JOB (self));
#line 172 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp0_ = self->priv->semaphore;
#line 172 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp0_ != NULL) {
-#line 963 "BackgroundJob.c"
+#line 1051 "BackgroundJob.c"
AbstractSemaphore* _tmp1_;
#line 173 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp1_ = self->priv->semaphore;
#line 173 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
abstract_semaphore_notify (_tmp1_);
-#line 969 "BackgroundJob.c"
+#line 1057 "BackgroundJob.c"
}
#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp3_ = self->priv->callback;
@@ -973,7 +1061,7 @@ void background_job_internal_notify_completion (BackgroundJob* self) {
_tmp3__target = self->priv->callback_target;
#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp3_ == NULL) {
-#line 977 "BackgroundJob.c"
+#line 1065 "BackgroundJob.c"
CancellationCallback _tmp4_;
void* _tmp4__target;
#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -982,105 +1070,102 @@ void background_job_internal_notify_completion (BackgroundJob* self) {
_tmp4__target = self->priv->cancellation_target;
#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp2_ = _tmp4_ == NULL;
-#line 986 "BackgroundJob.c"
+#line 1074 "BackgroundJob.c"
} else {
#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp2_ = FALSE;
-#line 990 "BackgroundJob.c"
+#line 1078 "BackgroundJob.c"
}
#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp2_) {
#line 176 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return;
-#line 996 "BackgroundJob.c"
+#line 1084 "BackgroundJob.c"
}
#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp6_ = background_job_is_cancelled (self);
-#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp6_) {
-#line 1002 "BackgroundJob.c"
- CancellationCallback _tmp7_;
- void* _tmp7__target;
+ if (background_job_is_cancelled (self)) {
+#line 1088 "BackgroundJob.c"
+ CancellationCallback _tmp6_;
+ void* _tmp6__target;
#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp7_ = self->priv->cancellation;
+ _tmp6_ = self->priv->cancellation;
#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp7__target = self->priv->cancellation_target;
+ _tmp6__target = self->priv->cancellation_target;
#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp5_ = _tmp7_ == NULL;
-#line 1011 "BackgroundJob.c"
+ _tmp5_ = _tmp6_ == NULL;
+#line 1097 "BackgroundJob.c"
} else {
#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp5_ = FALSE;
-#line 1015 "BackgroundJob.c"
+#line 1101 "BackgroundJob.c"
}
#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp5_) {
#line 179 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return;
-#line 1021 "BackgroundJob.c"
+#line 1107 "BackgroundJob.c"
}
#line 183 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp8_ = _background_job_ref0 (self);
+ _tmp7_ = _background_job_ref0 (self);
#line 183 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_background_job_unref0 (self->priv->self);
#line 183 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->priv->self = _tmp8_;
+ self->priv->self = _tmp7_;
#line 185 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp9_ = self->priv->completion_priority;
+ _tmp8_ = self->priv->completion_priority;
#line 185 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_idle_add_full (_tmp9_, _background_job_on_notify_completion_gsource_func, background_job_ref (self), background_job_unref);
-#line 1033 "BackgroundJob.c"
+ g_idle_add_full (_tmp8_, _background_job_on_notify_completion_gsource_func, background_job_ref (self), background_job_unref);
+#line 1119 "BackgroundJob.c"
}
-static gboolean background_job_on_notify_completion (BackgroundJob* self) {
+static gboolean
+background_job_on_notify_completion (BackgroundJob* self)
+{
gboolean result = FALSE;
- gboolean _tmp0_;
#line 188 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_val_if_fail (IS_BACKGROUND_JOB (self), FALSE);
#line 193 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = background_job_is_cancelled (self);
-#line 193 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp0_) {
-#line 1046 "BackgroundJob.c"
- CancellationCallback _tmp1_;
- void* _tmp1__target;
+ if (background_job_is_cancelled (self)) {
+#line 1131 "BackgroundJob.c"
+ CancellationCallback _tmp0_;
+ void* _tmp0__target;
#line 194 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ = self->priv->cancellation;
+ _tmp0_ = self->priv->cancellation;
#line 194 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1__target = self->priv->cancellation_target;
+ _tmp0__target = self->priv->cancellation_target;
#line 194 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp1_ != NULL) {
-#line 1055 "BackgroundJob.c"
- CancellationCallback _tmp2_;
- void* _tmp2__target;
+ if (_tmp0_ != NULL) {
+#line 1140 "BackgroundJob.c"
+ CancellationCallback _tmp1_;
+ void* _tmp1__target;
#line 195 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2_ = self->priv->cancellation;
+ _tmp1_ = self->priv->cancellation;
#line 195 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2__target = self->priv->cancellation_target;
+ _tmp1__target = self->priv->cancellation_target;
#line 195 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2_ (self, _tmp2__target);
-#line 1064 "BackgroundJob.c"
+ _tmp1_ (self, _tmp1__target);
+#line 1149 "BackgroundJob.c"
}
} else {
- CompletionCallback _tmp3_;
- void* _tmp3__target;
+ CompletionCallback _tmp2_;
+ void* _tmp2__target;
#line 197 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp3_ = self->priv->callback;
+ _tmp2_ = self->priv->callback;
#line 197 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp3__target = self->priv->callback_target;
+ _tmp2__target = self->priv->callback_target;
#line 197 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp3_ != NULL) {
-#line 1075 "BackgroundJob.c"
- CompletionCallback _tmp4_;
- void* _tmp4__target;
+ if (_tmp2_ != NULL) {
+#line 1160 "BackgroundJob.c"
+ CompletionCallback _tmp3_;
+ void* _tmp3__target;
#line 198 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp4_ = self->priv->callback;
+ _tmp3_ = self->priv->callback;
#line 198 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp4__target = self->priv->callback_target;
+ _tmp3__target = self->priv->callback_target;
#line 198 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp4_ (self, _tmp4__target);
-#line 1084 "BackgroundJob.c"
+ _tmp3_ (self, _tmp3__target);
+#line 1169 "BackgroundJob.c"
}
}
#line 202 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1091,78 +1176,77 @@ static gboolean background_job_on_notify_completion (BackgroundJob* self) {
result = FALSE;
#line 204 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return result;
-#line 1095 "BackgroundJob.c"
+#line 1180 "BackgroundJob.c"
}
-static gboolean _background_job_on_notification_ready_gsource_func (gpointer self) {
+static gboolean
+_background_job_on_notification_ready_gsource_func (gpointer self)
+{
gboolean result;
result = background_job_on_notification_ready ((BackgroundJob*) self);
#line 214 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return result;
-#line 1104 "BackgroundJob.c"
+#line 1191 "BackgroundJob.c"
}
-static gpointer _notification_object_ref0 (gpointer self) {
+static gpointer
+_notification_object_ref0 (gpointer self)
+{
#line 218 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return self ? notification_object_ref (self) : NULL;
-#line 1111 "BackgroundJob.c"
+#line 1200 "BackgroundJob.c"
}
-void background_job_notify (BackgroundJob* self, NotificationCallback callback, void* callback_target, NotificationObject* user) {
- gint _tmp7_;
+void
+background_job_notify (BackgroundJob* self,
+ NotificationCallback callback,
+ void* callback_target,
+ NotificationObject* user)
+{
+ gint _tmp5_;
InterlockedNotificationObject* interlocked = NULL;
- NotificationObject* _tmp8_;
- InterlockedNotificationObject* _tmp9_;
- InterlockedNotificationObject* _tmp10_;
+ InterlockedNotificationObject* _tmp6_;
+ InterlockedNotificationObject* _tmp7_;
GError * _inner_error_ = NULL;
#line 209 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (IS_BACKGROUND_JOB (self));
#line 209 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail ((user == NULL) || IS_NOTIFICATION_OBJECT (user));
-#line 1126 "BackgroundJob.c"
+#line 1219 "BackgroundJob.c"
{
GeeArrayList* _tmp0_;
#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp0_ = background_job_notify_queue;
#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_rec_mutex_lock (&__lock_background_job_notify_queue);
-#line 1133 "BackgroundJob.c"
+#line 1226 "BackgroundJob.c"
{
GeeArrayList* _tmp1_;
- NotificationCallback _tmp2_;
- void* _tmp2__target;
- NotificationObject* _tmp3_;
- BackgroundJobNotificationJob* _tmp4_;
- BackgroundJobNotificationJob* _tmp5_;
+ BackgroundJobNotificationJob* _tmp2_;
+ BackgroundJobNotificationJob* _tmp3_;
#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp1_ = background_job_notify_queue;
#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2_ = callback;
-#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2__target = callback_target;
-#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp3_ = user;
+ _tmp2_ = background_job_notification_job_new (callback, callback_target, self, user);
#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp4_ = background_job_notification_job_new (_tmp2_, _tmp2__target, self, _tmp3_);
-#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp5_ = _tmp4_;
+ _tmp3_ = _tmp2_;
#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp5_);
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp3_);
#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _background_job_notification_job_unref0 (_tmp5_);
-#line 1157 "BackgroundJob.c"
+ _background_job_notification_job_unref0 (_tmp3_);
+#line 1241 "BackgroundJob.c"
}
__finally13:
{
- GeeArrayList* _tmp6_;
+ GeeArrayList* _tmp4_;
#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp6_ = background_job_notify_queue;
+ _tmp4_ = background_job_notify_queue;
#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_rec_mutex_unlock (&__lock_background_job_notify_queue);
-#line 1166 "BackgroundJob.c"
+#line 1250 "BackgroundJob.c"
}
#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
@@ -1172,38 +1256,38 @@ void background_job_notify (BackgroundJob* self, NotificationCallback callback,
g_clear_error (&_inner_error_);
#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return;
-#line 1176 "BackgroundJob.c"
+#line 1260 "BackgroundJob.c"
}
}
#line 214 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp7_ = self->priv->notification_priority;
+ _tmp5_ = self->priv->notification_priority;
#line 214 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- g_idle_add_full (_tmp7_, _background_job_on_notification_ready_gsource_func, background_job_ref (self), background_job_unref);
+ g_idle_add_full (_tmp5_, _background_job_on_notification_ready_gsource_func, background_job_ref (self), background_job_unref);
#line 218 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp8_ = user;
+ _tmp6_ = _notification_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (user, TYPE_INTERLOCKED_NOTIFICATION_OBJECT) ? ((InterlockedNotificationObject*) user) : NULL);
#line 218 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp9_ = _notification_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_INTERLOCKED_NOTIFICATION_OBJECT) ? ((InterlockedNotificationObject*) _tmp8_) : NULL);
-#line 218 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- interlocked = _tmp9_;
+ interlocked = _tmp6_;
#line 219 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp10_ = interlocked;
+ _tmp7_ = interlocked;
#line 219 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp10_ != NULL) {
-#line 1193 "BackgroundJob.c"
- InterlockedNotificationObject* _tmp11_;
+ if (_tmp7_ != NULL) {
+#line 1275 "BackgroundJob.c"
+ InterlockedNotificationObject* _tmp8_;
#line 220 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp11_ = interlocked;
+ _tmp8_ = interlocked;
#line 220 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- interlocked_notification_object_internal_wait_for_completion (_tmp11_);
-#line 1199 "BackgroundJob.c"
+ interlocked_notification_object_internal_wait_for_completion (_tmp8_);
+#line 1281 "BackgroundJob.c"
}
#line 209 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_notification_object_unref0 (interlocked);
-#line 1203 "BackgroundJob.c"
+#line 1285 "BackgroundJob.c"
}
-static gboolean background_job_on_notification_ready (BackgroundJob* self) {
+static gboolean
+background_job_on_notification_ready (BackgroundJob* self)
+{
gboolean result = FALSE;
BackgroundJobNotificationJob* notification_job = NULL;
BackgroundJobNotificationJob* _tmp8_;
@@ -1224,14 +1308,14 @@ static gboolean background_job_on_notification_ready (BackgroundJob* self) {
g_return_val_if_fail (IS_BACKGROUND_JOB (self), FALSE);
#line 226 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
notification_job = NULL;
-#line 1228 "BackgroundJob.c"
+#line 1312 "BackgroundJob.c"
{
GeeArrayList* _tmp0_;
#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp0_ = background_job_notify_queue;
#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_rec_mutex_lock (&__lock_background_job_notify_queue);
-#line 1235 "BackgroundJob.c"
+#line 1319 "BackgroundJob.c"
{
GeeArrayList* _tmp1_;
gint _tmp2_;
@@ -1244,7 +1328,7 @@ static gboolean background_job_on_notification_ready (BackgroundJob* self) {
_tmp3_ = _tmp2_;
#line 228 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp3_ > 0) {
-#line 1248 "BackgroundJob.c"
+#line 1332 "BackgroundJob.c"
GeeArrayList* _tmp4_;
gpointer _tmp5_;
#line 229 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1255,7 +1339,7 @@ static gboolean background_job_on_notification_ready (BackgroundJob* self) {
_background_job_notification_job_unref0 (notification_job);
#line 229 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
notification_job = (BackgroundJobNotificationJob*) _tmp5_;
-#line 1259 "BackgroundJob.c"
+#line 1343 "BackgroundJob.c"
}
}
__finally14:
@@ -1265,11 +1349,11 @@ static gboolean background_job_on_notification_ready (BackgroundJob* self) {
_tmp6_ = background_job_notify_queue;
#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_rec_mutex_unlock (&__lock_background_job_notify_queue);
-#line 1269 "BackgroundJob.c"
+#line 1353 "BackgroundJob.c"
}
#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1273 "BackgroundJob.c"
+#line 1357 "BackgroundJob.c"
gboolean _tmp7_ = FALSE;
#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_background_job_notification_job_unref0 (notification_job);
@@ -1279,7 +1363,7 @@ static gboolean background_job_on_notification_ready (BackgroundJob* self) {
g_clear_error (&_inner_error_);
#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return _tmp7_;
-#line 1283 "BackgroundJob.c"
+#line 1367 "BackgroundJob.c"
}
}
#line 231 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1314,13 +1398,13 @@ static gboolean background_job_on_notification_ready (BackgroundJob* self) {
_tmp18_ = interlocked;
#line 237 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp18_ != NULL) {
-#line 1318 "BackgroundJob.c"
+#line 1402 "BackgroundJob.c"
InterlockedNotificationObject* _tmp19_;
#line 238 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp19_ = interlocked;
#line 238 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
interlocked_notification_object_internal_completed (_tmp19_);
-#line 1324 "BackgroundJob.c"
+#line 1408 "BackgroundJob.c"
}
#line 240 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
result = FALSE;
@@ -1330,18 +1414,20 @@ static gboolean background_job_on_notification_ready (BackgroundJob* self) {
_background_job_notification_job_unref0 (notification_job);
#line 240 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return result;
-#line 1334 "BackgroundJob.c"
+#line 1418 "BackgroundJob.c"
}
-static BackgroundJobNotificationJob* background_job_notification_job_construct (GType object_type, NotificationCallback callback, void* callback_target, BackgroundJob* background_job, NotificationObject* user) {
+static BackgroundJobNotificationJob*
+background_job_notification_job_construct (GType object_type,
+ NotificationCallback callback,
+ void* callback_target,
+ BackgroundJob* background_job,
+ NotificationObject* user)
+{
BackgroundJobNotificationJob* self = NULL;
- NotificationCallback _tmp0_;
- void* _tmp0__target;
- BackgroundJob* _tmp1_;
- BackgroundJob* _tmp2_;
- NotificationObject* _tmp3_;
- NotificationObject* _tmp4_;
+ BackgroundJob* _tmp0_;
+ NotificationObject* _tmp1_;
#line 88 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_val_if_fail (IS_BACKGROUND_JOB (background_job), NULL);
#line 88 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1349,140 +1435,162 @@ static BackgroundJobNotificationJob* background_job_notification_job_construct (
#line 88 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
self = (BackgroundJobNotificationJob*) g_type_create_instance (object_type);
#line 90 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0_ = callback;
-#line 90 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp0__target = callback_target;
-#line 90 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->callback = _tmp0_;
+ self->callback = callback;
#line 90 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->callback_target = _tmp0__target;
+ self->callback_target = callback_target;
#line 91 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp1_ = background_job;
-#line 91 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp2_ = _background_job_ref0 (_tmp1_);
+ _tmp0_ = _background_job_ref0 (background_job);
#line 91 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_background_job_unref0 (self->background_job);
#line 91 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->background_job = _tmp2_;
-#line 92 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp3_ = user;
+ self->background_job = _tmp0_;
#line 92 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp4_ = _notification_object_ref0 (_tmp3_);
+ _tmp1_ = _notification_object_ref0 (user);
#line 92 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_notification_object_unref0 (self->user);
#line 92 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- self->user = _tmp4_;
+ self->user = _tmp1_;
#line 88 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return self;
-#line 1378 "BackgroundJob.c"
+#line 1456 "BackgroundJob.c"
}
-static BackgroundJobNotificationJob* background_job_notification_job_new (NotificationCallback callback, void* callback_target, BackgroundJob* background_job, NotificationObject* user) {
+static BackgroundJobNotificationJob*
+background_job_notification_job_new (NotificationCallback callback,
+ void* callback_target,
+ BackgroundJob* background_job,
+ NotificationObject* user)
+{
#line 88 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return background_job_notification_job_construct (BACKGROUND_JOB_TYPE_NOTIFICATION_JOB, callback, callback_target, background_job, user);
-#line 1385 "BackgroundJob.c"
+#line 1468 "BackgroundJob.c"
}
-static void background_job_value_notification_job_init (GValue* value) {
+static void
+background_job_value_notification_job_init (GValue* value)
+{
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 1392 "BackgroundJob.c"
+#line 1477 "BackgroundJob.c"
}
-static void background_job_value_notification_job_free_value (GValue* value) {
+static void
+background_job_value_notification_job_free_value (GValue* value)
+{
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (value->data[0].v_pointer) {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
background_job_notification_job_unref (value->data[0].v_pointer);
-#line 1401 "BackgroundJob.c"
+#line 1488 "BackgroundJob.c"
}
}
-static void background_job_value_notification_job_copy_value (const GValue* src_value, GValue* dest_value) {
+static void
+background_job_value_notification_job_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (src_value->data[0].v_pointer) {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
dest_value->data[0].v_pointer = background_job_notification_job_ref (src_value->data[0].v_pointer);
-#line 1411 "BackgroundJob.c"
+#line 1501 "BackgroundJob.c"
} else {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
dest_value->data[0].v_pointer = NULL;
-#line 1415 "BackgroundJob.c"
+#line 1505 "BackgroundJob.c"
}
}
-static gpointer background_job_value_notification_job_peek_pointer (const GValue* value) {
+static gpointer
+background_job_value_notification_job_peek_pointer (const GValue* value)
+{
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return value->data[0].v_pointer;
-#line 1423 "BackgroundJob.c"
+#line 1515 "BackgroundJob.c"
}
-static gchar* background_job_value_notification_job_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+background_job_value_notification_job_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (collect_values[0].v_pointer) {
-#line 1430 "BackgroundJob.c"
+#line 1527 "BackgroundJob.c"
BackgroundJobNotificationJob * object;
object = collect_values[0].v_pointer;
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (object->parent_instance.g_class == NULL) {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1437 "BackgroundJob.c"
+#line 1534 "BackgroundJob.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.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 1441 "BackgroundJob.c"
+#line 1538 "BackgroundJob.c"
}
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = background_job_notification_job_ref (object);
-#line 1445 "BackgroundJob.c"
+#line 1542 "BackgroundJob.c"
} else {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 1449 "BackgroundJob.c"
+#line 1546 "BackgroundJob.c"
}
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return NULL;
-#line 1453 "BackgroundJob.c"
+#line 1550 "BackgroundJob.c"
}
-static gchar* background_job_value_notification_job_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+background_job_value_notification_job_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
BackgroundJobNotificationJob ** object_p;
object_p = collect_values[0].v_pointer;
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (!object_p) {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1464 "BackgroundJob.c"
+#line 1566 "BackgroundJob.c"
}
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (!value->data[0].v_pointer) {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
*object_p = NULL;
-#line 1470 "BackgroundJob.c"
+#line 1572 "BackgroundJob.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
*object_p = value->data[0].v_pointer;
-#line 1474 "BackgroundJob.c"
+#line 1576 "BackgroundJob.c"
} else {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
*object_p = background_job_notification_job_ref (value->data[0].v_pointer);
-#line 1478 "BackgroundJob.c"
+#line 1580 "BackgroundJob.c"
}
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return NULL;
-#line 1482 "BackgroundJob.c"
+#line 1584 "BackgroundJob.c"
}
-static GParamSpec* background_job_param_spec_notification_job (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+static GParamSpec*
+background_job_param_spec_notification_job (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
BackgroundJobParamSpecNotificationJob* spec;
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_val_if_fail (g_type_is_a (object_type, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB), NULL);
@@ -1492,20 +1600,25 @@ static GParamSpec* background_job_param_spec_notification_job (const gchar* name
G_PARAM_SPEC (spec)->value_type = object_type;
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return G_PARAM_SPEC (spec);
-#line 1496 "BackgroundJob.c"
+#line 1604 "BackgroundJob.c"
}
-static gpointer background_job_value_get_notification_job (const GValue* value) {
+static gpointer
+background_job_value_get_notification_job (const GValue* value)
+{
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB), NULL);
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return value->data[0].v_pointer;
-#line 1505 "BackgroundJob.c"
+#line 1615 "BackgroundJob.c"
}
-static void background_job_value_set_notification_job (GValue* value, gpointer v_object) {
+static void
+background_job_value_set_notification_job (GValue* value,
+ gpointer v_object)
+{
BackgroundJobNotificationJob * old;
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB));
@@ -1521,22 +1634,25 @@ static void background_job_value_set_notification_job (GValue* value, gpointer v
value->data[0].v_pointer = v_object;
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
background_job_notification_job_ref (value->data[0].v_pointer);
-#line 1525 "BackgroundJob.c"
+#line 1638 "BackgroundJob.c"
} else {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 1529 "BackgroundJob.c"
+#line 1642 "BackgroundJob.c"
}
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (old) {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
background_job_notification_job_unref (old);
-#line 1535 "BackgroundJob.c"
+#line 1648 "BackgroundJob.c"
}
}
-static void background_job_value_take_notification_job (GValue* value, gpointer v_object) {
+static void
+background_job_value_take_notification_job (GValue* value,
+ gpointer v_object)
+{
BackgroundJobNotificationJob * old;
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB));
@@ -1550,38 +1666,44 @@ static void background_job_value_take_notification_job (GValue* value, gpointer
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = v_object;
-#line 1554 "BackgroundJob.c"
+#line 1670 "BackgroundJob.c"
} else {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 1558 "BackgroundJob.c"
+#line 1674 "BackgroundJob.c"
}
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (old) {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
background_job_notification_job_unref (old);
-#line 1564 "BackgroundJob.c"
+#line 1680 "BackgroundJob.c"
}
}
-static void background_job_notification_job_class_init (BackgroundJobNotificationJobClass * klass) {
+static void
+background_job_notification_job_class_init (BackgroundJobNotificationJobClass * klass)
+{
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
background_job_notification_job_parent_class = g_type_class_peek_parent (klass);
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
((BackgroundJobNotificationJobClass *) klass)->finalize = background_job_notification_job_finalize;
-#line 1574 "BackgroundJob.c"
+#line 1692 "BackgroundJob.c"
}
-static void background_job_notification_job_instance_init (BackgroundJobNotificationJob * self) {
+static void
+background_job_notification_job_instance_init (BackgroundJobNotificationJob * self)
+{
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
self->ref_count = 1;
-#line 1581 "BackgroundJob.c"
+#line 1701 "BackgroundJob.c"
}
-static void background_job_notification_job_finalize (BackgroundJobNotificationJob * obj) {
+static void
+background_job_notification_job_finalize (BackgroundJobNotificationJob * obj)
+{
BackgroundJobNotificationJob * self;
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB, BackgroundJobNotificationJob);
@@ -1591,11 +1713,13 @@ static void background_job_notification_job_finalize (BackgroundJobNotificationJ
_background_job_unref0 (self->background_job);
#line 86 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_notification_object_unref0 (self->user);
-#line 1595 "BackgroundJob.c"
+#line 1717 "BackgroundJob.c"
}
-static GType background_job_notification_job_get_type (void) {
+static GType
+background_job_notification_job_get_type (void)
+{
static volatile gsize background_job_notification_job_type_id__volatile = 0;
if (g_once_init_enter (&background_job_notification_job_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { background_job_value_notification_job_init, background_job_value_notification_job_free_value, background_job_value_notification_job_copy_value, background_job_value_notification_job_peek_pointer, "p", background_job_value_notification_job_collect_value, "p", background_job_value_notification_job_lcopy_value };
@@ -1609,18 +1733,22 @@ static GType background_job_notification_job_get_type (void) {
}
-static gpointer background_job_notification_job_ref (gpointer instance) {
+static gpointer
+background_job_notification_job_ref (gpointer instance)
+{
BackgroundJobNotificationJob * self;
self = instance;
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_atomic_int_inc (&self->ref_count);
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return instance;
-#line 1620 "BackgroundJob.c"
+#line 1746 "BackgroundJob.c"
}
-static void background_job_notification_job_unref (gpointer instance) {
+static void
+background_job_notification_job_unref (gpointer instance)
+{
BackgroundJobNotificationJob * self;
self = instance;
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1629,109 +1757,134 @@ static void background_job_notification_job_unref (gpointer instance) {
BACKGROUND_JOB_NOTIFICATION_JOB_GET_CLASS (self)->finalize (self);
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 1633 "BackgroundJob.c"
+#line 1761 "BackgroundJob.c"
}
}
-static void value_background_job_init (GValue* value) {
+static void
+value_background_job_init (GValue* value)
+{
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 1641 "BackgroundJob.c"
+#line 1771 "BackgroundJob.c"
}
-static void value_background_job_free_value (GValue* value) {
+static void
+value_background_job_free_value (GValue* value)
+{
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (value->data[0].v_pointer) {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
background_job_unref (value->data[0].v_pointer);
-#line 1650 "BackgroundJob.c"
+#line 1782 "BackgroundJob.c"
}
}
-static void value_background_job_copy_value (const GValue* src_value, GValue* dest_value) {
+static void
+value_background_job_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (src_value->data[0].v_pointer) {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
dest_value->data[0].v_pointer = background_job_ref (src_value->data[0].v_pointer);
-#line 1660 "BackgroundJob.c"
+#line 1795 "BackgroundJob.c"
} else {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
dest_value->data[0].v_pointer = NULL;
-#line 1664 "BackgroundJob.c"
+#line 1799 "BackgroundJob.c"
}
}
-static gpointer value_background_job_peek_pointer (const GValue* value) {
+static gpointer
+value_background_job_peek_pointer (const GValue* value)
+{
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return value->data[0].v_pointer;
-#line 1672 "BackgroundJob.c"
+#line 1809 "BackgroundJob.c"
}
-static gchar* value_background_job_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_background_job_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (collect_values[0].v_pointer) {
-#line 1679 "BackgroundJob.c"
+#line 1821 "BackgroundJob.c"
BackgroundJob * object;
object = collect_values[0].v_pointer;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (object->parent_instance.g_class == NULL) {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1686 "BackgroundJob.c"
+#line 1828 "BackgroundJob.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.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 1690 "BackgroundJob.c"
+#line 1832 "BackgroundJob.c"
}
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = background_job_ref (object);
-#line 1694 "BackgroundJob.c"
+#line 1836 "BackgroundJob.c"
} else {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 1698 "BackgroundJob.c"
+#line 1840 "BackgroundJob.c"
}
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return NULL;
-#line 1702 "BackgroundJob.c"
+#line 1844 "BackgroundJob.c"
}
-static gchar* value_background_job_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_background_job_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
BackgroundJob ** object_p;
object_p = collect_values[0].v_pointer;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (!object_p) {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1713 "BackgroundJob.c"
+#line 1860 "BackgroundJob.c"
}
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (!value->data[0].v_pointer) {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
*object_p = NULL;
-#line 1719 "BackgroundJob.c"
+#line 1866 "BackgroundJob.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
*object_p = value->data[0].v_pointer;
-#line 1723 "BackgroundJob.c"
+#line 1870 "BackgroundJob.c"
} else {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
*object_p = background_job_ref (value->data[0].v_pointer);
-#line 1727 "BackgroundJob.c"
+#line 1874 "BackgroundJob.c"
}
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return NULL;
-#line 1731 "BackgroundJob.c"
+#line 1878 "BackgroundJob.c"
}
-GParamSpec* param_spec_background_job (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_background_job (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecBackgroundJob* spec;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_BACKGROUND_JOB), NULL);
@@ -1741,20 +1894,25 @@ GParamSpec* param_spec_background_job (const gchar* name, const gchar* nick, con
G_PARAM_SPEC (spec)->value_type = object_type;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return G_PARAM_SPEC (spec);
-#line 1745 "BackgroundJob.c"
+#line 1898 "BackgroundJob.c"
}
-gpointer value_get_background_job (const GValue* value) {
+gpointer
+value_get_background_job (const GValue* value)
+{
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKGROUND_JOB), NULL);
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return value->data[0].v_pointer;
-#line 1754 "BackgroundJob.c"
+#line 1909 "BackgroundJob.c"
}
-void value_set_background_job (GValue* value, gpointer v_object) {
+void
+value_set_background_job (GValue* value,
+ gpointer v_object)
+{
BackgroundJob * old;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKGROUND_JOB));
@@ -1770,22 +1928,25 @@ void value_set_background_job (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
background_job_ref (value->data[0].v_pointer);
-#line 1774 "BackgroundJob.c"
+#line 1932 "BackgroundJob.c"
} else {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 1778 "BackgroundJob.c"
+#line 1936 "BackgroundJob.c"
}
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (old) {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
background_job_unref (old);
-#line 1784 "BackgroundJob.c"
+#line 1942 "BackgroundJob.c"
}
}
-void value_take_background_job (GValue* value, gpointer v_object) {
+void
+value_take_background_job (GValue* value,
+ gpointer v_object)
+{
BackgroundJob * old;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKGROUND_JOB));
@@ -1799,22 +1960,24 @@ void value_take_background_job (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = v_object;
-#line 1803 "BackgroundJob.c"
+#line 1964 "BackgroundJob.c"
} else {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 1807 "BackgroundJob.c"
+#line 1968 "BackgroundJob.c"
}
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (old) {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
background_job_unref (old);
-#line 1813 "BackgroundJob.c"
+#line 1974 "BackgroundJob.c"
}
}
-static void background_job_class_init (BackgroundJobClass * klass) {
+static void
+background_job_class_init (BackgroundJobClass * klass)
+{
GeeArrayList* _tmp0_;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
background_job_parent_class = g_type_class_peek_parent (klass);
@@ -1832,11 +1995,13 @@ static void background_job_class_init (BackgroundJobClass * klass) {
_tmp0_ = gee_array_list_new (BACKGROUND_JOB_TYPE_NOTIFICATION_JOB, (GBoxedCopyFunc) background_job_notification_job_ref, (GDestroyNotify) background_job_notification_job_unref, NULL, NULL, NULL);
#line 96 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
background_job_notify_queue = _tmp0_;
-#line 1836 "BackgroundJob.c"
+#line 1999 "BackgroundJob.c"
}
-static void background_job_instance_init (BackgroundJob * self) {
+static void
+background_job_instance_init (BackgroundJob * self)
+{
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
self->priv = BACKGROUND_JOB_GET_PRIVATE (self);
#line 102 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1849,11 +2014,13 @@ static void background_job_instance_init (BackgroundJob * self) {
self->priv->notification_priority = G_PRIORITY_DEFAULT_IDLE;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
self->ref_count = 1;
-#line 1853 "BackgroundJob.c"
+#line 2018 "BackgroundJob.c"
}
-static void background_job_finalize (BackgroundJob * obj) {
+static void
+background_job_finalize (BackgroundJob * obj)
+{
BackgroundJob * self;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BACKGROUND_JOB, BackgroundJob);
@@ -1867,11 +2034,13 @@ static void background_job_finalize (BackgroundJob * obj) {
_background_job_unref0 (self->priv->self);
#line 103 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_abstract_semaphore_unref0 (self->priv->semaphore);
-#line 1871 "BackgroundJob.c"
+#line 2038 "BackgroundJob.c"
}
-GType background_job_get_type (void) {
+GType
+background_job_get_type (void)
+{
static volatile gsize background_job_type_id__volatile = 0;
if (g_once_init_enter (&background_job_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_background_job_init, value_background_job_free_value, value_background_job_copy_value, value_background_job_peek_pointer, "p", value_background_job_collect_value, "p", value_background_job_lcopy_value };
@@ -1885,18 +2054,22 @@ GType background_job_get_type (void) {
}
-gpointer background_job_ref (gpointer instance) {
+gpointer
+background_job_ref (gpointer instance)
+{
BackgroundJob * self;
self = instance;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_atomic_int_inc (&self->ref_count);
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return instance;
-#line 1896 "BackgroundJob.c"
+#line 2067 "BackgroundJob.c"
}
-void background_job_unref (gpointer instance) {
+void
+background_job_unref (gpointer instance)
+{
BackgroundJob * self;
self = instance;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1905,7 +2078,7 @@ void background_job_unref (gpointer instance) {
BACKGROUND_JOB_GET_CLASS (self)->finalize (self);
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 1909 "BackgroundJob.c"
+#line 2082 "BackgroundJob.c"
}
}