summaryrefslogtreecommitdiff
path: root/src/threads/BackgroundJob.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-04-14 18:51:46 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-04-14 18:51:46 +0200
commit9e7cd144725a270e0460b21747619f447ca87684 (patch)
tree77916a766425839c1a2466afd2eb1244371b6b9b /src/threads/BackgroundJob.c
parent3253d99365813f2d2ffd05e10cbb8c11f53d746e (diff)
New upstream version 0.26.1upstream/0.26.1
Diffstat (limited to 'src/threads/BackgroundJob.c')
-rw-r--r--src/threads/BackgroundJob.c200
1 files changed, 101 insertions, 99 deletions
diff --git a/src/threads/BackgroundJob.c b/src/threads/BackgroundJob.c
index ec7c78f..cfb54d3 100644
--- a/src/threads/BackgroundJob.c
+++ b/src/threads/BackgroundJob.c
@@ -1,4 +1,4 @@
-/* BackgroundJob.c generated by valac 0.34.4, the Vala compiler
+/* BackgroundJob.c generated by valac 0.34.7, the Vala compiler
* generated from BackgroundJob.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -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* _tmp7_ = NULL;
BackgroundJobNotificationJob* _tmp8_ = NULL;
- NotificationCallback _tmp9_ = NULL;
- void* _tmp9__target = NULL;
- BackgroundJobNotificationJob* _tmp10_ = NULL;
- BackgroundJob* _tmp11_ = NULL;
- BackgroundJobNotificationJob* _tmp12_ = NULL;
- NotificationObject* _tmp13_ = NULL;
+ BackgroundJobNotificationJob* _tmp9_ = NULL;
+ NotificationCallback _tmp10_ = NULL;
+ void* _tmp10__target = NULL;
+ BackgroundJobNotificationJob* _tmp11_ = NULL;
+ BackgroundJob* _tmp12_ = NULL;
+ BackgroundJobNotificationJob* _tmp13_ = NULL;
+ NotificationObject* _tmp14_ = NULL;
InterlockedNotificationObject* interlocked = NULL;
- BackgroundJobNotificationJob* _tmp14_ = NULL;
- NotificationObject* _tmp15_ = NULL;
- InterlockedNotificationObject* _tmp16_ = NULL;
+ BackgroundJobNotificationJob* _tmp15_ = NULL;
+ NotificationObject* _tmp16_ = NULL;
InterlockedNotificationObject* _tmp17_ = NULL;
+ InterlockedNotificationObject* _tmp18_ = NULL;
GError * _inner_error_ = NULL;
#line 223 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_return_val_if_fail (IS_BACKGROUND_JOB (self), FALSE);
@@ -1239,7 +1239,7 @@ static gboolean background_job_on_notification_ready (BackgroundJob* self) {
#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"
- _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 228 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_tmp3_ = _tmp2_;
#line 228 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1269,6 +1269,8 @@ static gboolean background_job_on_notification_ready (BackgroundJob* self) {
}
#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1273 "BackgroundJob.c"
+ gboolean _tmp7_ = FALSE;
#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
_background_job_notification_job_unref0 (notification_job);
#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
@@ -1276,49 +1278,49 @@ static gboolean background_job_on_notification_ready (BackgroundJob* self) {
#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
g_clear_error (&_inner_error_);
#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- return FALSE;
-#line 1281 "BackgroundJob.c"
+ return _tmp7_;
+#line 1283 "BackgroundJob.c"
}
}
#line 231 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp7_ = notification_job;
+ _tmp8_ = notification_job;
#line 231 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _vala_assert (_tmp7_ != NULL, "notification_job != null");
+ _vala_assert (_tmp8_ != NULL, "notification_job != null");
#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp8_ = notification_job;
+ _tmp9_ = notification_job;
#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp9_ = _tmp8_->callback;
+ _tmp10_ = _tmp9_->callback;
#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp9__target = _tmp8_->callback_target;
+ _tmp10__target = _tmp9_->callback_target;
#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp10_ = notification_job;
+ _tmp11_ = notification_job;
#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp11_ = _tmp10_->background_job;
+ _tmp12_ = _tmp11_->background_job;
#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp12_ = notification_job;
+ _tmp13_ = notification_job;
#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp13_ = _tmp12_->user;
+ _tmp14_ = _tmp13_->user;
#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp9_ (_tmp11_, _tmp13_, _tmp9__target);
+ _tmp10_ (_tmp12_, _tmp14_, _tmp10__target);
#line 236 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp14_ = notification_job;
+ _tmp15_ = notification_job;
#line 236 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp15_ = _tmp14_->user;
+ _tmp16_ = _tmp15_->user;
#line 236 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp16_ = _notification_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, TYPE_INTERLOCKED_NOTIFICATION_OBJECT) ? ((InterlockedNotificationObject*) _tmp15_) : NULL);
+ _tmp17_ = _notification_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, TYPE_INTERLOCKED_NOTIFICATION_OBJECT) ? ((InterlockedNotificationObject*) _tmp16_) : NULL);
#line 236 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- interlocked = _tmp16_;
+ interlocked = _tmp17_;
#line 237 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp17_ = interlocked;
+ _tmp18_ = interlocked;
#line 237 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- if (_tmp17_ != NULL) {
-#line 1316 "BackgroundJob.c"
- InterlockedNotificationObject* _tmp18_ = NULL;
+ if (_tmp18_ != NULL) {
+#line 1318 "BackgroundJob.c"
+ InterlockedNotificationObject* _tmp19_ = NULL;
#line 238 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- _tmp18_ = interlocked;
+ _tmp19_ = interlocked;
#line 238 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
- interlocked_notification_object_internal_completed (_tmp18_);
-#line 1322 "BackgroundJob.c"
+ interlocked_notification_object_internal_completed (_tmp19_);
+#line 1324 "BackgroundJob.c"
}
#line 240 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
result = FALSE;
@@ -1328,7 +1330,7 @@ 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 1332 "BackgroundJob.c"
+#line 1334 "BackgroundJob.c"
}
@@ -1372,21 +1374,21 @@ static BackgroundJobNotificationJob* background_job_notification_job_construct (
self->user = _tmp4_;
#line 88 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return self;
-#line 1376 "BackgroundJob.c"
+#line 1378 "BackgroundJob.c"
}
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 1383 "BackgroundJob.c"
+#line 1385 "BackgroundJob.c"
}
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 1390 "BackgroundJob.c"
+#line 1392 "BackgroundJob.c"
}
@@ -1395,7 +1397,7 @@ static void background_job_value_notification_job_free_value (GValue* value) {
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 1399 "BackgroundJob.c"
+#line 1401 "BackgroundJob.c"
}
}
@@ -1405,11 +1407,11 @@ static void background_job_value_notification_job_copy_value (const GValue* src_
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 1409 "BackgroundJob.c"
+#line 1411 "BackgroundJob.c"
} else {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
dest_value->data[0].v_pointer = NULL;
-#line 1413 "BackgroundJob.c"
+#line 1415 "BackgroundJob.c"
}
}
@@ -1417,37 +1419,37 @@ static void background_job_value_notification_job_copy_value (const GValue* src_
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 1421 "BackgroundJob.c"
+#line 1423 "BackgroundJob.c"
}
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 1428 "BackgroundJob.c"
+#line 1430 "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 1435 "BackgroundJob.c"
+#line 1437 "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 1439 "BackgroundJob.c"
+#line 1441 "BackgroundJob.c"
}
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = background_job_notification_job_ref (object);
-#line 1443 "BackgroundJob.c"
+#line 1445 "BackgroundJob.c"
} else {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 1447 "BackgroundJob.c"
+#line 1449 "BackgroundJob.c"
}
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return NULL;
-#line 1451 "BackgroundJob.c"
+#line 1453 "BackgroundJob.c"
}
@@ -1458,25 +1460,25 @@ static gchar* background_job_value_notification_job_lcopy_value (const GValue* v
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 1462 "BackgroundJob.c"
+#line 1464 "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 1468 "BackgroundJob.c"
+#line 1470 "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 1472 "BackgroundJob.c"
+#line 1474 "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 1476 "BackgroundJob.c"
+#line 1478 "BackgroundJob.c"
}
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return NULL;
-#line 1480 "BackgroundJob.c"
+#line 1482 "BackgroundJob.c"
}
@@ -1490,7 +1492,7 @@ 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 1494 "BackgroundJob.c"
+#line 1496 "BackgroundJob.c"
}
@@ -1499,7 +1501,7 @@ static gpointer background_job_value_get_notification_job (const GValue* value)
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 1503 "BackgroundJob.c"
+#line 1505 "BackgroundJob.c"
}
@@ -1519,17 +1521,17 @@ 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 1523 "BackgroundJob.c"
+#line 1525 "BackgroundJob.c"
} else {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 1527 "BackgroundJob.c"
+#line 1529 "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 1533 "BackgroundJob.c"
+#line 1535 "BackgroundJob.c"
}
}
@@ -1548,17 +1550,17 @@ 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 1552 "BackgroundJob.c"
+#line 1554 "BackgroundJob.c"
} else {
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 1556 "BackgroundJob.c"
+#line 1558 "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 1562 "BackgroundJob.c"
+#line 1564 "BackgroundJob.c"
}
}
@@ -1568,14 +1570,14 @@ static void background_job_notification_job_class_init (BackgroundJobNotificatio
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 1572 "BackgroundJob.c"
+#line 1574 "BackgroundJob.c"
}
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 1579 "BackgroundJob.c"
+#line 1581 "BackgroundJob.c"
}
@@ -1589,7 +1591,7 @@ 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 1593 "BackgroundJob.c"
+#line 1595 "BackgroundJob.c"
}
@@ -1614,7 +1616,7 @@ static gpointer background_job_notification_job_ref (gpointer instance) {
g_atomic_int_inc (&self->ref_count);
#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return instance;
-#line 1618 "BackgroundJob.c"
+#line 1620 "BackgroundJob.c"
}
@@ -1627,7 +1629,7 @@ 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 1631 "BackgroundJob.c"
+#line 1633 "BackgroundJob.c"
}
}
@@ -1635,7 +1637,7 @@ static void background_job_notification_job_unref (gpointer instance) {
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 1639 "BackgroundJob.c"
+#line 1641 "BackgroundJob.c"
}
@@ -1644,7 +1646,7 @@ static void value_background_job_free_value (GValue* value) {
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 1648 "BackgroundJob.c"
+#line 1650 "BackgroundJob.c"
}
}
@@ -1654,11 +1656,11 @@ static void value_background_job_copy_value (const GValue* src_value, GValue* de
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 1658 "BackgroundJob.c"
+#line 1660 "BackgroundJob.c"
} else {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
dest_value->data[0].v_pointer = NULL;
-#line 1662 "BackgroundJob.c"
+#line 1664 "BackgroundJob.c"
}
}
@@ -1666,37 +1668,37 @@ static void value_background_job_copy_value (const GValue* src_value, GValue* de
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 1670 "BackgroundJob.c"
+#line 1672 "BackgroundJob.c"
}
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 1677 "BackgroundJob.c"
+#line 1679 "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 1684 "BackgroundJob.c"
+#line 1686 "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 1688 "BackgroundJob.c"
+#line 1690 "BackgroundJob.c"
}
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = background_job_ref (object);
-#line 1692 "BackgroundJob.c"
+#line 1694 "BackgroundJob.c"
} else {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 1696 "BackgroundJob.c"
+#line 1698 "BackgroundJob.c"
}
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return NULL;
-#line 1700 "BackgroundJob.c"
+#line 1702 "BackgroundJob.c"
}
@@ -1707,25 +1709,25 @@ static gchar* value_background_job_lcopy_value (const GValue* value, guint n_col
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 1711 "BackgroundJob.c"
+#line 1713 "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 1717 "BackgroundJob.c"
+#line 1719 "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 1721 "BackgroundJob.c"
+#line 1723 "BackgroundJob.c"
} else {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
*object_p = background_job_ref (value->data[0].v_pointer);
-#line 1725 "BackgroundJob.c"
+#line 1727 "BackgroundJob.c"
}
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return NULL;
-#line 1729 "BackgroundJob.c"
+#line 1731 "BackgroundJob.c"
}
@@ -1739,7 +1741,7 @@ 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 1743 "BackgroundJob.c"
+#line 1745 "BackgroundJob.c"
}
@@ -1748,7 +1750,7 @@ gpointer value_get_background_job (const GValue* value) {
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 1752 "BackgroundJob.c"
+#line 1754 "BackgroundJob.c"
}
@@ -1768,17 +1770,17 @@ 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 1772 "BackgroundJob.c"
+#line 1774 "BackgroundJob.c"
} else {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 1776 "BackgroundJob.c"
+#line 1778 "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 1782 "BackgroundJob.c"
+#line 1784 "BackgroundJob.c"
}
}
@@ -1797,17 +1799,17 @@ 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 1801 "BackgroundJob.c"
+#line 1803 "BackgroundJob.c"
} else {
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
value->data[0].v_pointer = NULL;
-#line 1805 "BackgroundJob.c"
+#line 1807 "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 1811 "BackgroundJob.c"
+#line 1813 "BackgroundJob.c"
}
}
@@ -1821,16 +1823,16 @@ 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 = 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 = 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"
- _tmp0_ = gee_array_list_new (BACKGROUND_JOB_TYPE_NOTIFICATION_JOB, (GBoxedCopyFunc) background_job_notification_job_ref, background_job_notification_job_unref, NULL, NULL, NULL);
+ _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 1834 "BackgroundJob.c"
+#line 1836 "BackgroundJob.c"
}
@@ -1847,7 +1849,7 @@ 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 1851 "BackgroundJob.c"
+#line 1853 "BackgroundJob.c"
}
@@ -1865,7 +1867,7 @@ 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 1869 "BackgroundJob.c"
+#line 1871 "BackgroundJob.c"
}
@@ -1890,7 +1892,7 @@ gpointer background_job_ref (gpointer instance) {
g_atomic_int_inc (&self->ref_count);
#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala"
return instance;
-#line 1894 "BackgroundJob.c"
+#line 1896 "BackgroundJob.c"
}
@@ -1903,7 +1905,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 1907 "BackgroundJob.c"
+#line 1909 "BackgroundJob.c"
}
}