summaryrefslogtreecommitdiff
path: root/src/threads/BackgroundJob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/threads/BackgroundJob.c')
-rw-r--r--src/threads/BackgroundJob.c248
1 files changed, 124 insertions, 124 deletions
diff --git a/src/threads/BackgroundJob.c b/src/threads/BackgroundJob.c
index cfb54d3..f2ba99a 100644
--- a/src/threads/BackgroundJob.c
+++ b/src/threads/BackgroundJob.c
@@ -1,4 +1,4 @@
-/* BackgroundJob.c generated by valac 0.34.7, the Vala compiler
+/* BackgroundJob.c generated by valac 0.36.6, the Vala compiler
* generated from BackgroundJob.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -209,7 +209,7 @@ enum {
NOTIFICATION_OBJECT_DUMMY_PROPERTY
};
NotificationObject* notification_object_construct (GType object_type);
-static void notification_object_finalize (NotificationObject* obj);
+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);
@@ -230,7 +230,7 @@ void abstract_semaphore_wait (AbstractSemaphore* self);
void interlocked_notification_object_internal_completed (InterlockedNotificationObject* self);
void abstract_semaphore_notify (AbstractSemaphore* self);
InterlockedNotificationObject* interlocked_notification_object_construct (GType object_type);
-static void interlocked_notification_object_finalize (NotificationObject* obj);
+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 {
@@ -269,8 +269,8 @@ static gboolean _background_job_on_notification_ready_gsource_func (gpointer sel
enum {
BACKGROUND_JOB_NOTIFICATION_JOB_DUMMY_PROPERTY
};
-static void background_job_notification_job_finalize (BackgroundJobNotificationJob* obj);
-static void background_job_finalize (BackgroundJob* obj);
+static void background_job_notification_job_finalize (BackgroundJobNotificationJob * obj);
+static void background_job_finalize (BackgroundJob * obj);
NotificationObject* notification_object_construct (GType object_type) {
@@ -325,7 +325,7 @@ static gchar* value_notification_object_collect_value (GValue* value, guint n_co
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (collect_values[0].v_pointer) {
#line 328 "BackgroundJob.c"
- NotificationObject* object;
+ 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) {
@@ -352,7 +352,7 @@ static gchar* value_notification_object_collect_value (GValue* value, guint n_co
static gchar* value_notification_object_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
- NotificationObject** object_p;
+ NotificationObject ** object_p;
object_p = collect_values[0].v_pointer;
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (!object_p) {
@@ -404,7 +404,7 @@ gpointer value_get_notification_object (const GValue* value) {
void value_set_notification_object (GValue* value, gpointer v_object) {
- NotificationObject* old;
+ 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));
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -435,7 +435,7 @@ void value_set_notification_object (GValue* value, gpointer v_object) {
void value_take_notification_object (GValue* value, gpointer v_object) {
- NotificationObject* old;
+ 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));
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -479,7 +479,7 @@ static void notification_object_instance_init (NotificationObject * self) {
}
-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);
@@ -504,7 +504,7 @@ GType notification_object_get_type (void) {
gpointer notification_object_ref (gpointer instance) {
- NotificationObject* self;
+ NotificationObject * self;
self = instance;
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_atomic_int_inc (&self->ref_count);
@@ -515,7 +515,7 @@ gpointer notification_object_ref (gpointer instance) {
void notification_object_unref (gpointer instance) {
- NotificationObject* self;
+ NotificationObject * self;
self = instance;
#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
@@ -529,7 +529,7 @@ void notification_object_unref (gpointer instance) {
void interlocked_notification_object_internal_wait_for_completion (InterlockedNotificationObject* self) {
- Semaphore* _tmp0_ = NULL;
+ Semaphore* _tmp0_;
#line 41 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (IS_INTERLOCKED_NOTIFICATION_OBJECT (self));
#line 42 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -541,7 +541,7 @@ void interlocked_notification_object_internal_wait_for_completion (InterlockedNo
void interlocked_notification_object_internal_completed (InterlockedNotificationObject* self) {
- Semaphore* _tmp0_ = NULL;
+ Semaphore* _tmp0_;
#line 46 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (IS_INTERLOCKED_NOTIFICATION_OBJECT (self));
#line 47 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -574,7 +574,7 @@ static void interlocked_notification_object_class_init (InterlockedNotificationO
static void interlocked_notification_object_instance_init (InterlockedNotificationObject * self) {
- Semaphore* _tmp0_ = NULL;
+ Semaphore* _tmp0_;
#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
self->priv = INTERLOCKED_NOTIFICATION_OBJECT_GET_PRIVATE (self);
#line 38 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -585,7 +585,7 @@ static void interlocked_notification_object_instance_init (InterlockedNotificati
}
-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);
@@ -611,7 +611,7 @@ GType interlocked_notification_object_get_type (void) {
gint background_job_job_priority_compare (BackgroundJobJobPriority self, BackgroundJobJobPriority other) {
gint result = 0;
- BackgroundJobJobPriority _tmp0_ = 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"
@@ -624,8 +624,8 @@ gint background_job_job_priority_compare (BackgroundJobJobPriority self, Backgro
gint background_job_job_priority_compare_func (BackgroundJobJobPriority a, BackgroundJobJobPriority b) {
gint result = 0;
- BackgroundJobJobPriority _tmp0_ = 0;
- BackgroundJobJobPriority _tmp1_ = 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"
@@ -666,16 +666,16 @@ static gpointer _abstract_semaphore_ref0 (gpointer self) {
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_ = NULL;
- GObject* _tmp1_ = NULL;
- CompletionCallback _tmp2_ = NULL;
- void* _tmp2__target = NULL;
- GCancellable* _tmp3_ = NULL;
- GCancellable* _tmp4_ = NULL;
- CancellationCallback _tmp5_ = NULL;
- void* _tmp5__target = NULL;
- AbstractSemaphore* _tmp6_ = NULL;
- AbstractSemaphore* _tmp7_ = NULL;
+ GObject* _tmp0_;
+ GObject* _tmp1_;
+ CompletionCallback _tmp2_;
+ void* _tmp2__target;
+ GCancellable* _tmp3_;
+ GCancellable* _tmp4_;
+ CancellationCallback _tmp5_;
+ void* _tmp5__target;
+ AbstractSemaphore* _tmp6_;
+ AbstractSemaphore* _tmp7_;
#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"
@@ -769,11 +769,11 @@ BackgroundJobJobPriority background_job_get_priority (BackgroundJob* self) {
gint background_job_priority_compare_func (BackgroundJob* a, BackgroundJob* b) {
gint result = 0;
- BackgroundJob* _tmp0_ = NULL;
- BackgroundJobJobPriority _tmp1_ = 0;
- BackgroundJob* _tmp2_ = NULL;
- BackgroundJobJobPriority _tmp3_ = 0;
- gint _tmp4_ = 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"
@@ -798,9 +798,9 @@ gint background_job_priority_compare_func (BackgroundJob* a, BackgroundJob* b) {
gint64 background_job_priority_comparator (void* a, void* b) {
gint64 result = 0LL;
- void* _tmp0_ = NULL;
- void* _tmp1_ = NULL;
- gint _tmp2_ = 0;
+ 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"
@@ -816,7 +816,7 @@ gint64 background_job_priority_comparator (void* a, void* b) {
void background_job_set_completion_priority (BackgroundJob* self, gint priority) {
- gint _tmp0_ = 0;
+ gint _tmp0_;
#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"
@@ -828,7 +828,7 @@ void background_job_set_completion_priority (BackgroundJob* self, gint priority)
void background_job_set_notification_priority (BackgroundJob* self, gint priority) {
- gint _tmp0_ = 0;
+ gint _tmp0_;
#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"
@@ -840,7 +840,7 @@ void background_job_set_notification_priority (BackgroundJob* self, gint priorit
void background_job_wait_for_completion (BackgroundJob* self) {
- AbstractSemaphore* _tmp0_ = NULL;
+ AbstractSemaphore* _tmp0_;
#line 152 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (IS_BACKGROUND_JOB (self));
#line 153 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -848,7 +848,7 @@ void background_job_wait_for_completion (BackgroundJob* self) {
#line 153 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp0_ != NULL) {
#line 851 "BackgroundJob.c"
- AbstractSemaphore* _tmp1_ = NULL;
+ 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"
@@ -860,8 +860,8 @@ void background_job_wait_for_completion (BackgroundJob* self) {
GCancellable* background_job_get_cancellable (BackgroundJob* self) {
GCancellable* result = NULL;
- GCancellable* _tmp0_ = NULL;
- GCancellable* _tmp1_ = NULL;
+ GCancellable* _tmp0_;
+ GCancellable* _tmp1_;
#line 157 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_val_if_fail (IS_BACKGROUND_JOB (self), NULL);
#line 158 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -879,7 +879,7 @@ GCancellable* background_job_get_cancellable (BackgroundJob* self) {
gboolean background_job_is_cancelled (BackgroundJob* self) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
- GCancellable* _tmp1_ = NULL;
+ GCancellable* _tmp1_;
#line 161 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_val_if_fail (IS_BACKGROUND_JOB (self), FALSE);
#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -887,8 +887,8 @@ gboolean background_job_is_cancelled (BackgroundJob* self) {
#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp1_ != NULL) {
#line 890 "BackgroundJob.c"
- GCancellable* _tmp2_ = NULL;
- gboolean _tmp3_ = FALSE;
+ 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"
@@ -910,7 +910,7 @@ gboolean background_job_is_cancelled (BackgroundJob* self) {
void background_job_cancel (BackgroundJob* self) {
- GCancellable* _tmp0_ = NULL;
+ GCancellable* _tmp0_;
#line 165 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (IS_BACKGROUND_JOB (self));
#line 166 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -918,7 +918,7 @@ void background_job_cancel (BackgroundJob* self) {
#line 166 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp0_ != NULL) {
#line 921 "BackgroundJob.c"
- GCancellable* _tmp1_ = NULL;
+ 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"
@@ -945,14 +945,14 @@ static gboolean _background_job_on_notify_completion_gsource_func (gpointer self
void background_job_internal_notify_completion (BackgroundJob* self) {
- AbstractSemaphore* _tmp0_ = NULL;
+ AbstractSemaphore* _tmp0_;
gboolean _tmp2_ = FALSE;
- CompletionCallback _tmp3_ = NULL;
- void* _tmp3__target = NULL;
+ CompletionCallback _tmp3_;
+ void* _tmp3__target;
gboolean _tmp5_ = FALSE;
- gboolean _tmp6_ = FALSE;
- BackgroundJob* _tmp8_ = NULL;
- gint _tmp9_ = 0;
+ gboolean _tmp6_;
+ BackgroundJob* _tmp8_;
+ gint _tmp9_;
#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"
@@ -960,7 +960,7 @@ void background_job_internal_notify_completion (BackgroundJob* self) {
#line 172 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp0_ != NULL) {
#line 963 "BackgroundJob.c"
- AbstractSemaphore* _tmp1_ = NULL;
+ 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"
@@ -974,8 +974,8 @@ void background_job_internal_notify_completion (BackgroundJob* self) {
#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp3_ == NULL) {
#line 977 "BackgroundJob.c"
- CancellationCallback _tmp4_ = NULL;
- void* _tmp4__target = NULL;
+ CancellationCallback _tmp4_;
+ void* _tmp4__target;
#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp4_ = self->priv->cancellation;
#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -999,8 +999,8 @@ void background_job_internal_notify_completion (BackgroundJob* self) {
#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp6_) {
#line 1002 "BackgroundJob.c"
- CancellationCallback _tmp7_ = NULL;
- void* _tmp7__target = NULL;
+ CancellationCallback _tmp7_;
+ void* _tmp7__target;
#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp7_ = self->priv->cancellation;
#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1035,7 +1035,7 @@ void background_job_internal_notify_completion (BackgroundJob* self) {
static gboolean background_job_on_notify_completion (BackgroundJob* self) {
gboolean result = FALSE;
- gboolean _tmp0_ = 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"
@@ -1043,8 +1043,8 @@ static gboolean background_job_on_notify_completion (BackgroundJob* self) {
#line 193 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp0_) {
#line 1046 "BackgroundJob.c"
- CancellationCallback _tmp1_ = NULL;
- void* _tmp1__target = NULL;
+ CancellationCallback _tmp1_;
+ void* _tmp1__target;
#line 194 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp1_ = self->priv->cancellation;
#line 194 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1052,8 +1052,8 @@ static gboolean background_job_on_notify_completion (BackgroundJob* self) {
#line 194 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp1_ != NULL) {
#line 1055 "BackgroundJob.c"
- CancellationCallback _tmp2_ = NULL;
- void* _tmp2__target = NULL;
+ CancellationCallback _tmp2_;
+ void* _tmp2__target;
#line 195 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp2_ = self->priv->cancellation;
#line 195 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1063,8 +1063,8 @@ static gboolean background_job_on_notify_completion (BackgroundJob* self) {
#line 1064 "BackgroundJob.c"
}
} else {
- CompletionCallback _tmp3_ = NULL;
- void* _tmp3__target = NULL;
+ CompletionCallback _tmp3_;
+ void* _tmp3__target;
#line 197 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp3_ = self->priv->callback;
#line 197 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1072,8 +1072,8 @@ static gboolean background_job_on_notify_completion (BackgroundJob* self) {
#line 197 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp3_ != NULL) {
#line 1075 "BackgroundJob.c"
- CompletionCallback _tmp4_ = NULL;
- void* _tmp4__target = NULL;
+ CompletionCallback _tmp4_;
+ void* _tmp4__target;
#line 198 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp4_ = self->priv->callback;
#line 198 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1112,11 +1112,11 @@ static gpointer _notification_object_ref0 (gpointer self) {
void background_job_notify (BackgroundJob* self, NotificationCallback callback, void* callback_target, NotificationObject* user) {
- gint _tmp7_ = 0;
+ gint _tmp7_;
InterlockedNotificationObject* interlocked = NULL;
- NotificationObject* _tmp8_ = NULL;
- InterlockedNotificationObject* _tmp9_ = NULL;
- InterlockedNotificationObject* _tmp10_ = NULL;
+ NotificationObject* _tmp8_;
+ InterlockedNotificationObject* _tmp9_;
+ InterlockedNotificationObject* _tmp10_;
GError * _inner_error_ = NULL;
#line 209 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_if_fail (IS_BACKGROUND_JOB (self));
@@ -1124,19 +1124,19 @@ void background_job_notify (BackgroundJob* self, NotificationCallback callback,
g_return_if_fail ((user == NULL) || IS_NOTIFICATION_OBJECT (user));
#line 1126 "BackgroundJob.c"
{
- GeeArrayList* _tmp0_ = NULL;
+ 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"
{
- GeeArrayList* _tmp1_ = NULL;
- NotificationCallback _tmp2_ = NULL;
- void* _tmp2__target = NULL;
- NotificationObject* _tmp3_ = NULL;
- BackgroundJobNotificationJob* _tmp4_ = NULL;
- BackgroundJobNotificationJob* _tmp5_ = NULL;
+ GeeArrayList* _tmp1_;
+ NotificationCallback _tmp2_;
+ void* _tmp2__target;
+ NotificationObject* _tmp3_;
+ BackgroundJobNotificationJob* _tmp4_;
+ BackgroundJobNotificationJob* _tmp5_;
#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"
@@ -1157,7 +1157,7 @@ void background_job_notify (BackgroundJob* self, NotificationCallback callback,
}
__finally13:
{
- GeeArrayList* _tmp6_ = NULL;
+ GeeArrayList* _tmp6_;
#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp6_ = background_job_notify_queue;
#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1190,7 +1190,7 @@ void background_job_notify (BackgroundJob* self, NotificationCallback callback,
#line 219 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp10_ != NULL) {
#line 1193 "BackgroundJob.c"
- InterlockedNotificationObject* _tmp11_ = NULL;
+ InterlockedNotificationObject* _tmp11_;
#line 220 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp11_ = interlocked;
#line 220 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1206,19 +1206,19 @@ void background_job_notify (BackgroundJob* self, NotificationCallback callback,
static gboolean background_job_on_notification_ready (BackgroundJob* self) {
gboolean result = FALSE;
BackgroundJobNotificationJob* notification_job = NULL;
- BackgroundJobNotificationJob* _tmp8_ = NULL;
- BackgroundJobNotificationJob* _tmp9_ = NULL;
- NotificationCallback _tmp10_ = NULL;
- void* _tmp10__target = NULL;
- BackgroundJobNotificationJob* _tmp11_ = NULL;
- BackgroundJob* _tmp12_ = NULL;
- BackgroundJobNotificationJob* _tmp13_ = NULL;
- NotificationObject* _tmp14_ = NULL;
+ BackgroundJobNotificationJob* _tmp8_;
+ BackgroundJobNotificationJob* _tmp9_;
+ NotificationCallback _tmp10_;
+ void* _tmp10__target;
+ BackgroundJobNotificationJob* _tmp11_;
+ BackgroundJob* _tmp12_;
+ BackgroundJobNotificationJob* _tmp13_;
+ NotificationObject* _tmp14_;
InterlockedNotificationObject* interlocked = NULL;
- BackgroundJobNotificationJob* _tmp15_ = NULL;
- NotificationObject* _tmp16_ = NULL;
- InterlockedNotificationObject* _tmp17_ = NULL;
- InterlockedNotificationObject* _tmp18_ = NULL;
+ BackgroundJobNotificationJob* _tmp15_;
+ NotificationObject* _tmp16_;
+ InterlockedNotificationObject* _tmp17_;
+ InterlockedNotificationObject* _tmp18_;
GError * _inner_error_ = NULL;
#line 223 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_val_if_fail (IS_BACKGROUND_JOB (self), FALSE);
@@ -1226,16 +1226,16 @@ static gboolean background_job_on_notification_ready (BackgroundJob* self) {
notification_job = NULL;
#line 1228 "BackgroundJob.c"
{
- GeeArrayList* _tmp0_ = NULL;
+ 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"
{
- GeeArrayList* _tmp1_ = NULL;
- gint _tmp2_ = 0;
- gint _tmp3_ = 0;
+ GeeArrayList* _tmp1_;
+ gint _tmp2_;
+ gint _tmp3_;
#line 228 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp1_ = background_job_notify_queue;
#line 228 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1245,8 +1245,8 @@ static gboolean background_job_on_notification_ready (BackgroundJob* self) {
#line 228 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp3_ > 0) {
#line 1248 "BackgroundJob.c"
- GeeArrayList* _tmp4_ = NULL;
- gpointer _tmp5_ = NULL;
+ GeeArrayList* _tmp4_;
+ gpointer _tmp5_;
#line 229 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp4_ = background_job_notify_queue;
#line 229 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1260,7 +1260,7 @@ static gboolean background_job_on_notification_ready (BackgroundJob* self) {
}
__finally14:
{
- GeeArrayList* _tmp6_ = NULL;
+ GeeArrayList* _tmp6_;
#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp6_ = background_job_notify_queue;
#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1315,7 +1315,7 @@ static gboolean background_job_on_notification_ready (BackgroundJob* self) {
#line 237 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (_tmp18_ != NULL) {
#line 1318 "BackgroundJob.c"
- InterlockedNotificationObject* _tmp19_ = NULL;
+ InterlockedNotificationObject* _tmp19_;
#line 238 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp19_ = interlocked;
#line 238 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1336,12 +1336,12 @@ static gboolean background_job_on_notification_ready (BackgroundJob* self) {
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_ = NULL;
- void* _tmp0__target = NULL;
- BackgroundJob* _tmp1_ = NULL;
- BackgroundJob* _tmp2_ = NULL;
- NotificationObject* _tmp3_ = NULL;
- NotificationObject* _tmp4_ = NULL;
+ NotificationCallback _tmp0_;
+ void* _tmp0__target;
+ BackgroundJob* _tmp1_;
+ BackgroundJob* _tmp2_;
+ NotificationObject* _tmp3_;
+ NotificationObject* _tmp4_;
#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"
@@ -1427,7 +1427,7 @@ static gchar* background_job_value_notification_job_collect_value (GValue* value
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (collect_values[0].v_pointer) {
#line 1430 "BackgroundJob.c"
- BackgroundJobNotificationJob* object;
+ 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) {
@@ -1454,7 +1454,7 @@ static gchar* background_job_value_notification_job_collect_value (GValue* value
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;
+ BackgroundJobNotificationJob ** object_p;
object_p = collect_values[0].v_pointer;
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (!object_p) {
@@ -1506,7 +1506,7 @@ static gpointer background_job_value_get_notification_job (const GValue* value)
static void background_job_value_set_notification_job (GValue* value, gpointer v_object) {
- BackgroundJobNotificationJob* old;
+ 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));
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1537,7 +1537,7 @@ static void background_job_value_set_notification_job (GValue* value, gpointer v
static void background_job_value_take_notification_job (GValue* value, gpointer v_object) {
- BackgroundJobNotificationJob* old;
+ 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));
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1581,7 +1581,7 @@ static void background_job_notification_job_instance_init (BackgroundJobNotifica
}
-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);
@@ -1610,7 +1610,7 @@ static GType background_job_notification_job_get_type (void) {
static gpointer background_job_notification_job_ref (gpointer instance) {
- BackgroundJobNotificationJob* self;
+ BackgroundJobNotificationJob * self;
self = instance;
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_atomic_int_inc (&self->ref_count);
@@ -1621,7 +1621,7 @@ static gpointer background_job_notification_job_ref (gpointer instance) {
static void background_job_notification_job_unref (gpointer instance) {
- BackgroundJobNotificationJob* self;
+ BackgroundJobNotificationJob * self;
self = instance;
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
@@ -1676,7 +1676,7 @@ static gchar* value_background_job_collect_value (GValue* value, guint n_collect
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (collect_values[0].v_pointer) {
#line 1679 "BackgroundJob.c"
- BackgroundJob* object;
+ 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) {
@@ -1703,7 +1703,7 @@ static gchar* value_background_job_collect_value (GValue* value, guint n_collect
static gchar* value_background_job_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
- BackgroundJob** object_p;
+ BackgroundJob ** object_p;
object_p = collect_values[0].v_pointer;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (!object_p) {
@@ -1755,7 +1755,7 @@ gpointer value_get_background_job (const GValue* value) {
void value_set_background_job (GValue* value, gpointer v_object) {
- BackgroundJob* old;
+ 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));
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1786,7 +1786,7 @@ void value_set_background_job (GValue* value, gpointer v_object) {
void value_take_background_job (GValue* value, gpointer v_object) {
- BackgroundJob* old;
+ 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));
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1815,7 +1815,7 @@ void value_take_background_job (GValue* value, gpointer v_object) {
static void background_job_class_init (BackgroundJobClass * klass) {
- GeeArrayList* _tmp0_ = NULL;
+ GeeArrayList* _tmp0_;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
background_job_parent_class = g_type_class_peek_parent (klass);
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1823,9 +1823,9 @@ static void background_job_class_init (BackgroundJobClass * klass) {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_type_class_add_private (klass, sizeof (BackgroundJobPrivate));
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- ((BackgroundJobClass *) klass)->execute = (void (*)(BackgroundJob*)) background_job_real_execute;
+ ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) background_job_real_execute;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- ((BackgroundJobClass *) klass)->get_priority = (BackgroundJobJobPriority (*)(BackgroundJob*)) background_job_real_get_priority;
+ ((BackgroundJobClass *) klass)->get_priority = (BackgroundJobJobPriority (*) (BackgroundJob *)) background_job_real_get_priority;
#line 96 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_rec_mutex_init (&__lock_background_job_notify_queue);
#line 96 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1853,7 +1853,7 @@ static void background_job_instance_init (BackgroundJob * self) {
}
-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);
@@ -1886,7 +1886,7 @@ GType background_job_get_type (void) {
gpointer background_job_ref (gpointer instance) {
- BackgroundJob* self;
+ BackgroundJob * self;
self = instance;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_atomic_int_inc (&self->ref_count);
@@ -1897,7 +1897,7 @@ gpointer background_job_ref (gpointer instance) {
void background_job_unref (gpointer instance) {
- BackgroundJob* self;
+ BackgroundJob * self;
self = instance;
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {