summaryrefslogtreecommitdiff
path: root/src/camera/CameraTable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/camera/CameraTable.c')
-rw-r--r--src/camera/CameraTable.c1680
1 files changed, 864 insertions, 816 deletions
diff --git a/src/camera/CameraTable.c b/src/camera/CameraTable.c
index bbf944b..864a4e8 100644
--- a/src/camera/CameraTable.c
+++ b/src/camera/CameraTable.c
@@ -1,4 +1,4 @@
-/* CameraTable.c generated by valac 0.34.7, the Vala compiler
+/* CameraTable.c generated by valac 0.36.6, the Vala compiler
* generated from CameraTable.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -103,6 +103,12 @@ typedef struct _LibraryWindowClass LibraryWindowClass;
#define _gp_list_unref0(var) ((var == NULL) ? NULL : (var = (gp_list_unref (var), NULL)))
#define _discovered_camera_unref0(var) ((var == NULL) ? NULL : (var = (discovered_camera_unref (var), NULL)))
typedef struct _ParamSpecCameraTable ParamSpecCameraTable;
+enum {
+ CAMERA_TABLE_CAMERA_ADDED_SIGNAL,
+ CAMERA_TABLE_CAMERA_REMOVED_SIGNAL,
+ CAMERA_TABLE_LAST_SIGNAL
+};
+static guint camera_table_signals[CAMERA_TABLE_LAST_SIGNAL] = {0};
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
@@ -174,7 +180,7 @@ enum {
};
DiscoveredCamera* discovered_camera_new (Camera* gcamera, const gchar* uri, const gchar* display_name, const gchar* icon);
DiscoveredCamera* discovered_camera_construct (GType object_type, Camera* gcamera, const gchar* uri, const gchar* display_name, const gchar* icon);
-static void discovered_camera_finalize (DiscoveredCamera* obj);
+static void discovered_camera_finalize (DiscoveredCamera * obj);
gpointer camera_table_ref (gpointer instance);
void camera_table_unref (gpointer instance);
GParamSpec* param_spec_camera_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
@@ -221,18 +227,18 @@ gint camera_table_get_count (CameraTable* self);
DiscoveredCamera* camera_table_get_for_uri (CameraTable* self, const gchar* uri);
static void camera_table_do_op (CameraTable* self, int res, const gchar* op, GError** error);
static gchar** camera_table_get_all_usb_cameras (CameraTable* self, int* result_length1);
-static void _vala_array_add66 (gchar*** array, int* length, int* size, gchar* value);
+static void _vala_array_add66 (gchar** * array, int* length, int* size, gchar* value);
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
-static gboolean camera_table_usb_esp (CameraTable* self, gint current_camera_count, gchar** usb_cameras, int usb_cameras_length1, const gchar* port, gchar** full_port);
+static gboolean camera_table_usb_esp (CameraTable* self, gint current_camera_count, gchar** usb_cameras, int usb_cameras_length1, const gchar* port, gchar* * full_port);
gchar* camera_table_get_port_uri (const gchar* port);
gchar* camera_table_get_port_path (const gchar* port);
static gchar* camera_table_get_name_for_uuid (CameraTable* self, const gchar* uuid);
static gchar* camera_table_get_icon_for_uuid (CameraTable* self, const gchar* uuid);
-static void _vala_array_add67 (DiscoveredCamera*** array, int* length, int* size, DiscoveredCamera* value);
+static void _vala_array_add67 (DiscoveredCamera** * array, int* length, int* size, DiscoveredCamera* value);
void one_shot_scheduler_after_timeout (OneShotScheduler* self, guint msec, gboolean reschedule);
static void g_cclosure_user_marshal_VOID__DISCOVERED_CAMERA (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
-static void camera_table_finalize (CameraTable* obj);
+static void camera_table_finalize (CameraTable * obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
@@ -241,20 +247,20 @@ static const gchar* CAMERA_TABLE_SUBSYSTEMS[3] = {"usb", "block", NULL};
static gpointer _GPHOTO_REF_CAMERA0 (gpointer self) {
#line 14 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return self ? GPHOTO_REF_CAMERA (self) : NULL;
-#line 245 "CameraTable.c"
+#line 251 "CameraTable.c"
}
DiscoveredCamera* discovered_camera_construct (GType object_type, Camera* gcamera, const gchar* uri, const gchar* display_name, const gchar* icon) {
DiscoveredCamera* self = NULL;
- Camera* _tmp0_ = NULL;
- Camera* _tmp1_ = NULL;
- const gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- const gchar* _tmp4_ = NULL;
- gchar* _tmp5_ = NULL;
- const gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
+ Camera* _tmp0_;
+ Camera* _tmp1_;
+ const gchar* _tmp2_;
+ gchar* _tmp3_;
+ const gchar* _tmp4_;
+ gchar* _tmp5_;
+ const gchar* _tmp6_;
+ gchar* _tmp7_;
#line 13 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_val_if_fail (gcamera != NULL, NULL);
#line 13 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -297,21 +303,21 @@ DiscoveredCamera* discovered_camera_construct (GType object_type, Camera* gcamer
self->icon = _tmp7_;
#line 13 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return self;
-#line 301 "CameraTable.c"
+#line 307 "CameraTable.c"
}
DiscoveredCamera* discovered_camera_new (Camera* gcamera, const gchar* uri, const gchar* display_name, const gchar* icon) {
#line 13 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return discovered_camera_construct (TYPE_DISCOVERED_CAMERA, gcamera, uri, display_name, icon);
-#line 308 "CameraTable.c"
+#line 314 "CameraTable.c"
}
static void value_discovered_camera_init (GValue* value) {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
value->data[0].v_pointer = NULL;
-#line 315 "CameraTable.c"
+#line 321 "CameraTable.c"
}
@@ -320,7 +326,7 @@ static void value_discovered_camera_free_value (GValue* value) {
if (value->data[0].v_pointer) {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
discovered_camera_unref (value->data[0].v_pointer);
-#line 324 "CameraTable.c"
+#line 330 "CameraTable.c"
}
}
@@ -330,11 +336,11 @@ static void value_discovered_camera_copy_value (const GValue* src_value, GValue*
if (src_value->data[0].v_pointer) {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
dest_value->data[0].v_pointer = discovered_camera_ref (src_value->data[0].v_pointer);
-#line 334 "CameraTable.c"
+#line 340 "CameraTable.c"
} else {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
dest_value->data[0].v_pointer = NULL;
-#line 338 "CameraTable.c"
+#line 344 "CameraTable.c"
}
}
@@ -342,66 +348,66 @@ static void value_discovered_camera_copy_value (const GValue* src_value, GValue*
static gpointer value_discovered_camera_peek_pointer (const GValue* value) {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return value->data[0].v_pointer;
-#line 346 "CameraTable.c"
+#line 352 "CameraTable.c"
}
static gchar* value_discovered_camera_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (collect_values[0].v_pointer) {
-#line 353 "CameraTable.c"
- DiscoveredCamera* object;
+#line 359 "CameraTable.c"
+ DiscoveredCamera * object;
object = collect_values[0].v_pointer;
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (object->parent_instance.g_class == NULL) {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 360 "CameraTable.c"
+#line 366 "CameraTable.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.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 364 "CameraTable.c"
+#line 370 "CameraTable.c"
}
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
value->data[0].v_pointer = discovered_camera_ref (object);
-#line 368 "CameraTable.c"
+#line 374 "CameraTable.c"
} else {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
value->data[0].v_pointer = NULL;
-#line 372 "CameraTable.c"
+#line 378 "CameraTable.c"
}
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return NULL;
-#line 376 "CameraTable.c"
+#line 382 "CameraTable.c"
}
static gchar* value_discovered_camera_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
- DiscoveredCamera** object_p;
+ DiscoveredCamera ** object_p;
object_p = collect_values[0].v_pointer;
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (!object_p) {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 387 "CameraTable.c"
+#line 393 "CameraTable.c"
}
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (!value->data[0].v_pointer) {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
*object_p = NULL;
-#line 393 "CameraTable.c"
+#line 399 "CameraTable.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
*object_p = value->data[0].v_pointer;
-#line 397 "CameraTable.c"
+#line 403 "CameraTable.c"
} else {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
*object_p = discovered_camera_ref (value->data[0].v_pointer);
-#line 401 "CameraTable.c"
+#line 407 "CameraTable.c"
}
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return NULL;
-#line 405 "CameraTable.c"
+#line 411 "CameraTable.c"
}
@@ -415,7 +421,7 @@ GParamSpec* param_spec_discovered_camera (const gchar* name, const gchar* nick,
G_PARAM_SPEC (spec)->value_type = object_type;
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return G_PARAM_SPEC (spec);
-#line 419 "CameraTable.c"
+#line 425 "CameraTable.c"
}
@@ -424,12 +430,12 @@ gpointer value_get_discovered_camera (const GValue* value) {
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DISCOVERED_CAMERA), NULL);
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return value->data[0].v_pointer;
-#line 428 "CameraTable.c"
+#line 434 "CameraTable.c"
}
void value_set_discovered_camera (GValue* value, gpointer v_object) {
- DiscoveredCamera* old;
+ DiscoveredCamera * old;
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DISCOVERED_CAMERA));
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -444,23 +450,23 @@ void value_set_discovered_camera (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
discovered_camera_ref (value->data[0].v_pointer);
-#line 448 "CameraTable.c"
+#line 454 "CameraTable.c"
} else {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
value->data[0].v_pointer = NULL;
-#line 452 "CameraTable.c"
+#line 458 "CameraTable.c"
}
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (old) {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
discovered_camera_unref (old);
-#line 458 "CameraTable.c"
+#line 464 "CameraTable.c"
}
}
void value_take_discovered_camera (GValue* value, gpointer v_object) {
- DiscoveredCamera* old;
+ DiscoveredCamera * old;
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DISCOVERED_CAMERA));
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -473,17 +479,17 @@ void value_take_discovered_camera (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
value->data[0].v_pointer = v_object;
-#line 477 "CameraTable.c"
+#line 483 "CameraTable.c"
} else {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
value->data[0].v_pointer = NULL;
-#line 481 "CameraTable.c"
+#line 487 "CameraTable.c"
}
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (old) {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
discovered_camera_unref (old);
-#line 487 "CameraTable.c"
+#line 493 "CameraTable.c"
}
}
@@ -493,18 +499,18 @@ static void discovered_camera_class_init (DiscoveredCameraClass * klass) {
discovered_camera_parent_class = g_type_class_peek_parent (klass);
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
((DiscoveredCameraClass *) klass)->finalize = discovered_camera_finalize;
-#line 497 "CameraTable.c"
+#line 503 "CameraTable.c"
}
static void discovered_camera_instance_init (DiscoveredCamera * self) {
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
self->ref_count = 1;
-#line 504 "CameraTable.c"
+#line 510 "CameraTable.c"
}
-static void discovered_camera_finalize (DiscoveredCamera* obj) {
+static void discovered_camera_finalize (DiscoveredCamera * obj) {
DiscoveredCamera * self;
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DISCOVERED_CAMERA, DiscoveredCamera);
@@ -518,7 +524,7 @@ static void discovered_camera_finalize (DiscoveredCamera* obj) {
_g_free0 (self->display_name);
#line 11 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (self->icon);
-#line 522 "CameraTable.c"
+#line 528 "CameraTable.c"
}
@@ -537,18 +543,18 @@ GType discovered_camera_get_type (void) {
gpointer discovered_camera_ref (gpointer instance) {
- DiscoveredCamera* self;
+ DiscoveredCamera * self;
self = instance;
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_atomic_int_inc (&self->ref_count);
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return instance;
-#line 547 "CameraTable.c"
+#line 553 "CameraTable.c"
}
void discovered_camera_unref (gpointer instance) {
- DiscoveredCamera* self;
+ DiscoveredCamera * self;
self = instance;
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
@@ -556,7 +562,7 @@ void discovered_camera_unref (gpointer instance) {
DISCOVERED_CAMERA_GET_CLASS (self)->finalize (self);
#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 560 "CameraTable.c"
+#line 566 "CameraTable.c"
}
}
@@ -564,28 +570,28 @@ void discovered_camera_unref (gpointer instance) {
static void _camera_table_on_update_cameras_one_shot_callback (gpointer self) {
#line 42 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
camera_table_on_update_cameras ((CameraTable*) self);
-#line 568 "CameraTable.c"
+#line 574 "CameraTable.c"
}
static void _camera_table_on_udev_event_g_udev_client_uevent (GUdevClient* _sender, const gchar* action, GUdevDevice* device, gpointer self) {
#line 46 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
camera_table_on_udev_event ((CameraTable*) self, action, device);
-#line 575 "CameraTable.c"
+#line 581 "CameraTable.c"
}
static void _camera_table_on_volume_changed_g_volume_monitor_volume_changed (GVolumeMonitor* _sender, GVolume* volume, gpointer self) {
#line 48 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
camera_table_on_volume_changed ((CameraTable*) self, volume);
-#line 582 "CameraTable.c"
+#line 588 "CameraTable.c"
}
static void _camera_table_on_volume_changed_g_volume_monitor_volume_added (GVolumeMonitor* _sender, GVolume* volume, gpointer self) {
#line 49 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
camera_table_on_volume_changed ((CameraTable*) self, volume);
-#line 589 "CameraTable.c"
+#line 595 "CameraTable.c"
}
@@ -594,17 +600,17 @@ static gboolean _camera_table_delayed_init_gsource_func (gpointer self) {
result = camera_table_delayed_init ((CameraTable*) self);
#line 54 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 598 "CameraTable.c"
+#line 604 "CameraTable.c"
}
static CameraTable* camera_table_construct (GType object_type) {
CameraTable* self = NULL;
- OneShotScheduler* _tmp0_ = NULL;
- GUdevClient* _tmp1_ = NULL;
- GVolumeMonitor* _tmp2_ = NULL;
- GVolumeMonitor* _tmp3_ = NULL;
- GVolumeMonitor* _tmp4_ = NULL;
+ OneShotScheduler* _tmp0_;
+ GUdevClient* _tmp1_;
+ GVolumeMonitor* _tmp2_;
+ GVolumeMonitor* _tmp3_;
+ GVolumeMonitor* _tmp4_;
#line 41 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
self = (CameraTable*) g_type_create_instance (object_type);
#line 42 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -635,23 +641,23 @@ static CameraTable* camera_table_construct (GType object_type) {
g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 500, _camera_table_delayed_init_gsource_func, camera_table_ref (self), camera_table_unref);
#line 41 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return self;
-#line 639 "CameraTable.c"
+#line 645 "CameraTable.c"
}
static CameraTable* camera_table_new (void) {
#line 41 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return camera_table_construct (TYPE_CAMERA_TABLE);
-#line 646 "CameraTable.c"
+#line 652 "CameraTable.c"
}
static gboolean camera_table_delayed_init (CameraTable* self) {
gboolean result = FALSE;
- AppWindow* _tmp0_ = NULL;
- LibraryWindow* _tmp1_ = NULL;
- AppWindow* _tmp10_ = NULL;
- LibraryWindow* _tmp11_ = NULL;
+ AppWindow* _tmp0_;
+ LibraryWindow* _tmp1_;
+ AppWindow* _tmp10_;
+ LibraryWindow* _tmp11_;
GError * _inner_error_ = NULL;
#line 57 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_val_if_fail (IS_CAMERA_TABLE (self), FALSE);
@@ -663,18 +669,18 @@ static gboolean camera_table_delayed_init (CameraTable* self) {
library_window_set_page_switching_enabled (_tmp1_, FALSE);
#line 60 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_object_unref0 (_tmp1_);
-#line 667 "CameraTable.c"
+#line 673 "CameraTable.c"
{
#line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
camera_table_init_camera_table (self, &_inner_error_);
#line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 673 "CameraTable.c"
+#line 679 "CameraTable.c"
gboolean _tmp2_ = FALSE;
#line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 677 "CameraTable.c"
- goto __catch57_gphoto_error;
+#line 683 "CameraTable.c"
+ goto __catch58_gphoto_error;
}
#line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -682,15 +688,15 @@ static gboolean camera_table_delayed_init (CameraTable* self) {
g_clear_error (&_inner_error_);
#line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return _tmp2_;
-#line 686 "CameraTable.c"
+#line 692 "CameraTable.c"
}
}
- goto __finally57;
- __catch57_gphoto_error:
+ goto __finally58;
+ __catch58_gphoto_error:
{
GError* err = NULL;
- GError* _tmp3_ = NULL;
- const gchar* _tmp4_ = NULL;
+ GError* _tmp3_;
+ const gchar* _tmp4_;
#line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
err = _inner_error_;
#line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -707,12 +713,12 @@ static gboolean camera_table_delayed_init (CameraTable* self) {
_g_error_free0 (err);
#line 67 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 711 "CameraTable.c"
+#line 717 "CameraTable.c"
}
- __finally57:
+ __finally58:
#line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 716 "CameraTable.c"
+#line 722 "CameraTable.c"
gboolean _tmp5_ = FALSE;
#line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -720,19 +726,19 @@ static gboolean camera_table_delayed_init (CameraTable* self) {
g_clear_error (&_inner_error_);
#line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return _tmp5_;
-#line 724 "CameraTable.c"
+#line 730 "CameraTable.c"
}
{
#line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
camera_table_update_camera_table (self, &_inner_error_);
#line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 731 "CameraTable.c"
+#line 737 "CameraTable.c"
gboolean _tmp6_ = FALSE;
#line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 735 "CameraTable.c"
- goto __catch58_gphoto_error;
+#line 741 "CameraTable.c"
+ goto __catch59_gphoto_error;
}
#line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -740,15 +746,15 @@ static gboolean camera_table_delayed_init (CameraTable* self) {
g_clear_error (&_inner_error_);
#line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return _tmp6_;
-#line 744 "CameraTable.c"
+#line 750 "CameraTable.c"
}
}
- goto __finally58;
- __catch58_gphoto_error:
+ goto __finally59;
+ __catch59_gphoto_error:
{
GError* err = NULL;
- GError* _tmp7_ = NULL;
- const gchar* _tmp8_ = NULL;
+ GError* _tmp7_;
+ const gchar* _tmp8_;
#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
err = _inner_error_;
#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -761,12 +767,12 @@ static gboolean camera_table_delayed_init (CameraTable* self) {
g_warning ("CameraTable.vala:73: Unable to update camera table: %s", _tmp8_);
#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_error_free0 (err);
-#line 765 "CameraTable.c"
+#line 771 "CameraTable.c"
}
- __finally58:
+ __finally59:
#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 770 "CameraTable.c"
+#line 776 "CameraTable.c"
gboolean _tmp9_ = FALSE;
#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -774,7 +780,7 @@ static gboolean camera_table_delayed_init (CameraTable* self) {
g_clear_error (&_inner_error_);
#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return _tmp9_;
-#line 778 "CameraTable.c"
+#line 784 "CameraTable.c"
}
#line 78 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp10_ = app_window_get_instance ();
@@ -788,35 +794,35 @@ static gboolean camera_table_delayed_init (CameraTable* self) {
result = FALSE;
#line 79 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 792 "CameraTable.c"
+#line 798 "CameraTable.c"
}
static gpointer _camera_table_ref0 (gpointer self) {
#line 86 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return self ? camera_table_ref (self) : NULL;
-#line 799 "CameraTable.c"
+#line 805 "CameraTable.c"
}
CameraTable* camera_table_get_instance (void) {
CameraTable* result = NULL;
- CameraTable* _tmp0_ = NULL;
- CameraTable* _tmp2_ = NULL;
- CameraTable* _tmp3_ = NULL;
+ CameraTable* _tmp0_;
+ CameraTable* _tmp2_;
+ CameraTable* _tmp3_;
#line 83 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp0_ = camera_table_instance;
#line 83 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp0_ == NULL) {
-#line 812 "CameraTable.c"
- CameraTable* _tmp1_ = NULL;
+#line 818 "CameraTable.c"
+ CameraTable* _tmp1_;
#line 84 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp1_ = camera_table_new ();
#line 84 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_camera_table_unref0 (camera_table_instance);
#line 84 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
camera_table_instance = _tmp1_;
-#line 820 "CameraTable.c"
+#line 826 "CameraTable.c"
}
#line 86 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp2_ = camera_table_instance;
@@ -826,15 +832,15 @@ CameraTable* camera_table_get_instance (void) {
result = _tmp3_;
#line 86 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 830 "CameraTable.c"
+#line 836 "CameraTable.c"
}
GeeIterable* camera_table_get_cameras (CameraTable* self) {
GeeIterable* result = NULL;
- GeeHashMap* _tmp0_ = NULL;
- GeeCollection* _tmp1_ = NULL;
- GeeCollection* _tmp2_ = NULL;
+ GeeHashMap* _tmp0_;
+ GeeCollection* _tmp1_;
+ GeeCollection* _tmp2_;
#line 89 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_val_if_fail (IS_CAMERA_TABLE (self), NULL);
#line 90 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -847,15 +853,15 @@ GeeIterable* camera_table_get_cameras (CameraTable* self) {
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable);
#line 90 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 851 "CameraTable.c"
+#line 857 "CameraTable.c"
}
gint camera_table_get_count (CameraTable* self) {
gint result = 0;
- GeeHashMap* _tmp0_ = NULL;
- gint _tmp1_ = 0;
- gint _tmp2_ = 0;
+ GeeHashMap* _tmp0_;
+ gint _tmp1_;
+ gint _tmp2_;
#line 93 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_val_if_fail (IS_CAMERA_TABLE (self), 0);
#line 94 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -868,15 +874,15 @@ gint camera_table_get_count (CameraTable* self) {
result = _tmp2_;
#line 94 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 872 "CameraTable.c"
+#line 878 "CameraTable.c"
}
DiscoveredCamera* camera_table_get_for_uri (CameraTable* self, const gchar* uri) {
DiscoveredCamera* result = NULL;
- GeeHashMap* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- gpointer _tmp2_ = NULL;
+ GeeHashMap* _tmp0_;
+ const gchar* _tmp1_;
+ gpointer _tmp2_;
#line 97 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_val_if_fail (IS_CAMERA_TABLE (self), NULL);
#line 97 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -891,12 +897,12 @@ DiscoveredCamera* camera_table_get_for_uri (CameraTable* self, const gchar* uri)
result = (DiscoveredCamera*) _tmp2_;
#line 98 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 895 "CameraTable.c"
+#line 901 "CameraTable.c"
}
static void camera_table_do_op (CameraTable* self, int res, const gchar* op, GError** error) {
- int _tmp0_ = 0;
+ int _tmp0_;
GError * _inner_error_ = NULL;
#line 101 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_if_fail (IS_CAMERA_TABLE (self));
@@ -906,12 +912,12 @@ static void camera_table_do_op (CameraTable* self, int res, const gchar* op, GEr
_tmp0_ = res;
#line 102 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp0_ != GP_OK) {
-#line 910 "CameraTable.c"
- int _tmp1_ = 0;
- const gchar* _tmp2_ = NULL;
- int _tmp3_ = 0;
- const gchar* _tmp4_ = NULL;
- GError* _tmp5_ = NULL;
+#line 916 "CameraTable.c"
+ int _tmp1_;
+ const gchar* _tmp2_;
+ int _tmp3_;
+ const gchar* _tmp4_;
+ GError* _tmp5_;
#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp1_ = res;
#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -930,7 +936,7 @@ static void camera_table_do_op (CameraTable* self, int res, const gchar* op, GEr
g_propagate_error (error, _inner_error_);
#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 934 "CameraTable.c"
+#line 940 "CameraTable.c"
} else {
#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -938,7 +944,7 @@ static void camera_table_do_op (CameraTable* self, int res, const gchar* op, GEr
g_clear_error (&_inner_error_);
#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 942 "CameraTable.c"
+#line 948 "CameraTable.c"
}
}
}
@@ -946,10 +952,10 @@ static void camera_table_do_op (CameraTable* self, int res, const gchar* op, GEr
static void camera_table_init_camera_table (CameraTable* self, GError** error) {
CameraAbilitiesList* _tmp0_ = NULL;
- int _tmp1_ = 0;
- CameraAbilitiesList* _tmp2_ = NULL;
- GPContext* _tmp3_ = NULL;
- int _tmp4_ = 0;
+ int _tmp1_;
+ CameraAbilitiesList* _tmp2_;
+ GPContext* _tmp3_;
+ int _tmp4_;
GError * _inner_error_ = NULL;
#line 106 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_if_fail (IS_CAMERA_TABLE (self));
@@ -969,7 +975,7 @@ static void camera_table_init_camera_table (CameraTable* self, GError** error) {
g_propagate_error (error, _inner_error_);
#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 973 "CameraTable.c"
+#line 979 "CameraTable.c"
} else {
#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -977,7 +983,7 @@ static void camera_table_init_camera_table (CameraTable* self, GError** error) {
g_clear_error (&_inner_error_);
#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 981 "CameraTable.c"
+#line 987 "CameraTable.c"
}
}
#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -996,7 +1002,7 @@ static void camera_table_init_camera_table (CameraTable* self, GError** error) {
g_propagate_error (error, _inner_error_);
#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 1000 "CameraTable.c"
+#line 1006 "CameraTable.c"
} else {
#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -1004,7 +1010,7 @@ static void camera_table_init_camera_table (CameraTable* self, GError** error) {
g_clear_error (&_inner_error_);
#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 1008 "CameraTable.c"
+#line 1014 "CameraTable.c"
}
}
}
@@ -1013,31 +1019,31 @@ static void camera_table_init_camera_table (CameraTable* self, GError** error) {
static gpointer _g_object_ref0 (gpointer self) {
#line 115 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return self ? g_object_ref (self) : NULL;
-#line 1017 "CameraTable.c"
+#line 1023 "CameraTable.c"
}
-static void _vala_array_add66 (gchar*** array, int* length, int* size, gchar* value) {
+static void _vala_array_add66 (gchar** * array, int* length, int* size, gchar* value) {
#line 135 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if ((*length) == (*size)) {
#line 135 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 135 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
-#line 1028 "CameraTable.c"
+#line 1034 "CameraTable.c"
}
#line 135 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
(*array)[(*length)++] = value;
#line 135 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
(*array)[*length] = NULL;
-#line 1034 "CameraTable.c"
+#line 1040 "CameraTable.c"
}
static void _g_object_unref0_ (gpointer var) {
#line 139 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
-#line 1041 "CameraTable.c"
+#line 1047 "CameraTable.c"
}
@@ -1046,22 +1052,22 @@ static void _g_list_free__g_object_unref0_ (GList* self) {
g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 139 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_list_free (self);
-#line 1050 "CameraTable.c"
+#line 1056 "CameraTable.c"
}
static gchar** camera_table_get_all_usb_cameras (CameraTable* self, int* result_length1) {
gchar** result = NULL;
gchar** cameras = NULL;
- gchar** _tmp0_ = NULL;
- gint cameras_length1 = 0;
- gint _cameras_size_ = 0;
+ gchar** _tmp0_;
+ gint cameras_length1;
+ gint _cameras_size_;
GList* device_list = NULL;
- GUdevClient* _tmp1_ = NULL;
- GList* _tmp2_ = NULL;
- GList* _tmp3_ = NULL;
- gchar** _tmp25_ = NULL;
- gint _tmp25__length1 = 0;
+ GUdevClient* _tmp1_;
+ GList* _tmp2_;
+ GList* _tmp3_;
+ gchar** _tmp25_;
+ gint _tmp25__length1;
#line 111 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_val_if_fail (IS_CAMERA_TABLE (self), NULL);
#line 112 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -1080,7 +1086,7 @@ static gchar** camera_table_get_all_usb_cameras (CameraTable* self, int* result_
device_list = _tmp2_;
#line 115 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp3_ = device_list;
-#line 1084 "CameraTable.c"
+#line 1090 "CameraTable.c"
{
GList* device_collection = NULL;
GList* device_it = NULL;
@@ -1088,22 +1094,22 @@ static gchar** camera_table_get_all_usb_cameras (CameraTable* self, int* result_
device_collection = _tmp3_;
#line 115 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
for (device_it = device_collection; device_it != NULL; device_it = device_it->next) {
-#line 1092 "CameraTable.c"
- GUdevDevice* _tmp4_ = NULL;
+#line 1098 "CameraTable.c"
+ GUdevDevice* _tmp4_;
GUdevDevice* device = NULL;
#line 115 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp4_ = _g_object_ref0 ((GUdevDevice*) device_it->data);
#line 115 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
device = _tmp4_;
-#line 1099 "CameraTable.c"
+#line 1105 "CameraTable.c"
{
gchar* device_file = NULL;
- GUdevDevice* _tmp5_ = NULL;
- const gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
+ GUdevDevice* _tmp5_;
+ const gchar* _tmp6_;
+ gchar* _tmp7_;
gboolean _tmp8_ = FALSE;
gboolean _tmp9_ = FALSE;
- const gchar* _tmp10_ = NULL;
+ const gchar* _tmp10_;
#line 116 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp5_ = device;
#line 116 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -1116,62 +1122,62 @@ static gchar** camera_table_get_all_usb_cameras (CameraTable* self, int* result_
_tmp10_ = device_file;
#line 120 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp10_ != NULL) {
-#line 1120 "CameraTable.c"
- GUdevDevice* _tmp11_ = NULL;
- gboolean _tmp12_ = FALSE;
+#line 1126 "CameraTable.c"
+ GUdevDevice* _tmp11_;
+ gboolean _tmp12_;
#line 121 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp11_ = device;
#line 121 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp12_ = g_udev_device_has_property (_tmp11_, "ID_GPHOTO2");
#line 121 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp9_ = _tmp12_;
-#line 1129 "CameraTable.c"
+#line 1135 "CameraTable.c"
} else {
#line 120 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp9_ = FALSE;
-#line 1133 "CameraTable.c"
+#line 1139 "CameraTable.c"
}
#line 120 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp9_) {
-#line 1137 "CameraTable.c"
- GUdevDevice* _tmp13_ = NULL;
- gboolean _tmp14_ = FALSE;
+#line 1143 "CameraTable.c"
+ GUdevDevice* _tmp13_;
+ gboolean _tmp14_;
#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp13_ = device;
#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp14_ = g_udev_device_has_property (_tmp13_, "GPHOTO2_DRIVER");
#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp8_ = _tmp14_;
-#line 1146 "CameraTable.c"
+#line 1152 "CameraTable.c"
} else {
#line 120 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp8_ = FALSE;
-#line 1150 "CameraTable.c"
+#line 1156 "CameraTable.c"
}
#line 117 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp8_) {
-#line 1154 "CameraTable.c"
+#line 1160 "CameraTable.c"
gint camera_bus = 0;
gint camera_device = 0;
- const gchar* _tmp15_ = NULL;
- gint _tmp16_ = 0;
+ const gchar* _tmp15_;
+ gint _tmp16_;
gchar* camera = NULL;
- gint _tmp18_ = 0;
- gint _tmp19_ = 0;
- gchar* _tmp20_ = NULL;
- const gchar* _tmp21_ = NULL;
- gchar** _tmp22_ = NULL;
- gint _tmp22__length1 = 0;
- const gchar* _tmp23_ = NULL;
- gchar* _tmp24_ = NULL;
+ gint _tmp18_;
+ gint _tmp19_;
+ gchar* _tmp20_;
+ const gchar* _tmp21_;
+ gchar** _tmp22_;
+ gint _tmp22__length1;
+ const gchar* _tmp23_;
+ gchar* _tmp24_;
#line 128 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp15_ = device_file;
#line 128 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp16_ = sscanf (_tmp15_, "/dev/bus/usb/%d/%d", &camera_bus, &camera_device);
#line 128 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp16_ < 2) {
-#line 1174 "CameraTable.c"
- const gchar* _tmp17_ = NULL;
+#line 1180 "CameraTable.c"
+ const gchar* _tmp17_;
#line 129 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp17_ = device_file;
#line 129 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -1183,7 +1189,7 @@ static gchar** camera_table_get_all_usb_cameras (CameraTable* self, int* result_
_g_object_unref0 (device);
#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
continue;
-#line 1186 "CameraTable.c"
+#line 1192 "CameraTable.c"
}
#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp18_ = camera_bus;
@@ -1209,13 +1215,13 @@ static gchar** camera_table_get_all_usb_cameras (CameraTable* self, int* result_
_vala_array_add66 (&cameras, &cameras_length1, &_cameras_size_, _tmp24_);
#line 117 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (camera);
-#line 1212 "CameraTable.c"
+#line 1218 "CameraTable.c"
}
#line 115 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (device_file);
#line 115 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_object_unref0 (device);
-#line 1218 "CameraTable.c"
+#line 1224 "CameraTable.c"
}
}
}
@@ -1227,7 +1233,7 @@ static gchar** camera_table_get_all_usb_cameras (CameraTable* self, int* result_
if (result_length1) {
#line 139 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
*result_length1 = _tmp25__length1;
-#line 1230 "CameraTable.c"
+#line 1236 "CameraTable.c"
}
#line 139 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
result = _tmp25_;
@@ -1235,26 +1241,26 @@ static gchar** camera_table_get_all_usb_cameras (CameraTable* self, int* result_
__g_list_free__g_object_unref0_0 (device_list);
#line 139 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 1238 "CameraTable.c"
+#line 1244 "CameraTable.c"
}
-static gboolean camera_table_usb_esp (CameraTable* self, gint current_camera_count, gchar** usb_cameras, int usb_cameras_length1, const gchar* port, gchar** full_port) {
+static gboolean camera_table_usb_esp (CameraTable* self, gint current_camera_count, gchar** usb_cameras, int usb_cameras_length1, const gchar* port, gchar* * full_port) {
gchar* _vala_full_port = NULL;
gboolean result = FALSE;
- gint _tmp0_ = 0;
- gint _tmp1_ = 0;
- const gchar* _tmp2_ = NULL;
+ gint _tmp0_;
+ gint _tmp1_;
+ const gchar* _tmp2_;
gboolean _tmp3_ = FALSE;
- gint _tmp4_ = 0;
- const gchar* _tmp11_ = NULL;
+ gint _tmp4_;
+ const gchar* _tmp11_;
gint bus = 0;
gint device = 0;
- const gchar* _tmp13_ = NULL;
- gint _tmp14_ = 0;
- gchar** _tmp16_ = NULL;
- gint _tmp16__length1 = 0;
- const gchar* _tmp30_ = NULL;
+ const gchar* _tmp13_;
+ gint _tmp14_;
+ gchar** _tmp16_;
+ gint _tmp16__length1;
+ const gchar* _tmp30_;
#line 150 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_val_if_fail (IS_CAMERA_TABLE (self), FALSE);
#line 150 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -1277,30 +1283,30 @@ static gboolean camera_table_usb_esp (CameraTable* self, gint current_camera_cou
_tmp4_ = current_camera_count;
#line 160 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp4_ == 1) {
-#line 1280 "CameraTable.c"
- gchar** _tmp5_ = NULL;
- gint _tmp5__length1 = 0;
+#line 1286 "CameraTable.c"
+ gchar** _tmp5_;
+ gint _tmp5__length1;
#line 160 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp5_ = usb_cameras;
#line 160 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp5__length1 = usb_cameras_length1;
#line 160 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp3_ = _tmp5__length1 == 1;
-#line 1289 "CameraTable.c"
+#line 1295 "CameraTable.c"
} else {
#line 160 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp3_ = FALSE;
-#line 1293 "CameraTable.c"
+#line 1299 "CameraTable.c"
}
#line 160 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp3_) {
-#line 1297 "CameraTable.c"
- gchar** _tmp6_ = NULL;
- gint _tmp6__length1 = 0;
- const gchar* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
- const gchar* _tmp9_ = NULL;
- const gchar* _tmp10_ = NULL;
+#line 1303 "CameraTable.c"
+ gchar** _tmp6_;
+ gint _tmp6__length1;
+ const gchar* _tmp7_;
+ gchar* _tmp8_;
+ const gchar* _tmp9_;
+ const gchar* _tmp10_;
#line 161 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp6_ = usb_cameras;
#line 161 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -1325,22 +1331,22 @@ static gboolean camera_table_usb_esp (CameraTable* self, gint current_camera_cou
if (full_port) {
#line 165 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
*full_port = _vala_full_port;
-#line 1328 "CameraTable.c"
+#line 1334 "CameraTable.c"
} else {
#line 165 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (_vala_full_port);
-#line 1332 "CameraTable.c"
+#line 1338 "CameraTable.c"
}
#line 165 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 1336 "CameraTable.c"
+#line 1342 "CameraTable.c"
}
#line 169 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp11_ = port;
#line 169 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (g_strcmp0 (_tmp11_, "usb:") == 0) {
-#line 1342 "CameraTable.c"
- const gchar* _tmp12_ = NULL;
+#line 1348 "CameraTable.c"
+ const gchar* _tmp12_;
#line 170 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp12_ = port;
#line 170 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -1351,15 +1357,15 @@ static gboolean camera_table_usb_esp (CameraTable* self, gint current_camera_cou
if (full_port) {
#line 172 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
*full_port = _vala_full_port;
-#line 1354 "CameraTable.c"
+#line 1360 "CameraTable.c"
} else {
#line 172 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (_vala_full_port);
-#line 1358 "CameraTable.c"
+#line 1364 "CameraTable.c"
}
#line 172 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 1362 "CameraTable.c"
+#line 1368 "CameraTable.c"
}
#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp13_ = port;
@@ -1367,8 +1373,8 @@ static gboolean camera_table_usb_esp (CameraTable* self, gint current_camera_cou
_tmp14_ = sscanf (_tmp13_, "usb:%d,%d", &bus, &device);
#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp14_ < 2) {
-#line 1370 "CameraTable.c"
- const gchar* _tmp15_ = NULL;
+#line 1376 "CameraTable.c"
+ const gchar* _tmp15_;
#line 178 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp15_ = port;
#line 178 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -1379,21 +1385,21 @@ static gboolean camera_table_usb_esp (CameraTable* self, gint current_camera_cou
if (full_port) {
#line 180 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
*full_port = _vala_full_port;
-#line 1382 "CameraTable.c"
+#line 1388 "CameraTable.c"
} else {
#line 180 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (_vala_full_port);
-#line 1386 "CameraTable.c"
+#line 1392 "CameraTable.c"
}
#line 180 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 1390 "CameraTable.c"
+#line 1396 "CameraTable.c"
}
#line 183 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp16_ = usb_cameras;
#line 183 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp16__length1 = usb_cameras_length1;
-#line 1396 "CameraTable.c"
+#line 1402 "CameraTable.c"
{
gchar** usb_camera_collection = NULL;
gint usb_camera_collection_length1 = 0;
@@ -1405,30 +1411,30 @@ static gboolean camera_table_usb_esp (CameraTable* self, gint current_camera_cou
usb_camera_collection_length1 = _tmp16__length1;
#line 183 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
for (usb_camera_it = 0; usb_camera_it < _tmp16__length1; usb_camera_it = usb_camera_it + 1) {
-#line 1408 "CameraTable.c"
- gchar* _tmp17_ = NULL;
+#line 1414 "CameraTable.c"
+ gchar* _tmp17_;
gchar* usb_camera = NULL;
#line 183 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp17_ = g_strdup (usb_camera_collection[usb_camera_it]);
#line 183 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
usb_camera = _tmp17_;
-#line 1415 "CameraTable.c"
+#line 1421 "CameraTable.c"
{
gint camera_bus = 0;
gint camera_device = 0;
- const gchar* _tmp18_ = NULL;
- gint _tmp19_ = 0;
+ const gchar* _tmp18_;
+ gint _tmp19_;
gboolean _tmp21_ = FALSE;
- gint _tmp22_ = 0;
- gint _tmp23_ = 0;
+ gint _tmp22_;
+ gint _tmp23_;
#line 185 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp18_ = usb_camera;
#line 185 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp19_ = sscanf (_tmp18_, "usb:%d,%d", &camera_bus, &camera_device);
#line 185 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp19_ < 2) {
-#line 1430 "CameraTable.c"
- const gchar* _tmp20_ = NULL;
+#line 1436 "CameraTable.c"
+ const gchar* _tmp20_;
#line 186 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp20_ = usb_camera;
#line 186 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -1437,7 +1443,7 @@ static gboolean camera_table_usb_esp (CameraTable* self, gint current_camera_cou
_g_free0 (usb_camera);
#line 188 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
continue;
-#line 1440 "CameraTable.c"
+#line 1446 "CameraTable.c"
}
#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp22_ = bus;
@@ -1445,28 +1451,28 @@ static gboolean camera_table_usb_esp (CameraTable* self, gint current_camera_cou
_tmp23_ = camera_bus;
#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp22_ == _tmp23_) {
-#line 1448 "CameraTable.c"
- gint _tmp24_ = 0;
- gint _tmp25_ = 0;
+#line 1454 "CameraTable.c"
+ gint _tmp24_;
+ gint _tmp25_;
#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp24_ = device;
#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp25_ = camera_device;
#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp21_ = _tmp24_ == _tmp25_;
-#line 1457 "CameraTable.c"
+#line 1463 "CameraTable.c"
} else {
#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp21_ = FALSE;
-#line 1461 "CameraTable.c"
+#line 1467 "CameraTable.c"
}
#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp21_) {
-#line 1465 "CameraTable.c"
- const gchar* _tmp26_ = NULL;
- gchar* _tmp27_ = NULL;
- const gchar* _tmp28_ = NULL;
- const gchar* _tmp29_ = NULL;
+#line 1471 "CameraTable.c"
+ const gchar* _tmp26_;
+ gchar* _tmp27_;
+ const gchar* _tmp28_;
+ const gchar* _tmp29_;
#line 192 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp26_ = port;
#line 192 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -1489,19 +1495,19 @@ static gboolean camera_table_usb_esp (CameraTable* self, gint current_camera_cou
if (full_port) {
#line 196 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
*full_port = _vala_full_port;
-#line 1492 "CameraTable.c"
+#line 1498 "CameraTable.c"
} else {
#line 196 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (_vala_full_port);
-#line 1496 "CameraTable.c"
+#line 1502 "CameraTable.c"
}
#line 196 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 1500 "CameraTable.c"
+#line 1506 "CameraTable.c"
}
#line 183 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (usb_camera);
-#line 1504 "CameraTable.c"
+#line 1510 "CameraTable.c"
}
}
}
@@ -1516,22 +1522,22 @@ static gboolean camera_table_usb_esp (CameraTable* self, gint current_camera_cou
if (full_port) {
#line 202 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
*full_port = _vala_full_port;
-#line 1518 "CameraTable.c"
+#line 1524 "CameraTable.c"
} else {
#line 202 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (_vala_full_port);
-#line 1522 "CameraTable.c"
+#line 1528 "CameraTable.c"
}
#line 202 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 1526 "CameraTable.c"
+#line 1532 "CameraTable.c"
}
gchar* camera_table_get_port_uri (const gchar* port) {
gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
#line 205 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_val_if_fail (port != NULL, NULL);
#line 206 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -1542,50 +1548,50 @@ gchar* camera_table_get_port_uri (const gchar* port) {
result = _tmp1_;
#line 206 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 1544 "CameraTable.c"
+#line 1550 "CameraTable.c"
}
static glong string_strnlen (gchar* str, glong maxlen) {
glong result = 0L;
gchar* end = NULL;
- gchar* _tmp0_ = NULL;
- glong _tmp1_ = 0L;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
-#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ gchar* _tmp0_;
+ glong _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp0_ = str;
-#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp1_ = maxlen;
-#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
-#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
end = _tmp2_;
-#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1323 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp3_ = end;
-#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1323 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp3_ == NULL) {
-#line 1567 "CameraTable.c"
- glong _tmp4_ = 0L;
-#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1573 "CameraTable.c"
+ glong _tmp4_;
+#line 1324 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp4_ = maxlen;
-#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1324 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
result = _tmp4_;
-#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1324 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return result;
-#line 1575 "CameraTable.c"
+#line 1581 "CameraTable.c"
} else {
- gchar* _tmp5_ = NULL;
- gchar* _tmp6_ = NULL;
-#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ gchar* _tmp5_;
+ gchar* _tmp6_;
+#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp5_ = end;
-#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp6_ = str;
-#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
result = (glong) (_tmp5_ - _tmp6_);
-#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return result;
-#line 1587 "CameraTable.c"
+#line 1593 "CameraTable.c"
}
}
@@ -1594,242 +1600,284 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) {
gchar* result = NULL;
glong string_length = 0L;
gboolean _tmp0_ = FALSE;
- glong _tmp1_ = 0L;
- glong _tmp8_ = 0L;
- glong _tmp14_ = 0L;
- glong _tmp17_ = 0L;
- glong _tmp18_ = 0L;
- glong _tmp19_ = 0L;
- glong _tmp20_ = 0L;
- glong _tmp21_ = 0L;
- gchar* _tmp22_ = NULL;
-#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ glong _tmp1_;
+ glong _tmp8_;
+ glong _tmp14_;
+ glong _tmp17_;
+ glong _tmp18_;
+ glong _tmp19_;
+ glong _tmp20_;
+ glong _tmp21_;
+ gchar* _tmp22_;
+#line 1333 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp1_ = offset;
-#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp1_ >= ((glong) 0)) {
-#line 1611 "CameraTable.c"
- glong _tmp2_ = 0L;
-#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1617 "CameraTable.c"
+ glong _tmp2_;
+#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp2_ = len;
-#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp0_ = _tmp2_ >= ((glong) 0);
-#line 1617 "CameraTable.c"
+#line 1623 "CameraTable.c"
} else {
-#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp0_ = FALSE;
-#line 1621 "CameraTable.c"
+#line 1627 "CameraTable.c"
}
-#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp0_) {
-#line 1625 "CameraTable.c"
- glong _tmp3_ = 0L;
- glong _tmp4_ = 0L;
- glong _tmp5_ = 0L;
-#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1631 "CameraTable.c"
+ glong _tmp3_;
+ glong _tmp4_;
+ glong _tmp5_;
+#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp3_ = offset;
-#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp4_ = len;
-#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
-#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
string_length = _tmp5_;
-#line 1637 "CameraTable.c"
+#line 1643 "CameraTable.c"
} else {
- gint _tmp6_ = 0;
- gint _tmp7_ = 0;
-#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ gint _tmp6_;
+ gint _tmp7_;
+#line 1339 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp6_ = strlen (self);
-#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1339 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp7_ = _tmp6_;
-#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1339 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
string_length = (glong) _tmp7_;
-#line 1647 "CameraTable.c"
+#line 1653 "CameraTable.c"
}
-#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1342 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp8_ = offset;
-#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1342 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp8_ < ((glong) 0)) {
-#line 1653 "CameraTable.c"
- glong _tmp9_ = 0L;
- glong _tmp10_ = 0L;
- glong _tmp11_ = 0L;
-#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1659 "CameraTable.c"
+ glong _tmp9_;
+ glong _tmp10_;
+ glong _tmp11_;
+#line 1343 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp9_ = string_length;
-#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1343 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp10_ = offset;
-#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1343 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
offset = _tmp9_ + _tmp10_;
-#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1344 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp11_ = offset;
-#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1344 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
-#line 1667 "CameraTable.c"
+#line 1673 "CameraTable.c"
} else {
- glong _tmp12_ = 0L;
- glong _tmp13_ = 0L;
-#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ glong _tmp12_;
+ glong _tmp13_;
+#line 1346 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp12_ = offset;
-#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1346 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp13_ = string_length;
-#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1346 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
-#line 1677 "CameraTable.c"
+#line 1683 "CameraTable.c"
}
-#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1348 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp14_ = len;
-#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1348 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp14_ < ((glong) 0)) {
-#line 1683 "CameraTable.c"
- glong _tmp15_ = 0L;
- glong _tmp16_ = 0L;
-#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1689 "CameraTable.c"
+ glong _tmp15_;
+ glong _tmp16_;
+#line 1349 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp15_ = string_length;
-#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1349 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp16_ = offset;
-#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1349 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
len = _tmp15_ - _tmp16_;
-#line 1692 "CameraTable.c"
+#line 1698 "CameraTable.c"
}
-#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp17_ = offset;
-#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp18_ = len;
-#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp19_ = string_length;
-#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
-#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp20_ = offset;
-#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp21_ = len;
-#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
-#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
result = _tmp22_;
-#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return result;
-#line 1712 "CameraTable.c"
+#line 1718 "CameraTable.c"
}
static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
gchar* result = NULL;
+ gboolean _tmp0_ = FALSE;
+ gboolean _tmp1_ = FALSE;
GError * _inner_error_ = NULL;
-#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (old != NULL, NULL);
-#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (replacement != NULL, NULL);
-#line 1725 "CameraTable.c"
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ if ((*((gchar*) self)) == '\0') {
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp1_ = TRUE;
+#line 1737 "CameraTable.c"
+ } else {
+ const gchar* _tmp2_;
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp2_ = old;
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp1_ = (*((gchar*) _tmp2_)) == '\0';
+#line 1744 "CameraTable.c"
+ }
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ if (_tmp1_) {
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp0_ = TRUE;
+#line 1750 "CameraTable.c"
+ } else {
+ const gchar* _tmp3_;
+ const gchar* _tmp4_;
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp3_ = old;
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp4_ = replacement;
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp0_ = g_strcmp0 (_tmp3_, _tmp4_) == 0;
+#line 1760 "CameraTable.c"
+ }
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ if (_tmp0_) {
+#line 1764 "CameraTable.c"
+ gchar* _tmp5_;
+#line 1409 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp5_ = g_strdup (self);
+#line 1409 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ result = _tmp5_;
+#line 1409 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ return result;
+#line 1772 "CameraTable.c"
+ }
{
GRegex* regex = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
- GRegex* _tmp3_ = NULL;
- GRegex* _tmp4_ = NULL;
- gchar* _tmp5_ = NULL;
- GRegex* _tmp6_ = NULL;
- const gchar* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
- gchar* _tmp9_ = NULL;
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp0_ = old;
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp1_ = g_regex_escape_string (_tmp0_, -1);
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _g_free0 (_tmp2_);
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- regex = _tmp4_;
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ const gchar* _tmp6_;
+ gchar* _tmp7_;
+ gchar* _tmp8_;
+ GRegex* _tmp9_;
+ GRegex* _tmp10_;
+ gchar* _tmp11_ = NULL;
+ GRegex* _tmp12_;
+ const gchar* _tmp13_;
+ gchar* _tmp14_;
+ gchar* _tmp15_;
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp6_ = old;
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp7_ = g_regex_escape_string (_tmp6_, -1);
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp8_ = _tmp7_;
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp9_ = g_regex_new (_tmp8_, 0, 0, &_inner_error_);
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp10_ = _tmp9_;
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _g_free0 (_tmp8_);
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ regex = _tmp10_;
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 1756 "CameraTable.c"
- goto __catch59_g_regex_error;
+#line 1804 "CameraTable.c"
+ goto __catch60_g_regex_error;
}
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return NULL;
-#line 1765 "CameraTable.c"
+#line 1813 "CameraTable.c"
}
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp6_ = regex;
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp7_ = replacement;
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_);
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp5_ = _tmp8_;
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp12_ = regex;
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp13_ = replacement;
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp14_ = g_regex_replace_literal (_tmp12_, self, (gssize) -1, 0, _tmp13_, 0, &_inner_error_);
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp11_ = _tmp14_;
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 1781 "CameraTable.c"
- goto __catch59_g_regex_error;
+#line 1829 "CameraTable.c"
+ goto __catch60_g_regex_error;
}
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return NULL;
-#line 1792 "CameraTable.c"
+#line 1840 "CameraTable.c"
}
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp9_ = _tmp5_;
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp5_ = NULL;
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- result = _tmp9_;
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _g_free0 (_tmp5_);
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp15_ = _tmp11_;
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp11_ = NULL;
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ result = _tmp15_;
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _g_free0 (_tmp11_);
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return result;
-#line 1806 "CameraTable.c"
+#line 1854 "CameraTable.c"
}
- goto __finally59;
- __catch59_g_regex_error:
+ goto __finally60;
+ __catch60_g_regex_error:
{
GError* e = NULL;
-#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
e = _inner_error_;
-#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_inner_error_ = NULL;
-#line 1385 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1415 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_assert_not_reached ();
-#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_g_error_free0 (e);
-#line 1820 "CameraTable.c"
+#line 1868 "CameraTable.c"
}
- __finally59:
-#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ __finally60:
+#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return NULL;
-#line 1831 "CameraTable.c"
+#line 1879 "CameraTable.c"
}
}
@@ -1837,8 +1885,8 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar*
gchar* camera_table_get_port_path (const gchar* port) {
gchar* result = NULL;
gchar* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
+ const gchar* _tmp1_;
+ gboolean _tmp2_;
#line 209 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_val_if_fail (port != NULL, NULL);
#line 211 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -1847,13 +1895,13 @@ gchar* camera_table_get_port_path (const gchar* port) {
_tmp2_ = g_str_has_prefix (_tmp1_, "usb:");
#line 211 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp2_) {
-#line 1849 "CameraTable.c"
- const gchar* _tmp3_ = NULL;
- gchar* _tmp4_ = NULL;
- gchar* _tmp5_ = NULL;
- gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
+#line 1897 "CameraTable.c"
+ const gchar* _tmp3_;
+ gchar* _tmp4_;
+ gchar* _tmp5_;
+ gchar* _tmp6_;
+ gchar* _tmp7_;
+ gchar* _tmp8_;
#line 212 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp3_ = port;
#line 212 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -1874,26 +1922,26 @@ gchar* camera_table_get_port_path (const gchar* port) {
_g_free0 (_tmp7_);
#line 212 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (_tmp5_);
-#line 1876 "CameraTable.c"
+#line 1924 "CameraTable.c"
} else {
#line 212 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (_tmp0_);
#line 212 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp0_ = NULL;
-#line 1882 "CameraTable.c"
+#line 1930 "CameraTable.c"
}
#line 211 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
result = _tmp0_;
#line 211 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 1888 "CameraTable.c"
+#line 1936 "CameraTable.c"
}
static gchar* camera_table_get_name_for_uuid (CameraTable* self, const gchar* uuid) {
gchar* result = NULL;
- GVolumeMonitor* _tmp0_ = NULL;
- GList* _tmp1_ = NULL;
+ GVolumeMonitor* _tmp0_;
+ GList* _tmp1_;
#line 215 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_val_if_fail (IS_CAMERA_TABLE (self), NULL);
#line 215 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -1902,7 +1950,7 @@ static gchar* camera_table_get_name_for_uuid (CameraTable* self, const gchar* uu
_tmp0_ = self->priv->volume_monitor;
#line 216 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp1_ = g_volume_monitor_get_volumes (_tmp0_);
-#line 1904 "CameraTable.c"
+#line 1952 "CameraTable.c"
{
GList* volume_collection = NULL;
GList* volume_it = NULL;
@@ -1910,20 +1958,20 @@ static gchar* camera_table_get_name_for_uuid (CameraTable* self, const gchar* uu
volume_collection = _tmp1_;
#line 216 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
for (volume_it = volume_collection; volume_it != NULL; volume_it = volume_it->next) {
-#line 1912 "CameraTable.c"
- GVolume* _tmp2_ = NULL;
+#line 1960 "CameraTable.c"
+ GVolume* _tmp2_;
GVolume* volume = NULL;
#line 216 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp2_ = _g_object_ref0 ((GVolume*) volume_it->data);
#line 216 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
volume = _tmp2_;
-#line 1919 "CameraTable.c"
+#line 1967 "CameraTable.c"
{
- GVolume* _tmp3_ = NULL;
- gchar* _tmp4_ = NULL;
- gchar* _tmp5_ = NULL;
- const gchar* _tmp6_ = NULL;
- gboolean _tmp7_ = FALSE;
+ GVolume* _tmp3_;
+ gchar* _tmp4_;
+ gchar* _tmp5_;
+ const gchar* _tmp6_;
+ gboolean _tmp7_;
#line 217 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp3_ = volume;
#line 217 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -1938,9 +1986,9 @@ static gchar* camera_table_get_name_for_uuid (CameraTable* self, const gchar* uu
_g_free0 (_tmp5_);
#line 217 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp7_) {
-#line 1940 "CameraTable.c"
- GVolume* _tmp8_ = NULL;
- gchar* _tmp9_ = NULL;
+#line 1988 "CameraTable.c"
+ GVolume* _tmp8_;
+ gchar* _tmp9_;
#line 218 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp8_ = volume;
#line 218 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -1953,29 +2001,29 @@ static gchar* camera_table_get_name_for_uuid (CameraTable* self, const gchar* uu
__g_list_free__g_object_unref0_0 (volume_collection);
#line 218 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 1955 "CameraTable.c"
+#line 2003 "CameraTable.c"
}
#line 216 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_object_unref0 (volume);
-#line 1959 "CameraTable.c"
+#line 2007 "CameraTable.c"
}
}
#line 216 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
__g_list_free__g_object_unref0_0 (volume_collection);
-#line 1964 "CameraTable.c"
+#line 2012 "CameraTable.c"
}
#line 221 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
result = NULL;
#line 221 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 1970 "CameraTable.c"
+#line 2018 "CameraTable.c"
}
static gchar* camera_table_get_icon_for_uuid (CameraTable* self, const gchar* uuid) {
gchar* result = NULL;
- GVolumeMonitor* _tmp0_ = NULL;
- GList* _tmp1_ = NULL;
+ GVolumeMonitor* _tmp0_;
+ GList* _tmp1_;
#line 224 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_val_if_fail (IS_CAMERA_TABLE (self), NULL);
#line 224 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -1984,7 +2032,7 @@ static gchar* camera_table_get_icon_for_uuid (CameraTable* self, const gchar* uu
_tmp0_ = self->priv->volume_monitor;
#line 225 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp1_ = g_volume_monitor_get_volumes (_tmp0_);
-#line 1986 "CameraTable.c"
+#line 2034 "CameraTable.c"
{
GList* volume_collection = NULL;
GList* volume_it = NULL;
@@ -1992,20 +2040,20 @@ static gchar* camera_table_get_icon_for_uuid (CameraTable* self, const gchar* uu
volume_collection = _tmp1_;
#line 225 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
for (volume_it = volume_collection; volume_it != NULL; volume_it = volume_it->next) {
-#line 1994 "CameraTable.c"
- GVolume* _tmp2_ = NULL;
+#line 2042 "CameraTable.c"
+ GVolume* _tmp2_;
GVolume* volume = NULL;
#line 225 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp2_ = _g_object_ref0 ((GVolume*) volume_it->data);
#line 225 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
volume = _tmp2_;
-#line 2001 "CameraTable.c"
+#line 2049 "CameraTable.c"
{
- GVolume* _tmp3_ = NULL;
- gchar* _tmp4_ = NULL;
- gchar* _tmp5_ = NULL;
- const gchar* _tmp6_ = NULL;
- gboolean _tmp7_ = FALSE;
+ GVolume* _tmp3_;
+ gchar* _tmp4_;
+ gchar* _tmp5_;
+ const gchar* _tmp6_;
+ gboolean _tmp7_;
#line 226 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp3_ = volume;
#line 226 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -2020,12 +2068,12 @@ static gchar* camera_table_get_icon_for_uuid (CameraTable* self, const gchar* uu
_g_free0 (_tmp5_);
#line 226 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp7_) {
-#line 2022 "CameraTable.c"
- GVolume* _tmp8_ = NULL;
- GIcon* _tmp9_ = NULL;
- GIcon* _tmp10_ = NULL;
- gchar* _tmp11_ = NULL;
- gchar* _tmp12_ = NULL;
+#line 2070 "CameraTable.c"
+ GVolume* _tmp8_;
+ GIcon* _tmp9_;
+ GIcon* _tmp10_;
+ gchar* _tmp11_;
+ gchar* _tmp12_;
#line 227 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp8_ = volume;
#line 227 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -2046,76 +2094,76 @@ static gchar* camera_table_get_icon_for_uuid (CameraTable* self, const gchar* uu
__g_list_free__g_object_unref0_0 (volume_collection);
#line 227 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 2048 "CameraTable.c"
+#line 2096 "CameraTable.c"
}
#line 225 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_object_unref0 (volume);
-#line 2052 "CameraTable.c"
+#line 2100 "CameraTable.c"
}
}
#line 225 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
__g_list_free__g_object_unref0_0 (volume_collection);
-#line 2057 "CameraTable.c"
+#line 2105 "CameraTable.c"
}
#line 230 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
result = NULL;
#line 230 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return result;
-#line 2063 "CameraTable.c"
+#line 2111 "CameraTable.c"
}
static gpointer _discovered_camera_ref0 (gpointer self) {
#line 292 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return self ? discovered_camera_ref (self) : NULL;
-#line 2070 "CameraTable.c"
+#line 2118 "CameraTable.c"
}
-static void _vala_array_add67 (DiscoveredCamera*** array, int* length, int* size, DiscoveredCamera* value) {
+static void _vala_array_add67 (DiscoveredCamera** * array, int* length, int* size, DiscoveredCamera* value) {
#line 292 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if ((*length) == (*size)) {
#line 292 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 292 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
*array = g_renew (DiscoveredCamera*, *array, (*size) + 1);
-#line 2081 "CameraTable.c"
+#line 2129 "CameraTable.c"
}
#line 292 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
(*array)[(*length)++] = value;
#line 292 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
(*array)[*length] = NULL;
-#line 2087 "CameraTable.c"
+#line 2135 "CameraTable.c"
}
static void camera_table_update_camera_table (CameraTable* self, GError** error) {
GPPortInfoList* port_info_list = NULL;
GPPortInfoList* _tmp0_ = NULL;
- int _tmp1_ = 0;
- GPPortInfoList* _tmp2_ = NULL;
- int _tmp3_ = 0;
+ int _tmp1_;
+ GPPortInfoList* _tmp2_;
+ int _tmp3_;
CameraList* camera_list = NULL;
CameraList* _tmp4_ = NULL;
- int _tmp5_ = 0;
- CameraAbilitiesList* _tmp6_ = NULL;
- GPPortInfoList* _tmp7_ = NULL;
- CameraList* _tmp8_ = NULL;
- GPContext* _tmp9_ = NULL;
- int _tmp10_ = 0;
+ int _tmp5_;
+ CameraAbilitiesList* _tmp6_;
+ GPPortInfoList* _tmp7_;
+ CameraList* _tmp8_;
+ GPContext* _tmp9_;
+ int _tmp10_;
GeeHashMap* detected_map = NULL;
- GeeHashMap* _tmp11_ = NULL;
+ GeeHashMap* _tmp11_;
gchar** usb_cameras = NULL;
- gint _tmp12_ = 0;
- gchar** _tmp13_ = NULL;
- gint usb_cameras_length1 = 0;
- gint _usb_cameras_size_ = 0;
+ gint _tmp12_;
+ gchar** _tmp13_;
+ gint usb_cameras_length1;
+ gint _usb_cameras_size_;
DiscoveredCamera** missing = NULL;
- DiscoveredCamera** _tmp47_ = NULL;
- gint missing_length1 = 0;
- gint _missing_size_ = 0;
- DiscoveredCamera** _tmp80_ = NULL;
- gint _tmp80__length1 = 0;
+ DiscoveredCamera** _tmp47_;
+ gint missing_length1;
+ gint _missing_size_;
+ DiscoveredCamera** _tmp80_;
+ gint _tmp80__length1;
GError * _inner_error_ = NULL;
#line 233 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_if_fail (IS_CAMERA_TABLE (self));
@@ -2137,7 +2185,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 236 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2139 "CameraTable.c"
+#line 2187 "CameraTable.c"
} else {
#line 236 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_gp_port_info_list_free0 (port_info_list);
@@ -2147,7 +2195,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 236 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2149 "CameraTable.c"
+#line 2197 "CameraTable.c"
}
}
#line 237 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -2166,7 +2214,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 237 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2168 "CameraTable.c"
+#line 2216 "CameraTable.c"
} else {
#line 237 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_gp_port_info_list_free0 (port_info_list);
@@ -2176,7 +2224,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 237 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2178 "CameraTable.c"
+#line 2226 "CameraTable.c"
}
}
#line 240 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -2199,7 +2247,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 240 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2201 "CameraTable.c"
+#line 2249 "CameraTable.c"
} else {
#line 240 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_gp_list_unref0 (camera_list);
@@ -2211,7 +2259,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 240 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2213 "CameraTable.c"
+#line 2261 "CameraTable.c"
}
}
#line 241 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -2238,7 +2286,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 241 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2240 "CameraTable.c"
+#line 2288 "CameraTable.c"
} else {
#line 241 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_gp_list_unref0 (camera_list);
@@ -2250,7 +2298,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 241 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2252 "CameraTable.c"
+#line 2300 "CameraTable.c"
}
}
#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -2265,53 +2313,53 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
usb_cameras_length1 = _tmp12_;
#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_usb_cameras_size_ = usb_cameras_length1;
-#line 2267 "CameraTable.c"
+#line 2315 "CameraTable.c"
{
gint ctr = 0;
#line 249 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
ctr = 0;
-#line 2272 "CameraTable.c"
+#line 2320 "CameraTable.c"
{
gboolean _tmp14_ = FALSE;
#line 249 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp14_ = TRUE;
#line 249 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
while (TRUE) {
-#line 2279 "CameraTable.c"
- gint _tmp16_ = 0;
- CameraList* _tmp17_ = NULL;
- gint _tmp18_ = 0;
+#line 2327 "CameraTable.c"
+ gint _tmp16_;
+ CameraList* _tmp17_;
+ gint _tmp18_;
gchar* name = NULL;
- CameraList* _tmp19_ = NULL;
- gint _tmp20_ = 0;
+ CameraList* _tmp19_;
+ gint _tmp20_;
const gchar* _tmp21_ = NULL;
- int _tmp22_ = 0;
- gchar* _tmp23_ = NULL;
+ int _tmp22_;
+ gchar* _tmp23_;
gchar* port = NULL;
- CameraList* _tmp24_ = NULL;
- gint _tmp25_ = 0;
+ CameraList* _tmp24_;
+ gint _tmp25_;
const gchar* _tmp26_ = NULL;
- int _tmp27_ = 0;
- gchar* _tmp28_ = NULL;
- gint _tmp29_ = 0;
- CameraList* _tmp30_ = NULL;
- gint _tmp31_ = 0;
- const gchar* _tmp32_ = NULL;
- const gchar* _tmp33_ = NULL;
- const gchar* _tmp34_ = NULL;
- gboolean _tmp35_ = FALSE;
- GeeHashMap* _tmp44_ = NULL;
- const gchar* _tmp45_ = NULL;
- const gchar* _tmp46_ = NULL;
+ int _tmp27_;
+ gchar* _tmp28_;
+ gint _tmp29_;
+ CameraList* _tmp30_;
+ gint _tmp31_;
+ const gchar* _tmp32_;
+ const gchar* _tmp33_;
+ const gchar* _tmp34_;
+ gboolean _tmp35_;
+ GeeHashMap* _tmp44_;
+ const gchar* _tmp45_;
+ const gchar* _tmp46_;
#line 249 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (!_tmp14_) {
-#line 2307 "CameraTable.c"
- gint _tmp15_ = 0;
+#line 2355 "CameraTable.c"
+ gint _tmp15_;
#line 249 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp15_ = ctr;
#line 249 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
ctr = _tmp15_ + 1;
-#line 2313 "CameraTable.c"
+#line 2361 "CameraTable.c"
}
#line 249 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp14_ = FALSE;
@@ -2325,7 +2373,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
if (!(_tmp16_ < _tmp18_)) {
#line 249 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
break;
-#line 2327 "CameraTable.c"
+#line 2375 "CameraTable.c"
}
#line 251 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp19_ = camera_list;
@@ -2359,7 +2407,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 251 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2361 "CameraTable.c"
+#line 2409 "CameraTable.c"
} else {
#line 251 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (name);
@@ -2377,7 +2425,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 251 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2379 "CameraTable.c"
+#line 2427 "CameraTable.c"
}
}
#line 254 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -2414,7 +2462,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 254 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2416 "CameraTable.c"
+#line 2464 "CameraTable.c"
} else {
#line 254 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (port);
@@ -2434,7 +2482,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 254 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2436 "CameraTable.c"
+#line 2484 "CameraTable.c"
}
}
#line 256 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -2455,17 +2503,17 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_tmp35_ = g_str_has_prefix (_tmp34_, "usb:");
#line 259 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp35_) {
-#line 2457 "CameraTable.c"
+#line 2505 "CameraTable.c"
gchar* full_port = NULL;
- CameraList* _tmp36_ = NULL;
- gint _tmp37_ = 0;
- gchar** _tmp38_ = NULL;
- gint _tmp38__length1 = 0;
- const gchar* _tmp39_ = NULL;
+ CameraList* _tmp36_;
+ gint _tmp37_;
+ gchar** _tmp38_;
+ gint _tmp38__length1;
+ const gchar* _tmp39_;
gchar* _tmp40_ = NULL;
- gboolean _tmp41_ = FALSE;
- const gchar* _tmp42_ = NULL;
- gchar* _tmp43_ = NULL;
+ gboolean _tmp41_;
+ const gchar* _tmp42_;
+ gchar* _tmp43_;
#line 261 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp36_ = camera_list;
#line 261 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -2492,7 +2540,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_g_free0 (name);
#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
continue;
-#line 2494 "CameraTable.c"
+#line 2542 "CameraTable.c"
}
#line 264 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp42_ = full_port;
@@ -2504,7 +2552,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
port = _tmp43_;
#line 259 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (full_port);
-#line 2506 "CameraTable.c"
+#line 2554 "CameraTable.c"
}
#line 267 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp44_ = detected_map;
@@ -2518,7 +2566,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_g_free0 (port);
#line 249 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (name);
-#line 2520 "CameraTable.c"
+#line 2568 "CameraTable.c"
}
}
}
@@ -2530,15 +2578,15 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
missing_length1 = 0;
#line 271 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_missing_size_ = missing_length1;
-#line 2532 "CameraTable.c"
+#line 2580 "CameraTable.c"
{
GeeIterator* _camera_it = NULL;
- GeeHashMap* _tmp48_ = NULL;
- GeeCollection* _tmp49_ = NULL;
- GeeCollection* _tmp50_ = NULL;
- GeeCollection* _tmp51_ = NULL;
- GeeIterator* _tmp52_ = NULL;
- GeeIterator* _tmp53_ = NULL;
+ GeeHashMap* _tmp48_;
+ GeeCollection* _tmp49_;
+ GeeCollection* _tmp50_;
+ GeeCollection* _tmp51_;
+ GeeIterator* _tmp52_;
+ GeeIterator* _tmp53_;
#line 272 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp48_ = self->priv->camera_map;
#line 272 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -2557,35 +2605,35 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_camera_it = _tmp53_;
#line 272 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
while (TRUE) {
-#line 2559 "CameraTable.c"
- GeeIterator* _tmp54_ = NULL;
- gboolean _tmp55_ = FALSE;
+#line 2607 "CameraTable.c"
+ GeeIterator* _tmp54_;
+ gboolean _tmp55_;
DiscoveredCamera* camera = NULL;
- GeeIterator* _tmp56_ = NULL;
- gpointer _tmp57_ = NULL;
+ GeeIterator* _tmp56_;
+ gpointer _tmp57_;
GPPortInfo port_info = {0};
gchar* tmp_path = NULL;
- DiscoveredCamera* _tmp58_ = NULL;
- Camera* _tmp59_ = NULL;
+ DiscoveredCamera* _tmp58_;
+ Camera* _tmp59_;
GPPortInfo _tmp60_ = {0};
- int _tmp61_ = 0;
+ int _tmp61_;
const gchar* _tmp62_ = NULL;
- gchar* _tmp63_ = NULL;
+ gchar* _tmp63_;
CameraAbilities abilities = {0};
- DiscoveredCamera* _tmp64_ = NULL;
- Camera* _tmp65_ = NULL;
+ DiscoveredCamera* _tmp64_;
+ Camera* _tmp65_;
CameraAbilities _tmp66_ = {0};
- int _tmp67_ = 0;
- GeeHashMap* _tmp68_ = NULL;
- const gchar* _tmp69_ = NULL;
- gboolean _tmp70_ = FALSE;
- CameraAbilities _tmp74_ = {0};
- const gchar* _tmp75_ = NULL;
- const gchar* _tmp76_ = NULL;
- DiscoveredCamera** _tmp77_ = NULL;
- gint _tmp77__length1 = 0;
- DiscoveredCamera* _tmp78_ = NULL;
- DiscoveredCamera* _tmp79_ = NULL;
+ int _tmp67_;
+ GeeHashMap* _tmp68_;
+ const gchar* _tmp69_;
+ gboolean _tmp70_;
+ CameraAbilities _tmp74_;
+ const gchar* _tmp75_;
+ const gchar* _tmp76_;
+ DiscoveredCamera** _tmp77_;
+ gint _tmp77__length1;
+ DiscoveredCamera* _tmp78_;
+ DiscoveredCamera* _tmp79_;
#line 272 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp54_ = _camera_it;
#line 272 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -2594,7 +2642,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
if (!_tmp55_) {
#line 272 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
break;
-#line 2596 "CameraTable.c"
+#line 2644 "CameraTable.c"
}
#line 272 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp56_ = _camera_it;
@@ -2640,7 +2688,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 276 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2642 "CameraTable.c"
+#line 2690 "CameraTable.c"
} else {
#line 276 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (tmp_path);
@@ -2666,7 +2714,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 276 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2668 "CameraTable.c"
+#line 2716 "CameraTable.c"
}
}
#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -2717,7 +2765,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 282 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2719 "CameraTable.c"
+#line 2767 "CameraTable.c"
} else {
#line 282 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
(abilities);
@@ -2745,7 +2793,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 282 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2747 "CameraTable.c"
+#line 2795 "CameraTable.c"
}
}
#line 284 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -2756,10 +2804,10 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_tmp70_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp69_);
#line 284 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp70_) {
-#line 2758 "CameraTable.c"
- CameraAbilities _tmp71_ = {0};
- const gchar* _tmp72_ = NULL;
- const gchar* _tmp73_ = NULL;
+#line 2806 "CameraTable.c"
+ CameraAbilities _tmp71_;
+ const gchar* _tmp72_;
+ const gchar* _tmp73_;
#line 285 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp71_ = abilities;
#line 285 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -2778,7 +2826,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_discovered_camera_unref0 (camera);
#line 287 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
continue;
-#line 2780 "CameraTable.c"
+#line 2828 "CameraTable.c"
}
#line 290 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp74_ = abilities;
@@ -2806,17 +2854,17 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
(port_info);
#line 272 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_discovered_camera_unref0 (camera);
-#line 2808 "CameraTable.c"
+#line 2856 "CameraTable.c"
}
#line 272 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_object_unref0 (_camera_it);
-#line 2812 "CameraTable.c"
+#line 2860 "CameraTable.c"
}
#line 296 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp80_ = missing;
#line 296 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp80__length1 = missing_length1;
-#line 2818 "CameraTable.c"
+#line 2866 "CameraTable.c"
{
DiscoveredCamera** camera_collection = NULL;
gint camera_collection_length1 = 0;
@@ -2828,36 +2876,36 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
camera_collection_length1 = _tmp80__length1;
#line 296 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
for (camera_it = 0; camera_it < _tmp80__length1; camera_it = camera_it + 1) {
-#line 2830 "CameraTable.c"
- DiscoveredCamera* _tmp81_ = NULL;
+#line 2878 "CameraTable.c"
+ DiscoveredCamera* _tmp81_;
DiscoveredCamera* camera = NULL;
#line 296 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp81_ = _discovered_camera_ref0 (camera_collection[camera_it]);
#line 296 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
camera = _tmp81_;
-#line 2837 "CameraTable.c"
+#line 2885 "CameraTable.c"
{
GPPortInfo port_info = {0};
gchar* tmp_path = NULL;
- DiscoveredCamera* _tmp82_ = NULL;
- Camera* _tmp83_ = NULL;
+ DiscoveredCamera* _tmp82_;
+ Camera* _tmp83_;
GPPortInfo _tmp84_ = {0};
- int _tmp85_ = 0;
+ int _tmp85_;
const gchar* _tmp86_ = NULL;
- gchar* _tmp87_ = NULL;
+ gchar* _tmp87_;
CameraAbilities abilities = {0};
- DiscoveredCamera* _tmp88_ = NULL;
- Camera* _tmp89_ = NULL;
+ DiscoveredCamera* _tmp88_;
+ Camera* _tmp89_;
CameraAbilities _tmp90_ = {0};
- int _tmp91_ = 0;
- CameraAbilities _tmp92_ = {0};
- const gchar* _tmp93_ = NULL;
- const gchar* _tmp94_ = NULL;
- GeeHashMap* _tmp95_ = NULL;
- const gchar* _tmp96_ = NULL;
- gchar* _tmp97_ = NULL;
- gchar* _tmp98_ = NULL;
- DiscoveredCamera* _tmp99_ = NULL;
+ int _tmp91_;
+ CameraAbilities _tmp92_;
+ const gchar* _tmp93_;
+ const gchar* _tmp94_;
+ GeeHashMap* _tmp95_;
+ const gchar* _tmp96_;
+ gchar* _tmp97_;
+ gchar* _tmp98_;
+ DiscoveredCamera* _tmp99_;
#line 300 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp82_ = camera;
#line 300 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -2894,7 +2942,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 300 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2896 "CameraTable.c"
+#line 2944 "CameraTable.c"
} else {
#line 300 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (tmp_path);
@@ -2918,7 +2966,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 300 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2920 "CameraTable.c"
+#line 2968 "CameraTable.c"
}
}
#line 302 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -2967,7 +3015,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 305 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2969 "CameraTable.c"
+#line 3017 "CameraTable.c"
} else {
#line 305 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
(abilities);
@@ -2993,7 +3041,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 305 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 2995 "CameraTable.c"
+#line 3043 "CameraTable.c"
}
}
#line 307 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -3019,7 +3067,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
#line 311 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp99_ = camera;
#line 311 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_signal_emit_by_name (self, "camera-removed", _tmp99_);
+ g_signal_emit (self, camera_table_signals[CAMERA_TABLE_CAMERA_REMOVED_SIGNAL], 0, _tmp99_);
#line 296 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
(abilities);
#line 296 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -3028,18 +3076,18 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
(port_info);
#line 296 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_discovered_camera_unref0 (camera);
-#line 3030 "CameraTable.c"
+#line 3078 "CameraTable.c"
}
}
}
{
GeeIterator* _port_it = NULL;
- GeeHashMap* _tmp100_ = NULL;
- GeeSet* _tmp101_ = NULL;
- GeeSet* _tmp102_ = NULL;
- GeeSet* _tmp103_ = NULL;
- GeeIterator* _tmp104_ = NULL;
- GeeIterator* _tmp105_ = NULL;
+ GeeHashMap* _tmp100_;
+ GeeSet* _tmp101_;
+ GeeSet* _tmp102_;
+ GeeSet* _tmp103_;
+ GeeIterator* _tmp104_;
+ GeeIterator* _tmp105_;
#line 315 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp100_ = detected_map;
#line 315 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -3058,90 +3106,90 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_port_it = _tmp105_;
#line 315 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
while (TRUE) {
-#line 3060 "CameraTable.c"
- GeeIterator* _tmp106_ = NULL;
- gboolean _tmp107_ = FALSE;
+#line 3108 "CameraTable.c"
+ GeeIterator* _tmp106_;
+ gboolean _tmp107_;
gchar* port = NULL;
- GeeIterator* _tmp108_ = NULL;
- gpointer _tmp109_ = NULL;
+ GeeIterator* _tmp108_;
+ gpointer _tmp109_;
gchar* name = NULL;
- GeeHashMap* _tmp110_ = NULL;
- const gchar* _tmp111_ = NULL;
- gpointer _tmp112_ = NULL;
+ GeeHashMap* _tmp110_;
+ const gchar* _tmp111_;
+ gpointer _tmp112_;
gchar* display_name = NULL;
gchar* icon = NULL;
gchar* uri = NULL;
- const gchar* _tmp113_ = NULL;
- gchar* _tmp114_ = NULL;
- GeeHashMap* _tmp115_ = NULL;
- const gchar* _tmp116_ = NULL;
- gboolean _tmp117_ = FALSE;
+ const gchar* _tmp113_;
+ gchar* _tmp114_;
+ GeeHashMap* _tmp115_;
+ const gchar* _tmp116_;
+ gboolean _tmp117_;
gchar* path = NULL;
- const gchar* _tmp120_ = NULL;
- gchar* _tmp121_ = NULL;
- const gchar* _tmp122_ = NULL;
- const gchar* _tmp142_ = NULL;
+ const gchar* _tmp120_;
+ gchar* _tmp121_;
+ const gchar* _tmp122_;
+ const gchar* _tmp142_;
gint index = 0;
- GPPortInfoList* _tmp145_ = NULL;
- const gchar* _tmp146_ = NULL;
- gint _tmp147_ = 0;
- gint _tmp148_ = 0;
+ GPPortInfoList* _tmp145_;
+ const gchar* _tmp146_;
+ gint _tmp147_;
+ gint _tmp148_;
GPPortInfo port_info = {0};
gchar* tmp_path = NULL;
- GPPortInfoList* _tmp153_ = NULL;
- gint _tmp154_ = 0;
+ GPPortInfoList* _tmp153_;
+ gint _tmp154_;
GPPortInfo _tmp155_ = {0};
- int _tmp156_ = 0;
- const gchar* _tmp157_ = NULL;
- gchar* _tmp158_ = NULL;
- gchar* _tmp159_ = NULL;
+ int _tmp156_;
+ const gchar* _tmp157_;
+ gchar* _tmp158_;
+ gchar* _tmp159_;
const gchar* _tmp160_ = NULL;
- gchar* _tmp161_ = NULL;
- const gchar* _tmp162_ = NULL;
- const gchar* _tmp163_ = NULL;
- CameraAbilitiesList* _tmp164_ = NULL;
- const gchar* _tmp165_ = NULL;
- gint _tmp166_ = 0;
- gint _tmp167_ = 0;
+ gchar* _tmp161_;
+ const gchar* _tmp162_;
+ const gchar* _tmp163_;
+ CameraAbilitiesList* _tmp164_;
+ const gchar* _tmp165_;
+ gint _tmp166_;
+ gint _tmp167_;
CameraAbilities camera_abilities = {0};
- CameraAbilitiesList* _tmp172_ = NULL;
- gint _tmp173_ = 0;
+ CameraAbilitiesList* _tmp172_;
+ gint _tmp173_;
CameraAbilities _tmp174_ = {0};
- int _tmp175_ = 0;
- const gchar* _tmp176_ = NULL;
- gchar* _tmp177_ = NULL;
- gchar* _tmp178_ = NULL;
+ int _tmp175_;
+ const gchar* _tmp176_;
+ gchar* _tmp177_;
+ gchar* _tmp178_;
Camera* gcamera = NULL;
Camera* _tmp179_ = NULL;
- int _tmp180_ = 0;
- const gchar* _tmp181_ = NULL;
- gchar* _tmp182_ = NULL;
- gchar* _tmp183_ = NULL;
- Camera* _tmp184_ = NULL;
- CameraAbilities _tmp185_ = {0};
- int _tmp186_ = 0;
- const gchar* _tmp187_ = NULL;
- gchar* _tmp188_ = NULL;
- gchar* _tmp189_ = NULL;
- Camera* _tmp190_ = NULL;
- GPPortInfo _tmp191_ = {0};
- int _tmp192_ = 0;
- const gchar* _tmp193_ = NULL;
- const gchar* _tmp194_ = NULL;
- gchar* _tmp195_ = NULL;
- gchar* _tmp196_ = NULL;
- const gchar* _tmp197_ = NULL;
- const gchar* _tmp198_ = NULL;
+ int _tmp180_;
+ const gchar* _tmp181_;
+ gchar* _tmp182_;
+ gchar* _tmp183_;
+ Camera* _tmp184_;
+ CameraAbilities _tmp185_;
+ int _tmp186_;
+ const gchar* _tmp187_;
+ gchar* _tmp188_;
+ gchar* _tmp189_;
+ Camera* _tmp190_;
+ GPPortInfo _tmp191_;
+ int _tmp192_;
+ const gchar* _tmp193_;
+ const gchar* _tmp194_;
+ gchar* _tmp195_;
+ gchar* _tmp196_;
+ const gchar* _tmp197_;
+ const gchar* _tmp198_;
DiscoveredCamera* camera = NULL;
- Camera* _tmp199_ = NULL;
- const gchar* _tmp200_ = NULL;
- const gchar* _tmp201_ = NULL;
- const gchar* _tmp202_ = NULL;
- DiscoveredCamera* _tmp203_ = NULL;
- GeeHashMap* _tmp204_ = NULL;
- const gchar* _tmp205_ = NULL;
- DiscoveredCamera* _tmp206_ = NULL;
- DiscoveredCamera* _tmp207_ = NULL;
+ Camera* _tmp199_;
+ const gchar* _tmp200_;
+ const gchar* _tmp201_;
+ const gchar* _tmp202_;
+ DiscoveredCamera* _tmp203_;
+ GeeHashMap* _tmp204_;
+ const gchar* _tmp205_;
+ DiscoveredCamera* _tmp206_;
+ DiscoveredCamera* _tmp207_;
#line 315 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp106_ = _port_it;
#line 315 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -3150,7 +3198,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
if (!_tmp107_) {
#line 315 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
break;
-#line 3152 "CameraTable.c"
+#line 3200 "CameraTable.c"
}
#line 315 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp108_ = _port_it;
@@ -3184,9 +3232,9 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_tmp117_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp115_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp116_);
#line 321 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp117_) {
-#line 3186 "CameraTable.c"
- const gchar* _tmp118_ = NULL;
- const gchar* _tmp119_ = NULL;
+#line 3234 "CameraTable.c"
+ const gchar* _tmp118_;
+ const gchar* _tmp119_;
#line 323 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp118_ = name;
#line 323 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -3205,7 +3253,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_g_free0 (port);
#line 325 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
continue;
-#line 3207 "CameraTable.c"
+#line 3255 "CameraTable.c"
}
#line 329 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp120_ = port;
@@ -3217,18 +3265,18 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_tmp122_ = path;
#line 330 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (NULL != _tmp122_) {
-#line 3219 "CameraTable.c"
+#line 3267 "CameraTable.c"
GUdevDevice* device = NULL;
- GUdevClient* _tmp123_ = NULL;
- const gchar* _tmp124_ = NULL;
- GUdevDevice* _tmp125_ = NULL;
+ GUdevClient* _tmp123_;
+ const gchar* _tmp124_;
+ GUdevDevice* _tmp125_;
gchar* serial = NULL;
- GUdevDevice* _tmp126_ = NULL;
- const gchar* _tmp127_ = NULL;
- gchar* _tmp128_ = NULL;
- const gchar* _tmp129_ = NULL;
- const gchar* _tmp134_ = NULL;
- const gchar* _tmp138_ = NULL;
+ GUdevDevice* _tmp126_;
+ const gchar* _tmp127_;
+ gchar* _tmp128_;
+ const gchar* _tmp129_;
+ const gchar* _tmp134_;
+ const gchar* _tmp138_;
#line 331 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp123_ = self->priv->client;
#line 331 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -3249,11 +3297,11 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_tmp129_ = serial;
#line 333 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (NULL != _tmp129_) {
-#line 3251 "CameraTable.c"
- const gchar* _tmp130_ = NULL;
- gchar* _tmp131_ = NULL;
- const gchar* _tmp132_ = NULL;
- gchar* _tmp133_ = NULL;
+#line 3299 "CameraTable.c"
+ const gchar* _tmp130_;
+ gchar* _tmp131_;
+ const gchar* _tmp132_;
+ gchar* _tmp133_;
#line 335 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp130_ = serial;
#line 335 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -3270,16 +3318,16 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_g_free0 (icon);
#line 336 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
icon = _tmp133_;
-#line 3272 "CameraTable.c"
+#line 3320 "CameraTable.c"
}
#line 338 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp134_ = display_name;
#line 338 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (NULL == _tmp134_) {
-#line 3278 "CameraTable.c"
- GUdevDevice* _tmp135_ = NULL;
- const gchar* _tmp136_ = NULL;
- gchar* _tmp137_ = NULL;
+#line 3326 "CameraTable.c"
+ GUdevDevice* _tmp135_;
+ const gchar* _tmp136_;
+ gchar* _tmp137_;
#line 339 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp135_ = device;
#line 339 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -3290,16 +3338,16 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_g_free0 (display_name);
#line 339 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
display_name = _tmp137_;
-#line 3292 "CameraTable.c"
+#line 3340 "CameraTable.c"
}
#line 341 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp138_ = display_name;
#line 341 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (NULL == _tmp138_) {
-#line 3298 "CameraTable.c"
- GUdevDevice* _tmp139_ = NULL;
- const gchar* _tmp140_ = NULL;
- gchar* _tmp141_ = NULL;
+#line 3346 "CameraTable.c"
+ GUdevDevice* _tmp139_;
+ const gchar* _tmp140_;
+ gchar* _tmp141_;
#line 342 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp139_ = device;
#line 342 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -3310,21 +3358,21 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_g_free0 (display_name);
#line 342 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
display_name = _tmp141_;
-#line 3312 "CameraTable.c"
+#line 3360 "CameraTable.c"
}
#line 330 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (serial);
#line 330 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_object_unref0 (device);
-#line 3318 "CameraTable.c"
+#line 3366 "CameraTable.c"
}
#line 345 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp142_ = display_name;
#line 345 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (NULL == _tmp142_) {
-#line 3324 "CameraTable.c"
- const gchar* _tmp143_ = NULL;
- gchar* _tmp144_ = NULL;
+#line 3372 "CameraTable.c"
+ const gchar* _tmp143_;
+ gchar* _tmp144_;
#line 347 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp143_ = name;
#line 347 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -3333,7 +3381,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_g_free0 (display_name);
#line 347 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
display_name = _tmp144_;
-#line 3335 "CameraTable.c"
+#line 3383 "CameraTable.c"
}
#line 350 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp145_ = port_info_list;
@@ -3347,11 +3395,11 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_tmp148_ = index;
#line 351 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp148_ < 0) {
-#line 3349 "CameraTable.c"
- gint _tmp149_ = 0;
- const gchar* _tmp150_ = NULL;
- gchar* _tmp151_ = NULL;
- gchar* _tmp152_ = NULL;
+#line 3397 "CameraTable.c"
+ gint _tmp149_;
+ const gchar* _tmp150_;
+ gchar* _tmp151_;
+ gchar* _tmp152_;
#line 352 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp149_ = index;
#line 352 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -3396,7 +3444,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 352 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 3398 "CameraTable.c"
+#line 3446 "CameraTable.c"
} else {
#line 352 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (path);
@@ -3428,7 +3476,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 352 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 3430 "CameraTable.c"
+#line 3478 "CameraTable.c"
}
}
}
@@ -3488,7 +3536,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 357 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 3490 "CameraTable.c"
+#line 3538 "CameraTable.c"
} else {
#line 357 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (tmp_path);
@@ -3524,7 +3572,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 357 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 3526 "CameraTable.c"
+#line 3574 "CameraTable.c"
}
}
#line 358 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -3553,11 +3601,11 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_tmp167_ = index;
#line 364 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_tmp167_ < 0) {
-#line 3555 "CameraTable.c"
- gint _tmp168_ = 0;
- const gchar* _tmp169_ = NULL;
- gchar* _tmp170_ = NULL;
- gchar* _tmp171_ = NULL;
+#line 3603 "CameraTable.c"
+ gint _tmp168_;
+ const gchar* _tmp169_;
+ gchar* _tmp170_;
+ gchar* _tmp171_;
#line 365 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp168_ = index;
#line 365 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -3606,7 +3654,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 365 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 3608 "CameraTable.c"
+#line 3656 "CameraTable.c"
} else {
#line 365 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (tmp_path);
@@ -3642,7 +3690,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 365 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 3644 "CameraTable.c"
+#line 3692 "CameraTable.c"
}
}
}
@@ -3704,7 +3752,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 368 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 3706 "CameraTable.c"
+#line 3754 "CameraTable.c"
} else {
#line 368 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
(camera_abilities);
@@ -3742,7 +3790,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 368 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 3744 "CameraTable.c"
+#line 3792 "CameraTable.c"
}
}
#line 372 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -3801,7 +3849,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 372 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 3803 "CameraTable.c"
+#line 3851 "CameraTable.c"
} else {
#line 372 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_gp_camera_unref0 (gcamera);
@@ -3841,7 +3889,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 372 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 3843 "CameraTable.c"
+#line 3891 "CameraTable.c"
}
}
#line 373 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -3900,7 +3948,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 373 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 3902 "CameraTable.c"
+#line 3950 "CameraTable.c"
} else {
#line 373 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_gp_camera_unref0 (gcamera);
@@ -3940,7 +3988,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 373 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 3942 "CameraTable.c"
+#line 3990 "CameraTable.c"
}
}
#line 374 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -4001,7 +4049,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_port_info_list_free0 (port_info_list);
#line 374 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 4003 "CameraTable.c"
+#line 4051 "CameraTable.c"
} else {
#line 374 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_gp_camera_unref0 (gcamera);
@@ -4041,7 +4089,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
g_clear_error (&_inner_error_);
#line 374 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 4043 "CameraTable.c"
+#line 4091 "CameraTable.c"
}
}
#line 376 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -4073,7 +4121,7 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
#line 381 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp207_ = camera;
#line 381 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_signal_emit_by_name (self, "camera-added", _tmp207_);
+ g_signal_emit (self, camera_table_signals[CAMERA_TABLE_CAMERA_ADDED_SIGNAL], 0, _tmp207_);
#line 315 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_discovered_camera_unref0 (camera);
#line 315 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -4096,11 +4144,11 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_g_free0 (name);
#line 315 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_free0 (port);
-#line 4098 "CameraTable.c"
+#line 4146 "CameraTable.c"
}
#line 315 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_object_unref0 (_port_it);
-#line 4102 "CameraTable.c"
+#line 4150 "CameraTable.c"
}
#line 233 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL);
@@ -4112,15 +4160,15 @@ static void camera_table_update_camera_table (CameraTable* self, GError** error)
_gp_list_unref0 (camera_list);
#line 233 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_gp_port_info_list_free0 (port_info_list);
-#line 4114 "CameraTable.c"
+#line 4162 "CameraTable.c"
}
static void camera_table_on_udev_event (CameraTable* self, const gchar* action, GUdevDevice* device) {
- const gchar* _tmp0_ = NULL;
- GUdevDevice* _tmp1_ = NULL;
- const gchar* _tmp2_ = NULL;
- OneShotScheduler* _tmp3_ = NULL;
+ const gchar* _tmp0_;
+ GUdevDevice* _tmp1_;
+ const gchar* _tmp2_;
+ OneShotScheduler* _tmp3_;
#line 385 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_if_fail (IS_CAMERA_TABLE (self));
#line 385 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -4139,12 +4187,12 @@ static void camera_table_on_udev_event (CameraTable* self, const gchar* action,
_tmp3_ = self->priv->camera_update_scheduler;
#line 390 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
one_shot_scheduler_after_timeout (_tmp3_, (guint) CAMERA_TABLE_UPDATE_DELAY_MSEC, TRUE);
-#line 4141 "CameraTable.c"
+#line 4189 "CameraTable.c"
}
void camera_table_on_volume_changed (CameraTable* self, GVolume* volume) {
- OneShotScheduler* _tmp0_ = NULL;
+ OneShotScheduler* _tmp0_;
#line 393 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_if_fail (IS_CAMERA_TABLE (self));
#line 393 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -4153,7 +4201,7 @@ void camera_table_on_volume_changed (CameraTable* self, GVolume* volume) {
_tmp0_ = self->priv->camera_update_scheduler;
#line 394 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
one_shot_scheduler_after_timeout (_tmp0_, (guint) CAMERA_TABLE_UPDATE_DELAY_MSEC, TRUE);
-#line 4155 "CameraTable.c"
+#line 4203 "CameraTable.c"
}
@@ -4161,10 +4209,10 @@ static void camera_table_on_update_cameras (CameraTable* self) {
GError * _inner_error_ = NULL;
#line 397 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_if_fail (IS_CAMERA_TABLE (self));
-#line 4163 "CameraTable.c"
+#line 4211 "CameraTable.c"
{
- CameraTable* _tmp0_ = NULL;
- CameraTable* _tmp1_ = NULL;
+ CameraTable* _tmp0_;
+ CameraTable* _tmp1_;
#line 399 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_tmp0_ = camera_table_get_instance ();
#line 399 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -4177,8 +4225,8 @@ static void camera_table_on_update_cameras (CameraTable* self) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 399 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (_inner_error_->domain == GPHOTO_ERROR) {
-#line 4179 "CameraTable.c"
- goto __catch60_gphoto_error;
+#line 4227 "CameraTable.c"
+ goto __catch61_gphoto_error;
}
#line 399 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -4186,15 +4234,15 @@ static void camera_table_on_update_cameras (CameraTable* self) {
g_clear_error (&_inner_error_);
#line 399 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 4188 "CameraTable.c"
+#line 4236 "CameraTable.c"
}
}
- goto __finally60;
- __catch60_gphoto_error:
+ goto __finally61;
+ __catch61_gphoto_error:
{
GError* err = NULL;
- GError* _tmp2_ = NULL;
- const gchar* _tmp3_ = NULL;
+ GError* _tmp2_;
+ const gchar* _tmp3_;
#line 398 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
err = _inner_error_;
#line 398 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -4207,9 +4255,9 @@ static void camera_table_on_update_cameras (CameraTable* self) {
g_warning ("CameraTable.vala:401: Error updating camera table: %s", _tmp3_);
#line 398 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_error_free0 (err);
-#line 4209 "CameraTable.c"
+#line 4257 "CameraTable.c"
}
- __finally60:
+ __finally61:
#line 398 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 398 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -4218,7 +4266,7 @@ static void camera_table_on_update_cameras (CameraTable* self) {
g_clear_error (&_inner_error_);
#line 398 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return;
-#line 4220 "CameraTable.c"
+#line 4268 "CameraTable.c"
}
}
@@ -4238,26 +4286,26 @@ static void g_cclosure_user_marshal_VOID__DISCOVERED_CAMERA (GClosure * closure,
data1 = closure->data;
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
data2 = param_values->data[0].v_pointer;
-#line 4240 "CameraTable.c"
+#line 4288 "CameraTable.c"
} else {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
data1 = param_values->data[0].v_pointer;
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
data2 = closure->data;
-#line 4246 "CameraTable.c"
+#line 4294 "CameraTable.c"
}
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
callback = (GMarshalFunc_VOID__DISCOVERED_CAMERA) (marshal_data ? marshal_data : cc->callback);
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
callback (data1, value_get_discovered_camera (param_values + 1), data2);
-#line 4252 "CameraTable.c"
+#line 4300 "CameraTable.c"
}
static void value_camera_table_init (GValue* value) {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
value->data[0].v_pointer = NULL;
-#line 4259 "CameraTable.c"
+#line 4307 "CameraTable.c"
}
@@ -4266,7 +4314,7 @@ static void value_camera_table_free_value (GValue* value) {
if (value->data[0].v_pointer) {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
camera_table_unref (value->data[0].v_pointer);
-#line 4268 "CameraTable.c"
+#line 4316 "CameraTable.c"
}
}
@@ -4276,11 +4324,11 @@ static void value_camera_table_copy_value (const GValue* src_value, GValue* dest
if (src_value->data[0].v_pointer) {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
dest_value->data[0].v_pointer = camera_table_ref (src_value->data[0].v_pointer);
-#line 4278 "CameraTable.c"
+#line 4326 "CameraTable.c"
} else {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
dest_value->data[0].v_pointer = NULL;
-#line 4282 "CameraTable.c"
+#line 4330 "CameraTable.c"
}
}
@@ -4288,66 +4336,66 @@ static void value_camera_table_copy_value (const GValue* src_value, GValue* dest
static gpointer value_camera_table_peek_pointer (const GValue* value) {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return value->data[0].v_pointer;
-#line 4290 "CameraTable.c"
+#line 4338 "CameraTable.c"
}
static gchar* value_camera_table_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (collect_values[0].v_pointer) {
-#line 4297 "CameraTable.c"
- CameraTable* object;
+#line 4345 "CameraTable.c"
+ CameraTable * object;
object = collect_values[0].v_pointer;
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (object->parent_instance.g_class == NULL) {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4304 "CameraTable.c"
+#line 4352 "CameraTable.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.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 4308 "CameraTable.c"
+#line 4356 "CameraTable.c"
}
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
value->data[0].v_pointer = camera_table_ref (object);
-#line 4312 "CameraTable.c"
+#line 4360 "CameraTable.c"
} else {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
value->data[0].v_pointer = NULL;
-#line 4316 "CameraTable.c"
+#line 4364 "CameraTable.c"
}
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return NULL;
-#line 4320 "CameraTable.c"
+#line 4368 "CameraTable.c"
}
static gchar* value_camera_table_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
- CameraTable** object_p;
+ CameraTable ** object_p;
object_p = collect_values[0].v_pointer;
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (!object_p) {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 4331 "CameraTable.c"
+#line 4379 "CameraTable.c"
}
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (!value->data[0].v_pointer) {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
*object_p = NULL;
-#line 4337 "CameraTable.c"
+#line 4385 "CameraTable.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
*object_p = value->data[0].v_pointer;
-#line 4341 "CameraTable.c"
+#line 4389 "CameraTable.c"
} else {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
*object_p = camera_table_ref (value->data[0].v_pointer);
-#line 4345 "CameraTable.c"
+#line 4393 "CameraTable.c"
}
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return NULL;
-#line 4349 "CameraTable.c"
+#line 4397 "CameraTable.c"
}
@@ -4361,7 +4409,7 @@ GParamSpec* param_spec_camera_table (const gchar* name, const gchar* nick, const
G_PARAM_SPEC (spec)->value_type = object_type;
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return G_PARAM_SPEC (spec);
-#line 4363 "CameraTable.c"
+#line 4411 "CameraTable.c"
}
@@ -4370,12 +4418,12 @@ gpointer value_get_camera_table (const GValue* value) {
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CAMERA_TABLE), NULL);
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return value->data[0].v_pointer;
-#line 4372 "CameraTable.c"
+#line 4420 "CameraTable.c"
}
void value_set_camera_table (GValue* value, gpointer v_object) {
- CameraTable* old;
+ CameraTable * old;
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CAMERA_TABLE));
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -4390,23 +4438,23 @@ void value_set_camera_table (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
camera_table_ref (value->data[0].v_pointer);
-#line 4392 "CameraTable.c"
+#line 4440 "CameraTable.c"
} else {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
value->data[0].v_pointer = NULL;
-#line 4396 "CameraTable.c"
+#line 4444 "CameraTable.c"
}
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (old) {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
camera_table_unref (old);
-#line 4402 "CameraTable.c"
+#line 4450 "CameraTable.c"
}
}
void value_take_camera_table (GValue* value, gpointer v_object) {
- CameraTable* old;
+ CameraTable * old;
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CAMERA_TABLE));
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -4419,17 +4467,17 @@ void value_take_camera_table (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
value->data[0].v_pointer = v_object;
-#line 4421 "CameraTable.c"
+#line 4469 "CameraTable.c"
} else {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
value->data[0].v_pointer = NULL;
-#line 4425 "CameraTable.c"
+#line 4473 "CameraTable.c"
}
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (old) {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
camera_table_unref (old);
-#line 4431 "CameraTable.c"
+#line 4479 "CameraTable.c"
}
}
@@ -4442,17 +4490,17 @@ static void camera_table_class_init (CameraTableClass * klass) {
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_type_class_add_private (klass, sizeof (CameraTablePrivate));
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_signal_new ("camera_added", TYPE_CAMERA_TABLE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__DISCOVERED_CAMERA, G_TYPE_NONE, 1, TYPE_DISCOVERED_CAMERA);
+ camera_table_signals[CAMERA_TABLE_CAMERA_ADDED_SIGNAL] = g_signal_new ("camera-added", TYPE_CAMERA_TABLE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__DISCOVERED_CAMERA, G_TYPE_NONE, 1, TYPE_DISCOVERED_CAMERA);
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
- g_signal_new ("camera_removed", TYPE_CAMERA_TABLE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__DISCOVERED_CAMERA, G_TYPE_NONE, 1, TYPE_DISCOVERED_CAMERA);
-#line 4447 "CameraTable.c"
+ camera_table_signals[CAMERA_TABLE_CAMERA_REMOVED_SIGNAL] = g_signal_new ("camera-removed", TYPE_CAMERA_TABLE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__DISCOVERED_CAMERA, G_TYPE_NONE, 1, TYPE_DISCOVERED_CAMERA);
+#line 4495 "CameraTable.c"
}
static void camera_table_instance_init (CameraTable * self) {
- GUdevClient* _tmp0_ = NULL;
- GPContext* _tmp1_ = NULL;
- GeeHashMap* _tmp2_ = NULL;
+ GUdevClient* _tmp0_;
+ GPContext* _tmp1_;
+ GeeHashMap* _tmp2_;
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
self->priv = CAMERA_TABLE_GET_PRIVATE (self);
#line 29 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
@@ -4471,11 +4519,11 @@ static void camera_table_instance_init (CameraTable * self) {
self->priv->camera_map = _tmp2_;
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
self->ref_count = 1;
-#line 4473 "CameraTable.c"
+#line 4521 "CameraTable.c"
}
-static void camera_table_finalize (CameraTable* obj) {
+static void camera_table_finalize (CameraTable * obj) {
CameraTable * self;
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CAMERA_TABLE, CameraTable);
@@ -4493,7 +4541,7 @@ static void camera_table_finalize (CameraTable* obj) {
_g_object_unref0 (self->priv->volume_monitor);
#line 35 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
_g_object_unref0 (self->priv->camera_map);
-#line 4495 "CameraTable.c"
+#line 4543 "CameraTable.c"
}
@@ -4512,18 +4560,18 @@ GType camera_table_get_type (void) {
gpointer camera_table_ref (gpointer instance) {
- CameraTable* self;
+ CameraTable * self;
self = instance;
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_atomic_int_inc (&self->ref_count);
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
return instance;
-#line 4520 "CameraTable.c"
+#line 4568 "CameraTable.c"
}
void camera_table_unref (gpointer instance) {
- CameraTable* self;
+ CameraTable * self;
self = instance;
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
@@ -4531,7 +4579,7 @@ void camera_table_unref (gpointer instance) {
CAMERA_TABLE_GET_CLASS (self)->finalize (self);
#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 4533 "CameraTable.c"
+#line 4581 "CameraTable.c"
}
}