diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-06-25 21:12:13 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-06-25 21:12:13 +0200 |
commit | 059a62ee3c820a42fbce980c3256049adecc9100 (patch) | |
tree | e51eab94fd7d65459640ca227fb2257bb41d2acb /src/photos/PhotoFileFormat.c | |
parent | 55778740c211992cc86ea87588ab62c6750f36d1 (diff) | |
parent | e8f4d7a9cdd37c5a9fb3b6991a4e9173829808da (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/photos/PhotoFileFormat.c')
-rw-r--r-- | src/photos/PhotoFileFormat.c | 1764 |
1 files changed, 1012 insertions, 752 deletions
diff --git a/src/photos/PhotoFileFormat.c b/src/photos/PhotoFileFormat.c index 604499f..3b3520c 100644 --- a/src/photos/PhotoFileFormat.c +++ b/src/photos/PhotoFileFormat.c @@ -1,4 +1,4 @@ -/* PhotoFileFormat.c generated by valac 0.36.6, the Vala compiler +/* PhotoFileFormat.c generated by valac 0.40.4, the Vala compiler * generated from PhotoFileFormat.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -7,6 +7,7 @@ * (version 2.1 or later). See the COPYING file in this distribution. */ + #include <glib.h> #include <glib-object.h> #include <stdlib.h> @@ -261,47 +262,73 @@ static gpointer photo_file_format_properties_parent_class = NULL; GQuark photo_format_error_quark (void); GType photo_file_format_get_type (void) G_GNUC_CONST; -PhotoFileFormat* photo_file_format_data_find_applicable (PhotoFileFormatDataApplicableTest test, void* test_target, int* result_length1); +PhotoFileFormat* photo_file_format_data_find_applicable (PhotoFileFormatDataApplicableTest test, + void* test_target, + int* result_length1); PhotoFileFormat* photo_file_format_get_supported (int* result_length1); -static void _vala_array_add46 (PhotoFileFormat* * array, int* length, int* size, PhotoFileFormat value); +static void _vala_array_add46 (PhotoFileFormat* * array, + int* length, + int* size, + PhotoFileFormat value); PhotoFileFormat* photo_file_format_data_get_writeable (int* result_length1); static gboolean ___lambda4_ (PhotoFileFormat format); gboolean photo_file_format_can_write (PhotoFileFormat self); -static gboolean ____lambda4__photo_file_format_data_applicable_test (PhotoFileFormat format, gpointer self); -static PhotoFileFormat* _vala_array_dup2 (PhotoFileFormat* self, int length); +static gboolean ____lambda4__photo_file_format_data_applicable_test (PhotoFileFormat format, + gpointer self); +static PhotoFileFormat* _vala_array_dup2 (PhotoFileFormat* self, + int length); PhotoFileFormat* photo_file_format_data_get_image_writeable (int* result_length1); static gboolean ___lambda26_ (PhotoFileFormat format); gboolean photo_file_format_can_write_image (PhotoFileFormat self); -static gboolean ____lambda26__photo_file_format_data_applicable_test (PhotoFileFormat format, gpointer self); -static PhotoFileFormat* _vala_array_dup3 (PhotoFileFormat* self, int length); +static gboolean ____lambda26__photo_file_format_data_applicable_test (PhotoFileFormat format, + gpointer self); +static PhotoFileFormat* _vala_array_dup3 (PhotoFileFormat* self, + int length); PhotoFileFormat* photo_file_format_data_get_metadata_writeable (int* result_length1); static gboolean ___lambda27_ (PhotoFileFormat format); gboolean photo_file_format_can_write_metadata (PhotoFileFormat self); -static gboolean ____lambda27__photo_file_format_data_applicable_test (PhotoFileFormat format, gpointer self); -static PhotoFileFormat* _vala_array_dup4 (PhotoFileFormat* self, int length); +static gboolean ____lambda27__photo_file_format_data_applicable_test (PhotoFileFormat format, + gpointer self); +static PhotoFileFormat* _vala_array_dup4 (PhotoFileFormat* self, + int length); PhotoFileFormat* photo_file_format_get_writeable (int* result_length1); PhotoFileFormat* photo_file_format_get_image_writeable (int* result_length1); PhotoFileFormat* photo_file_format_get_metadata_writeable (int* result_length1); PhotoFileFormat photo_file_format_get_by_basename_extension (const gchar* basename); -void disassemble_filename (const gchar* basename, gchar* * name, gchar* * ext); +void disassemble_filename (const gchar* basename, + gchar* * name, + gchar* * ext); gboolean is_string_empty (const gchar* s); gpointer photo_file_format_driver_ref (gpointer instance); void photo_file_format_driver_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_driver (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); -void value_set_photo_file_format_driver (GValue* value, gpointer v_object); -void value_take_photo_file_format_driver (GValue* value, gpointer v_object); +GParamSpec* param_spec_photo_file_format_driver (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags); +void value_set_photo_file_format_driver (GValue* value, + gpointer v_object); +void value_take_photo_file_format_driver (GValue* value, + gpointer v_object); gpointer value_get_photo_file_format_driver (const GValue* value); GType photo_file_format_driver_get_type (void) G_GNUC_CONST; static PhotoFileFormatDriver* photo_file_format_get_driver (PhotoFileFormat self); gpointer photo_file_format_properties_ref (gpointer instance); void photo_file_format_properties_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_properties (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); -void value_set_photo_file_format_properties (GValue* value, gpointer v_object); -void value_take_photo_file_format_properties (GValue* value, gpointer v_object); +GParamSpec* param_spec_photo_file_format_properties (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags); +void value_set_photo_file_format_properties (GValue* value, + gpointer v_object); +void value_take_photo_file_format_properties (GValue* value, + gpointer v_object); gpointer value_get_photo_file_format_properties (const GValue* value); GType photo_file_format_properties_get_type (void) G_GNUC_CONST; PhotoFileFormatProperties* photo_file_format_driver_get_properties (PhotoFileFormatDriver* self); -gboolean photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self, const gchar* ext); +gboolean photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self, + const gchar* ext); gboolean photo_file_format_is_file_supported (GFile* file); gboolean photo_file_format_is_basename_supported (const gchar* basename); PhotoFileFormat photo_file_format_get_system_default_format (void); @@ -328,41 +355,72 @@ PhotosTiffFileFormatDriver* photos_tiff_file_format_driver_get_instance (void); GType photos_bmp_file_format_driver_get_type (void) G_GNUC_CONST; PhotosBmpFileFormatDriver* photos_bmp_file_format_driver_get_instance (void); PhotoFileFormatProperties* photo_file_format_get_properties (PhotoFileFormat self); -gchar* photo_file_format_get_default_basename (PhotoFileFormat self, const gchar* name); +gchar* photo_file_format_get_default_basename (PhotoFileFormat self, + const gchar* name); gchar* photo_file_format_properties_get_default_extension (PhotoFileFormatProperties* self); gpointer photo_file_adapter_ref (gpointer instance); void photo_file_adapter_unref (gpointer instance); -GParamSpec* param_spec_photo_file_adapter (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); -void value_set_photo_file_adapter (GValue* value, gpointer v_object); -void value_take_photo_file_adapter (GValue* value, gpointer v_object); +GParamSpec* param_spec_photo_file_adapter (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags); +void value_set_photo_file_adapter (GValue* value, + gpointer v_object); +void value_take_photo_file_adapter (GValue* value, + gpointer v_object); gpointer value_get_photo_file_adapter (const GValue* value); GType photo_file_adapter_get_type (void) G_GNUC_CONST; GType photo_file_reader_get_type (void) G_GNUC_CONST; -PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self, const gchar* filepath); -PhotoFileReader* photo_file_format_driver_create_reader (PhotoFileFormatDriver* self, const gchar* filepath); +PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self, + const gchar* filepath); +PhotoFileReader* photo_file_format_driver_create_reader (PhotoFileFormatDriver* self, + const gchar* filepath); gboolean photo_file_format_driver_can_write_image (PhotoFileFormatDriver* self); gboolean photo_file_format_driver_can_write_metadata (PhotoFileFormatDriver* self); GType photo_file_writer_get_type (void) G_GNUC_CONST; -PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self, const gchar* filepath, GError** error); -PhotoFileWriter* photo_file_format_driver_create_writer (PhotoFileFormatDriver* self, const gchar* filepath); +PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self, + const gchar* filepath, + GError** error); +PhotoFileWriter* photo_file_format_driver_create_writer (PhotoFileFormatDriver* self, + const gchar* filepath); GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST; -PhotoFileMetadataWriter* photo_file_format_create_metadata_writer (PhotoFileFormat self, const gchar* filepath, GError** error); -PhotoFileMetadataWriter* photo_file_format_driver_create_metadata_writer (PhotoFileFormatDriver* self, const gchar* filepath); +PhotoFileMetadataWriter* photo_file_format_create_metadata_writer (PhotoFileFormat self, + const gchar* filepath, + GError** error); +PhotoFileMetadataWriter* photo_file_format_driver_create_metadata_writer (PhotoFileFormatDriver* self, + const gchar* filepath); GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST; gpointer photo_file_sniffer_ref (gpointer instance); void photo_file_sniffer_unref (gpointer instance); -GParamSpec* param_spec_photo_file_sniffer (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); -void value_set_photo_file_sniffer (GValue* value, gpointer v_object); -void value_take_photo_file_sniffer (GValue* value, gpointer v_object); +GParamSpec* param_spec_photo_file_sniffer (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags); +void value_set_photo_file_sniffer (GValue* value, + gpointer v_object); +void value_take_photo_file_sniffer (GValue* value, + gpointer v_object); gpointer value_get_photo_file_sniffer (const GValue* value); GType photo_file_sniffer_get_type (void) G_GNUC_CONST; -PhotoFileSniffer* photo_file_format_create_sniffer (PhotoFileFormat self, GFile* file, PhotoFileSnifferOptions options); -PhotoFileSniffer* photo_file_format_driver_create_sniffer (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options); +PhotoFileSniffer* photo_file_format_create_sniffer (PhotoFileFormat self, + GFile* file, + PhotoFileSnifferOptions options); +PhotoFileSniffer* photo_file_format_driver_create_sniffer (PhotoFileFormatDriver* self, + GFile* file, + PhotoFileSnifferOptions options); gpointer media_metadata_ref (gpointer instance); void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); -void value_set_media_metadata (GValue* value, gpointer v_object); -void value_take_media_metadata (GValue* value, gpointer v_object); +GParamSpec* param_spec_media_metadata (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags); +void value_set_media_metadata (GValue* value, + gpointer v_object); +void value_take_media_metadata (GValue* value, + gpointer v_object); gpointer value_get_media_metadata (const GValue* value); GType media_metadata_get_type (void) G_GNUC_CONST; GType photo_metadata_get_type (void) G_GNUC_CONST; @@ -370,68 +428,94 @@ PhotoMetadata* photo_file_format_create_metadata (PhotoFileFormat self); PhotoMetadata* photo_file_format_driver_create_metadata (PhotoFileFormatDriver* self); gchar* photo_file_format_get_default_mime_type (PhotoFileFormat self); gchar* photo_file_format_properties_get_default_mime_type (PhotoFileFormatProperties* self); -gchar** photo_file_format_get_mime_types (PhotoFileFormat self, int* result_length1); -gchar** photo_file_format_properties_get_mime_types (PhotoFileFormatProperties* self, int* result_length1); +gchar** photo_file_format_get_mime_types (PhotoFileFormat self, + int* result_length1); +gchar** photo_file_format_properties_get_mime_types (PhotoFileFormatProperties* self, + int* result_length1); gchar** photo_file_format_get_editable_mime_types (int* result_length1); -static void _vala_array_add47 (gchar** * array, int* length, int* size, gchar* value); -enum { - PHOTO_FILE_FORMAT_DRIVER_DUMMY_PROPERTY -}; +static void _vala_array_add47 (gchar** * array, + int* length, + int* size, + gchar* value); static PhotoFileFormatProperties* photo_file_format_driver_real_get_properties (PhotoFileFormatDriver* self); -static PhotoFileReader* photo_file_format_driver_real_create_reader (PhotoFileFormatDriver* self, const gchar* filepath); +static PhotoFileReader* photo_file_format_driver_real_create_reader (PhotoFileFormatDriver* self, + const gchar* filepath); static PhotoMetadata* photo_file_format_driver_real_create_metadata (PhotoFileFormatDriver* self); static gboolean photo_file_format_driver_real_can_write_image (PhotoFileFormatDriver* self); static gboolean photo_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* self); -static PhotoFileWriter* photo_file_format_driver_real_create_writer (PhotoFileFormatDriver* self, const gchar* filepath); -static PhotoFileMetadataWriter* photo_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* self, const gchar* filepath); -static PhotoFileSniffer* photo_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options); +static PhotoFileWriter* photo_file_format_driver_real_create_writer (PhotoFileFormatDriver* self, + const gchar* filepath); +static PhotoFileMetadataWriter* photo_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* self, + const gchar* filepath); +static PhotoFileSniffer* photo_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* self, + GFile* file, + PhotoFileSnifferOptions options); PhotoFileFormatDriver* photo_file_format_driver_construct (GType object_type); static void photo_file_format_driver_finalize (PhotoFileFormatDriver * obj); GType photo_file_format_flags_get_type (void) G_GNUC_CONST; -enum { - PHOTO_FILE_FORMAT_PROPERTIES_DUMMY_PROPERTY -}; PhotoFileFormat photo_file_format_properties_get_file_format (PhotoFileFormatProperties* self); static PhotoFileFormat photo_file_format_properties_real_get_file_format (PhotoFileFormatProperties* self); PhotoFileFormatFlags photo_file_format_properties_get_flags (PhotoFileFormatProperties* self); static PhotoFileFormatFlags photo_file_format_properties_real_get_flags (PhotoFileFormatProperties* self); -static gboolean photo_file_format_properties_real_is_recognized_extension (PhotoFileFormatProperties* self, const gchar* ext); -gboolean is_in_ci_array (const gchar* str, gchar** strings, int strings_length1); -gchar** photo_file_format_properties_get_known_extensions (PhotoFileFormatProperties* self, int* result_length1); +static gboolean photo_file_format_properties_real_is_recognized_extension (PhotoFileFormatProperties* self, + const gchar* ext); +gboolean is_in_ci_array (const gchar* str, + gchar** strings, + int strings_length1); +gchar** photo_file_format_properties_get_known_extensions (PhotoFileFormatProperties* self, + int* result_length1); static gchar* photo_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* self); -static gchar** photo_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* self, int* result_length1); +static gchar** photo_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* self, + int* result_length1); static gchar* photo_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* self); -static gchar** photo_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* self, int* result_length1); +static gchar** photo_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* self, + int* result_length1); gchar* photo_file_format_properties_get_user_visible_name (PhotoFileFormatProperties* self); static gchar* photo_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* self); -GFile* photo_file_format_properties_convert_file_extension (PhotoFileFormatProperties* self, GFile* file); +GFile* photo_file_format_properties_convert_file_extension (PhotoFileFormatProperties* self, + GFile* file); PhotoFileFormatProperties* photo_file_format_properties_construct (GType object_type); static void photo_file_format_properties_finalize (PhotoFileFormatProperties * 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); +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); -GQuark photo_format_error_quark (void) { +GQuark +photo_format_error_quark (void) +{ return g_quark_from_static_string ("photo_format_error-quark"); } -static void _vala_array_add46 (PhotoFileFormat* * array, int* length, int* size, PhotoFileFormat value) { +static void +_vala_array_add46 (PhotoFileFormat* * array, + int* length, + int* size, + PhotoFileFormat value) +{ #line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if ((*length) == (*size)) { #line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *size = (*size) ? (2 * (*size)) : 4; #line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *array = g_renew (PhotoFileFormat, *array, *size); -#line 427 "PhotoFileFormat.c" +#line 507 "PhotoFileFormat.c" } #line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" (*array)[(*length)++] = value; -#line 431 "PhotoFileFormat.c" +#line 511 "PhotoFileFormat.c" } -PhotoFileFormat* photo_file_format_data_find_applicable (PhotoFileFormatDataApplicableTest test, void* test_target, int* result_length1) { +PhotoFileFormat* +photo_file_format_data_find_applicable (PhotoFileFormatDataApplicableTest test, + void* test_target, + int* result_length1) +{ PhotoFileFormat* result = NULL; PhotoFileFormat* applicable = NULL; PhotoFileFormat* _tmp0_; @@ -439,8 +523,8 @@ PhotoFileFormat* photo_file_format_data_find_applicable (PhotoFileFormatDataAppl gint _applicable_size_; gint _tmp1_; PhotoFileFormat* _tmp2_; - PhotoFileFormat* _tmp8_; - gint _tmp8__length1; + PhotoFileFormat* _tmp6_; + gint _tmp6__length1; #line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp0_ = g_new0 (PhotoFileFormat, 0); #line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -451,7 +535,7 @@ PhotoFileFormat* photo_file_format_data_find_applicable (PhotoFileFormatDataAppl _applicable_size_ = applicable_length1; #line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp2_ = photo_file_format_get_supported (&_tmp1_); -#line 455 "PhotoFileFormat.c" +#line 539 "PhotoFileFormat.c" { PhotoFileFormat* format_collection = NULL; gint format_collection_length1 = 0; @@ -463,97 +547,92 @@ PhotoFileFormat* photo_file_format_data_find_applicable (PhotoFileFormatDataAppl format_collection_length1 = _tmp1_; #line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" for (format_it = 0; format_it < _tmp1_; format_it = format_it + 1) { -#line 467 "PhotoFileFormat.c" +#line 551 "PhotoFileFormat.c" PhotoFileFormat format = 0; #line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" format = format_collection[format_it]; -#line 471 "PhotoFileFormat.c" +#line 555 "PhotoFileFormat.c" { - PhotoFileFormatDataApplicableTest _tmp3_; - void* _tmp3__target; - PhotoFileFormat _tmp4_; - gboolean _tmp5_; -#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = test; -#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3__target = test_target; -#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = format; + PhotoFileFormat _tmp3_; #line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = _tmp3_ (_tmp4_, _tmp3__target); + _tmp3_ = format; #line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp5_) { -#line 487 "PhotoFileFormat.c" - PhotoFileFormat* _tmp6_; - gint _tmp6__length1; - PhotoFileFormat _tmp7_; + if (test (_tmp3_, test_target)) { +#line 562 "PhotoFileFormat.c" + PhotoFileFormat* _tmp4_; + gint _tmp4__length1; + PhotoFileFormat _tmp5_; #line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6_ = applicable; + _tmp4_ = applicable; #line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6__length1 = applicable_length1; + _tmp4__length1 = applicable_length1; #line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp7_ = format; + _tmp5_ = format; #line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _vala_array_add46 (&applicable, &applicable_length1, &_applicable_size_, _tmp7_); -#line 499 "PhotoFileFormat.c" + _vala_array_add46 (&applicable, &applicable_length1, &_applicable_size_, _tmp5_); +#line 574 "PhotoFileFormat.c" } } } #line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" format_collection = (g_free (format_collection), NULL); -#line 505 "PhotoFileFormat.c" +#line 580 "PhotoFileFormat.c" } #line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp8_ = applicable; + _tmp6_ = applicable; #line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp8__length1 = applicable_length1; + _tmp6__length1 = applicable_length1; #line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (result_length1) { #line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *result_length1 = _tmp8__length1; -#line 515 "PhotoFileFormat.c" + *result_length1 = _tmp6__length1; +#line 590 "PhotoFileFormat.c" } #line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp8_; + result = _tmp6_; #line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 521 "PhotoFileFormat.c" +#line 596 "PhotoFileFormat.c" } -static gboolean ___lambda4_ (PhotoFileFormat format) { +static gboolean +___lambda4_ (PhotoFileFormat format) +{ gboolean result = FALSE; - PhotoFileFormat _tmp0_; - gboolean _tmp1_; -#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = format; #line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = photo_file_format_can_write (_tmp0_); -#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp1_; + result = photo_file_format_can_write (format); #line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 537 "PhotoFileFormat.c" +#line 608 "PhotoFileFormat.c" } -static gboolean ____lambda4__photo_file_format_data_applicable_test (PhotoFileFormat format, gpointer self) { +static gboolean +____lambda4__photo_file_format_data_applicable_test (PhotoFileFormat format, + gpointer self) +{ gboolean result; result = ___lambda4_ (format); #line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 546 "PhotoFileFormat.c" +#line 620 "PhotoFileFormat.c" } -static PhotoFileFormat* _vala_array_dup2 (PhotoFileFormat* self, int length) { +static PhotoFileFormat* +_vala_array_dup2 (PhotoFileFormat* self, + int length) +{ #line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return g_memdup (self, length * sizeof (PhotoFileFormat)); -#line 553 "PhotoFileFormat.c" +#line 630 "PhotoFileFormat.c" } -PhotoFileFormat* photo_file_format_data_get_writeable (int* result_length1) { +PhotoFileFormat* +photo_file_format_data_get_writeable (int* result_length1) +{ PhotoFileFormat* result = NULL; PhotoFileFormat* _tmp0_; gint _tmp0__length1; @@ -569,7 +648,7 @@ PhotoFileFormat* photo_file_format_data_get_writeable (int* result_length1) { _tmp0__length1 = photo_file_format_data_writeable_length1; #line 33 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (_tmp0_ == NULL) { -#line 573 "PhotoFileFormat.c" +#line 652 "PhotoFileFormat.c" gint _tmp1_; PhotoFileFormat* _tmp2_; #line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -582,7 +661,7 @@ PhotoFileFormat* photo_file_format_data_get_writeable (int* result_length1) { photo_file_format_data_writeable_length1 = _tmp1_; #line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _photo_file_format_data_writeable_size_ = photo_file_format_data_writeable_length1; -#line 586 "PhotoFileFormat.c" +#line 665 "PhotoFileFormat.c" } #line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp3_ = photo_file_format_data_writeable; @@ -600,49 +679,53 @@ PhotoFileFormat* photo_file_format_data_get_writeable (int* result_length1) { if (result_length1) { #line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *result_length1 = _tmp5__length1; -#line 604 "PhotoFileFormat.c" +#line 683 "PhotoFileFormat.c" } #line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = _tmp5_; #line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 610 "PhotoFileFormat.c" +#line 689 "PhotoFileFormat.c" } -static gboolean ___lambda26_ (PhotoFileFormat format) { +static gboolean +___lambda26_ (PhotoFileFormat format) +{ gboolean result = FALSE; - PhotoFileFormat _tmp0_; - gboolean _tmp1_; -#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = format; #line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = photo_file_format_can_write_image (_tmp0_); -#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp1_; + result = photo_file_format_can_write_image (format); #line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 626 "PhotoFileFormat.c" +#line 701 "PhotoFileFormat.c" } -static gboolean ____lambda26__photo_file_format_data_applicable_test (PhotoFileFormat format, gpointer self) { +static gboolean +____lambda26__photo_file_format_data_applicable_test (PhotoFileFormat format, + gpointer self) +{ gboolean result; result = ___lambda26_ (format); #line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 635 "PhotoFileFormat.c" +#line 713 "PhotoFileFormat.c" } -static PhotoFileFormat* _vala_array_dup3 (PhotoFileFormat* self, int length) { +static PhotoFileFormat* +_vala_array_dup3 (PhotoFileFormat* self, + int length) +{ #line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return g_memdup (self, length * sizeof (PhotoFileFormat)); -#line 642 "PhotoFileFormat.c" +#line 723 "PhotoFileFormat.c" } -PhotoFileFormat* photo_file_format_data_get_image_writeable (int* result_length1) { +PhotoFileFormat* +photo_file_format_data_get_image_writeable (int* result_length1) +{ PhotoFileFormat* result = NULL; PhotoFileFormat* _tmp0_; gint _tmp0__length1; @@ -658,7 +741,7 @@ PhotoFileFormat* photo_file_format_data_get_image_writeable (int* result_length1 _tmp0__length1 = photo_file_format_data_image_writeable_length1; #line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (_tmp0_ == NULL) { -#line 662 "PhotoFileFormat.c" +#line 745 "PhotoFileFormat.c" gint _tmp1_; PhotoFileFormat* _tmp2_; #line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -671,7 +754,7 @@ PhotoFileFormat* photo_file_format_data_get_image_writeable (int* result_length1 photo_file_format_data_image_writeable_length1 = _tmp1_; #line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _photo_file_format_data_image_writeable_size_ = photo_file_format_data_image_writeable_length1; -#line 675 "PhotoFileFormat.c" +#line 758 "PhotoFileFormat.c" } #line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp3_ = photo_file_format_data_image_writeable; @@ -689,49 +772,53 @@ PhotoFileFormat* photo_file_format_data_get_image_writeable (int* result_length1 if (result_length1) { #line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *result_length1 = _tmp5__length1; -#line 693 "PhotoFileFormat.c" +#line 776 "PhotoFileFormat.c" } #line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = _tmp5_; #line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 699 "PhotoFileFormat.c" +#line 782 "PhotoFileFormat.c" } -static gboolean ___lambda27_ (PhotoFileFormat format) { +static gboolean +___lambda27_ (PhotoFileFormat format) +{ gboolean result = FALSE; - PhotoFileFormat _tmp0_; - gboolean _tmp1_; -#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = format; #line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = photo_file_format_can_write_metadata (_tmp0_); -#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp1_; + result = photo_file_format_can_write_metadata (format); #line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 715 "PhotoFileFormat.c" +#line 794 "PhotoFileFormat.c" } -static gboolean ____lambda27__photo_file_format_data_applicable_test (PhotoFileFormat format, gpointer self) { +static gboolean +____lambda27__photo_file_format_data_applicable_test (PhotoFileFormat format, + gpointer self) +{ gboolean result; result = ___lambda27_ (format); #line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 724 "PhotoFileFormat.c" +#line 806 "PhotoFileFormat.c" } -static PhotoFileFormat* _vala_array_dup4 (PhotoFileFormat* self, int length) { +static PhotoFileFormat* +_vala_array_dup4 (PhotoFileFormat* self, + int length) +{ #line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return g_memdup (self, length * sizeof (PhotoFileFormat)); -#line 731 "PhotoFileFormat.c" +#line 816 "PhotoFileFormat.c" } -PhotoFileFormat* photo_file_format_data_get_metadata_writeable (int* result_length1) { +PhotoFileFormat* +photo_file_format_data_get_metadata_writeable (int* result_length1) +{ PhotoFileFormat* result = NULL; PhotoFileFormat* _tmp0_; gint _tmp0__length1; @@ -747,7 +834,7 @@ PhotoFileFormat* photo_file_format_data_get_metadata_writeable (int* result_leng _tmp0__length1 = photo_file_format_data_metadata_writeable_length1; #line 47 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (_tmp0_ == NULL) { -#line 751 "PhotoFileFormat.c" +#line 838 "PhotoFileFormat.c" gint _tmp1_; PhotoFileFormat* _tmp2_; #line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -760,7 +847,7 @@ PhotoFileFormat* photo_file_format_data_get_metadata_writeable (int* result_leng photo_file_format_data_metadata_writeable_length1 = _tmp1_; #line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _photo_file_format_data_metadata_writeable_size_ = photo_file_format_data_metadata_writeable_length1; -#line 764 "PhotoFileFormat.c" +#line 851 "PhotoFileFormat.c" } #line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp3_ = photo_file_format_data_metadata_writeable; @@ -778,17 +865,19 @@ PhotoFileFormat* photo_file_format_data_get_metadata_writeable (int* result_leng if (result_length1) { #line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *result_length1 = _tmp5__length1; -#line 782 "PhotoFileFormat.c" +#line 869 "PhotoFileFormat.c" } #line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = _tmp5_; #line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 788 "PhotoFileFormat.c" +#line 875 "PhotoFileFormat.c" } -PhotoFileFormat* photo_file_format_get_supported (int* result_length1) { +PhotoFileFormat* +photo_file_format_get_supported (int* result_length1) +{ PhotoFileFormat* result = NULL; PhotoFileFormat* _tmp0_; PhotoFileFormat* _tmp1_; @@ -813,17 +902,19 @@ PhotoFileFormat* photo_file_format_get_supported (int* result_length1) { if (result_length1) { #line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *result_length1 = _tmp1__length1; -#line 817 "PhotoFileFormat.c" +#line 906 "PhotoFileFormat.c" } #line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = _tmp1_; #line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 823 "PhotoFileFormat.c" +#line 912 "PhotoFileFormat.c" } -PhotoFileFormat* photo_file_format_get_writeable (int* result_length1) { +PhotoFileFormat* +photo_file_format_get_writeable (int* result_length1) +{ PhotoFileFormat* result = NULL; gint _tmp0_; PhotoFileFormat* _tmp1_; @@ -839,17 +930,19 @@ PhotoFileFormat* photo_file_format_get_writeable (int* result_length1) { if (result_length1) { #line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *result_length1 = _tmp2__length1; -#line 843 "PhotoFileFormat.c" +#line 934 "PhotoFileFormat.c" } #line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = _tmp2_; #line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 849 "PhotoFileFormat.c" +#line 940 "PhotoFileFormat.c" } -PhotoFileFormat* photo_file_format_get_image_writeable (int* result_length1) { +PhotoFileFormat* +photo_file_format_get_image_writeable (int* result_length1) +{ PhotoFileFormat* result = NULL; gint _tmp0_; PhotoFileFormat* _tmp1_; @@ -865,17 +958,19 @@ PhotoFileFormat* photo_file_format_get_image_writeable (int* result_length1) { if (result_length1) { #line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *result_length1 = _tmp2__length1; -#line 869 "PhotoFileFormat.c" +#line 962 "PhotoFileFormat.c" } #line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = _tmp2_; #line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 875 "PhotoFileFormat.c" +#line 968 "PhotoFileFormat.c" } -PhotoFileFormat* photo_file_format_get_metadata_writeable (int* result_length1) { +PhotoFileFormat* +photo_file_format_get_metadata_writeable (int* result_length1) +{ PhotoFileFormat* result = NULL; gint _tmp0_; PhotoFileFormat* _tmp1_; @@ -891,47 +986,43 @@ PhotoFileFormat* photo_file_format_get_metadata_writeable (int* result_length1) if (result_length1) { #line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *result_length1 = _tmp2__length1; -#line 895 "PhotoFileFormat.c" +#line 990 "PhotoFileFormat.c" } #line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = _tmp2_; #line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 901 "PhotoFileFormat.c" +#line 996 "PhotoFileFormat.c" } -PhotoFileFormat photo_file_format_get_by_basename_extension (const gchar* basename) { +PhotoFileFormat +photo_file_format_get_by_basename_extension (const gchar* basename) +{ PhotoFileFormat result = 0; gchar* name = NULL; gchar* ext = NULL; - const gchar* _tmp0_; + gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; - gchar* _tmp2_ = NULL; - const gchar* _tmp3_; - gboolean _tmp4_; - gint _tmp5_; - PhotoFileFormat* _tmp6_; + const gchar* _tmp2_; + gint _tmp3_; + PhotoFileFormat* _tmp4_; #line 80 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (basename != NULL, 0); #line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = basename; -#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - disassemble_filename (_tmp0_, &_tmp1_, &_tmp2_); + disassemble_filename (basename, &_tmp0_, &_tmp1_); #line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _g_free0 (name); #line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - name = _tmp1_; + name = _tmp0_; #line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _g_free0 (ext); #line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ext = _tmp2_; + ext = _tmp1_; #line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = ext; + _tmp2_ = ext; #line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = is_string_empty (_tmp3_); -#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp4_) { + if (is_string_empty (_tmp2_)) { #line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_UNKNOWN; #line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -940,58 +1031,55 @@ PhotoFileFormat photo_file_format_get_by_basename_extension (const gchar* basena _g_free0 (name); #line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 944 "PhotoFileFormat.c" +#line 1035 "PhotoFileFormat.c" } #line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6_ = photo_file_format_get_supported (&_tmp5_); -#line 948 "PhotoFileFormat.c" + _tmp4_ = photo_file_format_get_supported (&_tmp3_); +#line 1039 "PhotoFileFormat.c" { PhotoFileFormat* file_format_collection = NULL; gint file_format_collection_length1 = 0; gint _file_format_collection_size_ = 0; gint file_format_it = 0; #line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - file_format_collection = _tmp6_; + file_format_collection = _tmp4_; #line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - file_format_collection_length1 = _tmp5_; + file_format_collection_length1 = _tmp3_; #line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - for (file_format_it = 0; file_format_it < _tmp5_; file_format_it = file_format_it + 1) { -#line 960 "PhotoFileFormat.c" + for (file_format_it = 0; file_format_it < _tmp3_; file_format_it = file_format_it + 1) { +#line 1051 "PhotoFileFormat.c" PhotoFileFormat file_format = 0; #line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" file_format = file_format_collection[file_format_it]; -#line 964 "PhotoFileFormat.c" +#line 1055 "PhotoFileFormat.c" { - PhotoFileFormat _tmp7_; - PhotoFileFormatDriver* _tmp8_; - PhotoFileFormatDriver* _tmp9_; - PhotoFileFormatProperties* _tmp10_; - PhotoFileFormatProperties* _tmp11_; - const gchar* _tmp12_; - gboolean _tmp13_; - gboolean _tmp14_; + PhotoFileFormat _tmp5_; + PhotoFileFormatDriver* _tmp6_; + PhotoFileFormatDriver* _tmp7_; + PhotoFileFormatProperties* _tmp8_; + PhotoFileFormatProperties* _tmp9_; + const gchar* _tmp10_; + gboolean _tmp11_; #line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp7_ = file_format; + _tmp5_ = file_format; #line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp8_ = photo_file_format_get_driver (_tmp7_); -#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp9_ = _tmp8_; + _tmp6_ = photo_file_format_get_driver (_tmp5_); #line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp10_ = photo_file_format_driver_get_properties (_tmp9_); + _tmp7_ = _tmp6_; #line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp11_ = _tmp10_; + _tmp8_ = photo_file_format_driver_get_properties (_tmp7_); #line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp12_ = ext; + _tmp9_ = _tmp8_; #line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp13_ = photo_file_format_properties_is_recognized_extension (_tmp11_, _tmp12_); + _tmp10_ = ext; #line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp14_ = _tmp13_; + _tmp11_ = photo_file_format_properties_is_recognized_extension (_tmp9_, _tmp10_); #line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_properties_unref0 (_tmp11_); + _photo_file_format_properties_unref0 (_tmp9_); #line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_driver_unref0 (_tmp9_); + _photo_file_format_driver_unref0 (_tmp7_); #line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp14_) { + if (_tmp11_) { #line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = file_format; #line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -1002,13 +1090,13 @@ PhotoFileFormat photo_file_format_get_by_basename_extension (const gchar* basena _g_free0 (name); #line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1006 "PhotoFileFormat.c" +#line 1094 "PhotoFileFormat.c" } } } #line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" file_format_collection = (g_free (file_format_collection), NULL); -#line 1012 "PhotoFileFormat.c" +#line 1100 "PhotoFileFormat.c" } #line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_UNKNOWN; @@ -1018,70 +1106,62 @@ PhotoFileFormat photo_file_format_get_by_basename_extension (const gchar* basena _g_free0 (name); #line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1022 "PhotoFileFormat.c" +#line 1110 "PhotoFileFormat.c" } -gboolean photo_file_format_is_file_supported (GFile* file) { +gboolean +photo_file_format_is_file_supported (GFile* file) +{ gboolean result = FALSE; - GFile* _tmp0_; + gchar* _tmp0_; gchar* _tmp1_; - gchar* _tmp2_; - gboolean _tmp3_; - gboolean _tmp4_; + gboolean _tmp2_; #line 95 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (G_IS_FILE (file), FALSE); #line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = file; -#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = g_file_get_basename (_tmp0_); -#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = _tmp1_; + _tmp0_ = g_file_get_basename (file); #line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = photo_file_format_is_basename_supported (_tmp2_); + _tmp1_ = _tmp0_; #line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = _tmp3_; + _tmp2_ = photo_file_format_is_basename_supported (_tmp1_); #line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (_tmp2_); + _g_free0 (_tmp1_); #line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp4_; + result = _tmp2_; #line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1051 "PhotoFileFormat.c" +#line 1135 "PhotoFileFormat.c" } -gboolean photo_file_format_is_basename_supported (const gchar* basename) { +gboolean +photo_file_format_is_basename_supported (const gchar* basename) +{ gboolean result = FALSE; gchar* name = NULL; gchar* ext = NULL; - const gchar* _tmp0_; + gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; - gchar* _tmp2_ = NULL; - const gchar* _tmp3_; - gboolean _tmp4_; - gint _tmp5_; - PhotoFileFormat* _tmp6_; + const gchar* _tmp2_; + gint _tmp3_; + PhotoFileFormat* _tmp4_; #line 99 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (basename != NULL, FALSE); #line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = basename; -#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - disassemble_filename (_tmp0_, &_tmp1_, &_tmp2_); + disassemble_filename (basename, &_tmp0_, &_tmp1_); #line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _g_free0 (name); #line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - name = _tmp1_; + name = _tmp0_; #line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _g_free0 (ext); #line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ext = _tmp2_; -#line 103 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = ext; + ext = _tmp1_; #line 103 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = is_string_empty (_tmp3_); + _tmp2_ = ext; #line 103 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp4_) { + if (is_string_empty (_tmp2_)) { #line 104 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = FALSE; #line 104 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -1090,58 +1170,55 @@ gboolean photo_file_format_is_basename_supported (const gchar* basename) { _g_free0 (name); #line 104 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1094 "PhotoFileFormat.c" +#line 1174 "PhotoFileFormat.c" } #line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6_ = photo_file_format_get_supported (&_tmp5_); -#line 1098 "PhotoFileFormat.c" + _tmp4_ = photo_file_format_get_supported (&_tmp3_); +#line 1178 "PhotoFileFormat.c" { PhotoFileFormat* format_collection = NULL; gint format_collection_length1 = 0; gint _format_collection_size_ = 0; gint format_it = 0; #line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - format_collection = _tmp6_; + format_collection = _tmp4_; #line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - format_collection_length1 = _tmp5_; + format_collection_length1 = _tmp3_; #line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - for (format_it = 0; format_it < _tmp5_; format_it = format_it + 1) { -#line 1110 "PhotoFileFormat.c" + for (format_it = 0; format_it < _tmp3_; format_it = format_it + 1) { +#line 1190 "PhotoFileFormat.c" PhotoFileFormat format = 0; #line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" format = format_collection[format_it]; -#line 1114 "PhotoFileFormat.c" +#line 1194 "PhotoFileFormat.c" { - PhotoFileFormat _tmp7_; - PhotoFileFormatDriver* _tmp8_; - PhotoFileFormatDriver* _tmp9_; - PhotoFileFormatProperties* _tmp10_; - PhotoFileFormatProperties* _tmp11_; - const gchar* _tmp12_; - gboolean _tmp13_; - gboolean _tmp14_; -#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp7_ = format; + PhotoFileFormat _tmp5_; + PhotoFileFormatDriver* _tmp6_; + PhotoFileFormatDriver* _tmp7_; + PhotoFileFormatProperties* _tmp8_; + PhotoFileFormatProperties* _tmp9_; + const gchar* _tmp10_; + gboolean _tmp11_; #line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp8_ = photo_file_format_get_driver (_tmp7_); + _tmp5_ = format; #line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp9_ = _tmp8_; + _tmp6_ = photo_file_format_get_driver (_tmp5_); #line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp10_ = photo_file_format_driver_get_properties (_tmp9_); + _tmp7_ = _tmp6_; #line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp11_ = _tmp10_; + _tmp8_ = photo_file_format_driver_get_properties (_tmp7_); #line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp12_ = ext; + _tmp9_ = _tmp8_; #line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp13_ = photo_file_format_properties_is_recognized_extension (_tmp11_, _tmp12_); + _tmp10_ = ext; #line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp14_ = _tmp13_; + _tmp11_ = photo_file_format_properties_is_recognized_extension (_tmp9_, _tmp10_); #line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_properties_unref0 (_tmp11_); + _photo_file_format_properties_unref0 (_tmp9_); #line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_driver_unref0 (_tmp9_); + _photo_file_format_driver_unref0 (_tmp7_); #line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp14_) { + if (_tmp11_) { #line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = TRUE; #line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -1152,13 +1229,13 @@ gboolean photo_file_format_is_basename_supported (const gchar* basename) { _g_free0 (name); #line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1156 "PhotoFileFormat.c" +#line 1233 "PhotoFileFormat.c" } } } #line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" format_collection = (g_free (format_collection), NULL); -#line 1162 "PhotoFileFormat.c" +#line 1239 "PhotoFileFormat.c" } #line 111 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = FALSE; @@ -1168,174 +1245,173 @@ gboolean photo_file_format_is_basename_supported (const gchar* basename) { _g_free0 (name); #line 111 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1172 "PhotoFileFormat.c" +#line 1249 "PhotoFileFormat.c" } -PhotoFileFormat photo_file_format_get_system_default_format (void) { +PhotoFileFormat +photo_file_format_get_system_default_format (void) +{ PhotoFileFormat result = 0; #line 116 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_JFIF; #line 116 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1182 "PhotoFileFormat.c" +#line 1261 "PhotoFileFormat.c" } -PhotoFileFormat photo_file_format_get_by_file_extension (GFile* file) { +PhotoFileFormat +photo_file_format_get_by_file_extension (GFile* file) +{ PhotoFileFormat result = 0; - GFile* _tmp0_; + gchar* _tmp0_; gchar* _tmp1_; - gchar* _tmp2_; - PhotoFileFormat _tmp3_; - PhotoFileFormat _tmp4_; + PhotoFileFormat _tmp2_; #line 119 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (G_IS_FILE (file), 0); #line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = file; -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = g_file_get_basename (_tmp0_); + _tmp0_ = g_file_get_basename (file); #line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = _tmp1_; -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = photo_file_format_get_by_basename_extension (_tmp2_); + _tmp1_ = _tmp0_; #line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = _tmp3_; + _tmp2_ = photo_file_format_get_by_basename_extension (_tmp1_); #line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (_tmp2_); + _g_free0 (_tmp1_); #line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp4_; + result = _tmp2_; #line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1211 "PhotoFileFormat.c" +#line 1286 "PhotoFileFormat.c" } -gint photo_file_format_serialize (PhotoFileFormat self) { +gint +photo_file_format_serialize (PhotoFileFormat self) +{ gint result = 0; #line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" switch (self) { #line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case PHOTO_FILE_FORMAT_JFIF: -#line 1221 "PhotoFileFormat.c" +#line 1298 "PhotoFileFormat.c" { #line 127 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = 0; #line 127 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1227 "PhotoFileFormat.c" +#line 1304 "PhotoFileFormat.c" } #line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case PHOTO_FILE_FORMAT_RAW: -#line 1231 "PhotoFileFormat.c" +#line 1308 "PhotoFileFormat.c" { #line 130 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = 1; #line 130 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1237 "PhotoFileFormat.c" +#line 1314 "PhotoFileFormat.c" } #line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case PHOTO_FILE_FORMAT_PNG: -#line 1241 "PhotoFileFormat.c" +#line 1318 "PhotoFileFormat.c" { #line 133 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = 2; #line 133 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1247 "PhotoFileFormat.c" +#line 1324 "PhotoFileFormat.c" } #line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case PHOTO_FILE_FORMAT_TIFF: -#line 1251 "PhotoFileFormat.c" +#line 1328 "PhotoFileFormat.c" { #line 136 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = 3; #line 136 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1257 "PhotoFileFormat.c" +#line 1334 "PhotoFileFormat.c" } #line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case PHOTO_FILE_FORMAT_BMP: -#line 1261 "PhotoFileFormat.c" +#line 1338 "PhotoFileFormat.c" { #line 139 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = 4; #line 139 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1267 "PhotoFileFormat.c" +#line 1344 "PhotoFileFormat.c" } default: #line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case PHOTO_FILE_FORMAT_UNKNOWN: -#line 1272 "PhotoFileFormat.c" +#line 1349 "PhotoFileFormat.c" { #line 143 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = -1; #line 143 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1278 "PhotoFileFormat.c" +#line 1355 "PhotoFileFormat.c" } } } -PhotoFileFormat photo_file_format_unserialize (gint value) { +PhotoFileFormat +photo_file_format_unserialize (gint value) +{ PhotoFileFormat result = 0; - gint _tmp0_; #line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = value; -#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - switch (_tmp0_) { + switch (value) { #line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case 0: -#line 1293 "PhotoFileFormat.c" +#line 1369 "PhotoFileFormat.c" { #line 151 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_JFIF; #line 151 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1299 "PhotoFileFormat.c" +#line 1375 "PhotoFileFormat.c" } #line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case 1: -#line 1303 "PhotoFileFormat.c" +#line 1379 "PhotoFileFormat.c" { #line 154 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_RAW; #line 154 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1309 "PhotoFileFormat.c" +#line 1385 "PhotoFileFormat.c" } #line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case 2: -#line 1313 "PhotoFileFormat.c" +#line 1389 "PhotoFileFormat.c" { #line 157 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_PNG; #line 157 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1319 "PhotoFileFormat.c" +#line 1395 "PhotoFileFormat.c" } #line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case 3: -#line 1323 "PhotoFileFormat.c" +#line 1399 "PhotoFileFormat.c" { #line 160 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_TIFF; #line 160 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1329 "PhotoFileFormat.c" +#line 1405 "PhotoFileFormat.c" } #line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case 4: -#line 1333 "PhotoFileFormat.c" +#line 1409 "PhotoFileFormat.c" { #line 163 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_BMP; #line 163 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1339 "PhotoFileFormat.c" +#line 1415 "PhotoFileFormat.c" } default: { @@ -1343,251 +1419,251 @@ PhotoFileFormat photo_file_format_unserialize (gint value) { result = PHOTO_FILE_FORMAT_UNKNOWN; #line 166 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1347 "PhotoFileFormat.c" +#line 1423 "PhotoFileFormat.c" } } } -PhotoFileFormat photo_file_format_from_gphoto_type (const gchar* type) { +PhotoFileFormat +photo_file_format_from_gphoto_type (const gchar* type) +{ PhotoFileFormat result = 0; const gchar* _tmp0_; - const gchar* _tmp1_; - GQuark _tmp3_ = 0U; + GQuark _tmp2_ = 0U; #line 170 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (type != NULL, 0); #line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp0_ = type; #line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_); + _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_); #line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp3_ == g_quark_from_string (GP_MIME_JPEG)) { + if (_tmp2_ == g_quark_from_string (GP_MIME_JPEG)) { #line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" switch (0) { -#line 1370 "PhotoFileFormat.c" +#line 1445 "PhotoFileFormat.c" default: { #line 173 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_JFIF; #line 173 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1377 "PhotoFileFormat.c" +#line 1452 "PhotoFileFormat.c" } } - } else if ((_tmp3_ == g_quark_from_string (GP_MIME_RAW)) || (_tmp3_ == g_quark_from_string (GP_MIME_CRW))) { + } else if ((_tmp2_ == g_quark_from_string (GP_MIME_RAW)) || (_tmp2_ == g_quark_from_string (GP_MIME_CRW))) { #line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" switch (0) { -#line 1383 "PhotoFileFormat.c" +#line 1458 "PhotoFileFormat.c" default: { #line 177 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_RAW; #line 177 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1390 "PhotoFileFormat.c" +#line 1465 "PhotoFileFormat.c" } } - } else if (_tmp3_ == g_quark_from_string (GP_MIME_PNG)) { + } else if (_tmp2_ == g_quark_from_string (GP_MIME_PNG)) { #line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" switch (0) { -#line 1396 "PhotoFileFormat.c" +#line 1471 "PhotoFileFormat.c" default: { #line 180 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_PNG; #line 180 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1403 "PhotoFileFormat.c" +#line 1478 "PhotoFileFormat.c" } } - } else if (_tmp3_ == g_quark_from_string (GP_MIME_TIFF)) { + } else if (_tmp2_ == g_quark_from_string (GP_MIME_TIFF)) { #line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" switch (0) { -#line 1409 "PhotoFileFormat.c" +#line 1484 "PhotoFileFormat.c" default: { #line 183 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_TIFF; #line 183 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1416 "PhotoFileFormat.c" +#line 1491 "PhotoFileFormat.c" } } - } else if (_tmp3_ == g_quark_from_string (GP_MIME_BMP)) { + } else if (_tmp2_ == g_quark_from_string (GP_MIME_BMP)) { #line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" switch (0) { -#line 1422 "PhotoFileFormat.c" +#line 1497 "PhotoFileFormat.c" default: { #line 186 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_BMP; #line 186 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1429 "PhotoFileFormat.c" +#line 1504 "PhotoFileFormat.c" } } } else { #line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" switch (0) { -#line 1435 "PhotoFileFormat.c" +#line 1510 "PhotoFileFormat.c" default: { #line 190 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_UNKNOWN; #line 190 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1442 "PhotoFileFormat.c" +#line 1517 "PhotoFileFormat.c" } } } } -PhotoFileFormat photo_file_format_from_pixbuf_name (const gchar* name) { +PhotoFileFormat +photo_file_format_from_pixbuf_name (const gchar* name) +{ PhotoFileFormat result = 0; const gchar* _tmp0_; - const gchar* _tmp1_; - GQuark _tmp3_ = 0U; + GQuark _tmp2_ = 0U; #line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - static GQuark _tmp2_label0 = 0; + static GQuark _tmp1_label0 = 0; #line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - static GQuark _tmp2_label1 = 0; + static GQuark _tmp1_label1 = 0; #line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - static GQuark _tmp2_label2 = 0; + static GQuark _tmp1_label2 = 0; #line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - static GQuark _tmp2_label3 = 0; + static GQuark _tmp1_label3 = 0; #line 195 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (name != NULL, 0); #line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp0_ = name; #line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_); + _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_); #line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("jpeg")))) { + if (_tmp2_ == ((0 != _tmp1_label0) ? _tmp1_label0 : (_tmp1_label0 = g_quark_from_static_string ("jpeg")))) { #line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" switch (0) { -#line 1474 "PhotoFileFormat.c" +#line 1548 "PhotoFileFormat.c" default: { #line 198 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_JFIF; #line 198 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1481 "PhotoFileFormat.c" +#line 1555 "PhotoFileFormat.c" } } - } else if (_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("png")))) { + } else if (_tmp2_ == ((0 != _tmp1_label1) ? _tmp1_label1 : (_tmp1_label1 = g_quark_from_static_string ("png")))) { #line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" switch (0) { -#line 1487 "PhotoFileFormat.c" +#line 1561 "PhotoFileFormat.c" default: { #line 201 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_PNG; #line 201 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1494 "PhotoFileFormat.c" +#line 1568 "PhotoFileFormat.c" } } - } else if (_tmp3_ == ((0 != _tmp2_label2) ? _tmp2_label2 : (_tmp2_label2 = g_quark_from_static_string ("tiff")))) { + } else if (_tmp2_ == ((0 != _tmp1_label2) ? _tmp1_label2 : (_tmp1_label2 = g_quark_from_static_string ("tiff")))) { #line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" switch (0) { -#line 1500 "PhotoFileFormat.c" +#line 1574 "PhotoFileFormat.c" default: { #line 204 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_TIFF; #line 204 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1507 "PhotoFileFormat.c" +#line 1581 "PhotoFileFormat.c" } } - } else if (_tmp3_ == ((0 != _tmp2_label3) ? _tmp2_label3 : (_tmp2_label3 = g_quark_from_static_string ("bmp")))) { + } else if (_tmp2_ == ((0 != _tmp1_label3) ? _tmp1_label3 : (_tmp1_label3 = g_quark_from_static_string ("bmp")))) { #line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" switch (0) { -#line 1513 "PhotoFileFormat.c" +#line 1587 "PhotoFileFormat.c" default: { #line 207 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_BMP; #line 207 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1520 "PhotoFileFormat.c" +#line 1594 "PhotoFileFormat.c" } } } else { #line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" switch (0) { -#line 1526 "PhotoFileFormat.c" +#line 1600 "PhotoFileFormat.c" default: { #line 210 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = PHOTO_FILE_FORMAT_UNKNOWN; #line 210 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1533 "PhotoFileFormat.c" +#line 1607 "PhotoFileFormat.c" } } } } -void photo_file_format_init (PhotoFileFormat self) { +void +photo_file_format_init (PhotoFileFormat self) +{ #line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" switch (self) { #line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case PHOTO_FILE_FORMAT_JFIF: -#line 1545 "PhotoFileFormat.c" +#line 1621 "PhotoFileFormat.c" { #line 217 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" jfif_file_format_driver_init (); #line 218 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" break; -#line 1551 "PhotoFileFormat.c" +#line 1627 "PhotoFileFormat.c" } #line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case PHOTO_FILE_FORMAT_RAW: -#line 1555 "PhotoFileFormat.c" +#line 1631 "PhotoFileFormat.c" { #line 221 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" raw_file_format_driver_init (); #line 222 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" break; -#line 1561 "PhotoFileFormat.c" +#line 1637 "PhotoFileFormat.c" } #line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case PHOTO_FILE_FORMAT_PNG: -#line 1565 "PhotoFileFormat.c" +#line 1641 "PhotoFileFormat.c" { #line 225 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" png_file_format_driver_init (); #line 226 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" break; -#line 1571 "PhotoFileFormat.c" +#line 1647 "PhotoFileFormat.c" } #line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case PHOTO_FILE_FORMAT_TIFF: -#line 1575 "PhotoFileFormat.c" +#line 1651 "PhotoFileFormat.c" { #line 229 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" photos_tiff_file_format_driver_init (); #line 230 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" break; -#line 1581 "PhotoFileFormat.c" +#line 1657 "PhotoFileFormat.c" } #line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case PHOTO_FILE_FORMAT_BMP: -#line 1585 "PhotoFileFormat.c" +#line 1661 "PhotoFileFormat.c" { #line 233 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" photos_bmp_file_format_driver_init (); #line 234 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" break; -#line 1591 "PhotoFileFormat.c" +#line 1667 "PhotoFileFormat.c" } default: { @@ -1596,19 +1672,21 @@ void photo_file_format_init (PhotoFileFormat self) { _tmp0_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self); #line 237 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_error ("PhotoFileFormat.vala:237: Unsupported file format %s", (_tmp0_ != NULL) ? _tmp0_->value_name : NULL); -#line 1600 "PhotoFileFormat.c" +#line 1676 "PhotoFileFormat.c" } } } -static PhotoFileFormatDriver* photo_file_format_get_driver (PhotoFileFormat self) { +static PhotoFileFormatDriver* +photo_file_format_get_driver (PhotoFileFormat self) +{ PhotoFileFormatDriver* result = NULL; #line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" switch (self) { #line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case PHOTO_FILE_FORMAT_JFIF: -#line 1612 "PhotoFileFormat.c" +#line 1690 "PhotoFileFormat.c" { JfifFileFormatDriver* _tmp0_; #line 244 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -1617,11 +1695,11 @@ static PhotoFileFormatDriver* photo_file_format_get_driver (PhotoFileFormat self result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver); #line 244 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1621 "PhotoFileFormat.c" +#line 1699 "PhotoFileFormat.c" } #line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case PHOTO_FILE_FORMAT_RAW: -#line 1625 "PhotoFileFormat.c" +#line 1703 "PhotoFileFormat.c" { RawFileFormatDriver* _tmp1_; #line 247 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -1630,11 +1708,11 @@ static PhotoFileFormatDriver* photo_file_format_get_driver (PhotoFileFormat self result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver); #line 247 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1634 "PhotoFileFormat.c" +#line 1712 "PhotoFileFormat.c" } #line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case PHOTO_FILE_FORMAT_PNG: -#line 1638 "PhotoFileFormat.c" +#line 1716 "PhotoFileFormat.c" { PngFileFormatDriver* _tmp2_; #line 250 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -1643,11 +1721,11 @@ static PhotoFileFormatDriver* photo_file_format_get_driver (PhotoFileFormat self result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver); #line 250 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1647 "PhotoFileFormat.c" +#line 1725 "PhotoFileFormat.c" } #line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case PHOTO_FILE_FORMAT_TIFF: -#line 1651 "PhotoFileFormat.c" +#line 1729 "PhotoFileFormat.c" { PhotosTiffFileFormatDriver* _tmp3_; #line 253 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -1656,11 +1734,11 @@ static PhotoFileFormatDriver* photo_file_format_get_driver (PhotoFileFormat self result = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver); #line 253 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1660 "PhotoFileFormat.c" +#line 1738 "PhotoFileFormat.c" } #line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" case PHOTO_FILE_FORMAT_BMP: -#line 1664 "PhotoFileFormat.c" +#line 1742 "PhotoFileFormat.c" { PhotosBmpFileFormatDriver* _tmp4_; #line 256 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -1669,7 +1747,7 @@ static PhotoFileFormatDriver* photo_file_format_get_driver (PhotoFileFormat self result = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver); #line 256 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1673 "PhotoFileFormat.c" +#line 1751 "PhotoFileFormat.c" } default: { @@ -1678,13 +1756,15 @@ static PhotoFileFormatDriver* photo_file_format_get_driver (PhotoFileFormat self _tmp5_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self); #line 259 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_error ("PhotoFileFormat.vala:259: Unsupported file format %s", (_tmp5_ != NULL) ? _tmp5_->value_name : NULL); -#line 1682 "PhotoFileFormat.c" +#line 1760 "PhotoFileFormat.c" } } } -PhotoFileFormatProperties* photo_file_format_get_properties (PhotoFileFormat self) { +PhotoFileFormatProperties* +photo_file_format_get_properties (PhotoFileFormat self) +{ PhotoFileFormatProperties* result = NULL; PhotoFileFormatDriver* _tmp0_; PhotoFileFormatDriver* _tmp1_; @@ -1704,54 +1784,56 @@ PhotoFileFormatProperties* photo_file_format_get_properties (PhotoFileFormat sel result = _tmp3_; #line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1708 "PhotoFileFormat.c" +#line 1788 "PhotoFileFormat.c" } -gchar* photo_file_format_get_default_basename (PhotoFileFormat self, const gchar* name) { +gchar* +photo_file_format_get_default_basename (PhotoFileFormat self, + const gchar* name) +{ gchar* result = NULL; - const gchar* _tmp0_; + PhotoFileFormatProperties* _tmp0_; PhotoFileFormatProperties* _tmp1_; - PhotoFileFormatProperties* _tmp2_; + gchar* _tmp2_; gchar* _tmp3_; gchar* _tmp4_; gchar* _tmp5_; - gchar* _tmp6_; #line 268 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (name != NULL, NULL); #line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = name; -#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = photo_file_format_get_properties (self); + _tmp0_ = photo_file_format_get_properties (self); #line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = _tmp1_; + _tmp1_ = _tmp0_; #line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = photo_file_format_properties_get_default_extension (_tmp2_); + _tmp2_ = photo_file_format_properties_get_default_extension (_tmp1_); #line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = _tmp3_; + _tmp3_ = _tmp2_; #line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = g_strdup_printf ("%s.%s", _tmp0_, _tmp4_); + _tmp4_ = g_strdup_printf ("%s.%s", name, _tmp3_); #line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6_ = _tmp5_; + _tmp5_ = _tmp4_; #line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (_tmp4_); + _g_free0 (_tmp3_); #line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_properties_unref0 (_tmp2_); + _photo_file_format_properties_unref0 (_tmp1_); #line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp6_; + result = _tmp5_; #line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1745 "PhotoFileFormat.c" +#line 1825 "PhotoFileFormat.c" } -PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self, const gchar* filepath) { +PhotoFileReader* +photo_file_format_create_reader (PhotoFileFormat self, + const gchar* filepath) +{ PhotoFileReader* result = NULL; PhotoFileFormatDriver* _tmp0_; PhotoFileFormatDriver* _tmp1_; - const gchar* _tmp2_; + PhotoFileReader* _tmp2_; PhotoFileReader* _tmp3_; - PhotoFileReader* _tmp4_; #line 272 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (filepath != NULL, NULL); #line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -1759,55 +1841,49 @@ PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self, const gc #line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp1_ = _tmp0_; #line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = filepath; -#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = photo_file_format_driver_create_reader (_tmp1_, _tmp2_); + _tmp2_ = photo_file_format_driver_create_reader (_tmp1_, filepath); #line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = _tmp3_; + _tmp3_ = _tmp2_; #line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _photo_file_format_driver_unref0 (_tmp1_); #line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp4_; + result = _tmp3_; #line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1774 "PhotoFileFormat.c" +#line 1854 "PhotoFileFormat.c" } -gboolean photo_file_format_can_write (PhotoFileFormat self) { +gboolean +photo_file_format_can_write (PhotoFileFormat self) +{ gboolean result = FALSE; gboolean _tmp0_ = FALSE; - gboolean _tmp1_; -#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = photo_file_format_can_write_image (self); #line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp1_) { -#line 1786 "PhotoFileFormat.c" - gboolean _tmp2_; + if (photo_file_format_can_write_image (self)) { #line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_can_write_metadata (self); -#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = _tmp2_; -#line 1792 "PhotoFileFormat.c" + _tmp0_ = photo_file_format_can_write_metadata (self); +#line 1867 "PhotoFileFormat.c" } else { #line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp0_ = FALSE; -#line 1796 "PhotoFileFormat.c" +#line 1871 "PhotoFileFormat.c" } #line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = _tmp0_; #line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1802 "PhotoFileFormat.c" +#line 1877 "PhotoFileFormat.c" } -gboolean photo_file_format_can_write_image (PhotoFileFormat self) { +gboolean +photo_file_format_can_write_image (PhotoFileFormat self) +{ gboolean result = FALSE; PhotoFileFormatDriver* _tmp0_; PhotoFileFormatDriver* _tmp1_; gboolean _tmp2_; - gboolean _tmp3_; #line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp0_ = photo_file_format_get_driver (self); #line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -1815,23 +1891,22 @@ gboolean photo_file_format_can_write_image (PhotoFileFormat self) { #line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp2_ = photo_file_format_driver_can_write_image (_tmp1_); #line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = _tmp2_; -#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _photo_file_format_driver_unref0 (_tmp1_); #line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp3_; + result = _tmp2_; #line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1826 "PhotoFileFormat.c" +#line 1900 "PhotoFileFormat.c" } -gboolean photo_file_format_can_write_metadata (PhotoFileFormat self) { +gboolean +photo_file_format_can_write_metadata (PhotoFileFormat self) +{ gboolean result = FALSE; PhotoFileFormatDriver* _tmp0_; PhotoFileFormatDriver* _tmp1_; gboolean _tmp2_; - gboolean _tmp3_; #line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp0_ = photo_file_format_get_driver (self); #line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -1839,26 +1914,27 @@ gboolean photo_file_format_can_write_metadata (PhotoFileFormat self) { #line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp2_ = photo_file_format_driver_can_write_metadata (_tmp1_); #line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = _tmp2_; -#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _photo_file_format_driver_unref0 (_tmp1_); #line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp3_; + result = _tmp2_; #line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1850 "PhotoFileFormat.c" +#line 1923 "PhotoFileFormat.c" } -PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self, const gchar* filepath, GError** error) { +PhotoFileWriter* +photo_file_format_create_writer (PhotoFileFormat self, + const gchar* filepath, + GError** error) +{ PhotoFileWriter* result = NULL; PhotoFileWriter* writer = NULL; PhotoFileFormatDriver* _tmp0_; PhotoFileFormatDriver* _tmp1_; - const gchar* _tmp2_; + PhotoFileWriter* _tmp2_; PhotoFileWriter* _tmp3_; PhotoFileWriter* _tmp4_; - PhotoFileWriter* _tmp5_; GError * _inner_error_ = NULL; #line 289 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (filepath != NULL, NULL); @@ -1867,28 +1943,26 @@ PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self, const gc #line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp1_ = _tmp0_; #line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = filepath; -#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = photo_file_format_driver_create_writer (_tmp1_, _tmp2_); + _tmp2_ = photo_file_format_driver_create_writer (_tmp1_, filepath); #line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = _tmp3_; + _tmp3_ = _tmp2_; #line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _photo_file_format_driver_unref0 (_tmp1_); #line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - writer = _tmp4_; + writer = _tmp3_; #line 291 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = writer; + _tmp4_ = writer; #line 291 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp5_ == NULL) { -#line 1884 "PhotoFileFormat.c" - GEnumValue* _tmp6_; - GError* _tmp7_; + if (_tmp4_ == NULL) { +#line 1958 "PhotoFileFormat.c" + GEnumValue* _tmp5_; + GError* _tmp6_; #line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self); + _tmp5_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self); #line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp7_ = g_error_new (PHOTO_FORMAT_ERROR, PHOTO_FORMAT_ERROR_READ_ONLY, "File format %s is read-only", (_tmp6_ != NULL) ? _tmp6_->value_name : NULL); + _tmp6_ = g_error_new (PHOTO_FORMAT_ERROR, PHOTO_FORMAT_ERROR_READ_ONLY, "File format %s is read-only", (_tmp5_ != NULL) ? _tmp5_->value_name : NULL); #line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _inner_error_ = _tmp7_; + _inner_error_ = _tmp6_; #line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (_inner_error_->domain == PHOTO_FORMAT_ERROR) { #line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -1897,7 +1971,7 @@ PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self, const gc _photo_file_adapter_unref0 (writer); #line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 1901 "PhotoFileFormat.c" +#line 1975 "PhotoFileFormat.c" } else { #line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _photo_file_adapter_unref0 (writer); @@ -1907,26 +1981,29 @@ PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self, const gc g_clear_error (&_inner_error_); #line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 1911 "PhotoFileFormat.c" +#line 1985 "PhotoFileFormat.c" } } #line 294 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = writer; #line 294 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1918 "PhotoFileFormat.c" +#line 1992 "PhotoFileFormat.c" } -PhotoFileMetadataWriter* photo_file_format_create_metadata_writer (PhotoFileFormat self, const gchar* filepath, GError** error) { +PhotoFileMetadataWriter* +photo_file_format_create_metadata_writer (PhotoFileFormat self, + const gchar* filepath, + GError** error) +{ PhotoFileMetadataWriter* result = NULL; PhotoFileMetadataWriter* writer = NULL; PhotoFileFormatDriver* _tmp0_; PhotoFileFormatDriver* _tmp1_; - const gchar* _tmp2_; + PhotoFileMetadataWriter* _tmp2_; PhotoFileMetadataWriter* _tmp3_; PhotoFileMetadataWriter* _tmp4_; - PhotoFileMetadataWriter* _tmp5_; GError * _inner_error_ = NULL; #line 297 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (filepath != NULL, NULL); @@ -1935,28 +2012,26 @@ PhotoFileMetadataWriter* photo_file_format_create_metadata_writer (PhotoFileForm #line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp1_ = _tmp0_; #line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = filepath; + _tmp2_ = photo_file_format_driver_create_metadata_writer (_tmp1_, filepath); #line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = photo_file_format_driver_create_metadata_writer (_tmp1_, _tmp2_); -#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = _tmp3_; + _tmp3_ = _tmp2_; #line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _photo_file_format_driver_unref0 (_tmp1_); #line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - writer = _tmp4_; + writer = _tmp3_; #line 299 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = writer; + _tmp4_ = writer; #line 299 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp5_ == NULL) { -#line 1952 "PhotoFileFormat.c" - GEnumValue* _tmp6_; - GError* _tmp7_; + if (_tmp4_ == NULL) { +#line 2027 "PhotoFileFormat.c" + GEnumValue* _tmp5_; + GError* _tmp6_; #line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self); + _tmp5_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self); #line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp7_ = g_error_new (PHOTO_FORMAT_ERROR, PHOTO_FORMAT_ERROR_READ_ONLY, "File format %s metadata is read-only", (_tmp6_ != NULL) ? _tmp6_->value_name : NULL); + _tmp6_ = g_error_new (PHOTO_FORMAT_ERROR, PHOTO_FORMAT_ERROR_READ_ONLY, "File format %s metadata is read-only", (_tmp5_ != NULL) ? _tmp5_->value_name : NULL); #line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _inner_error_ = _tmp7_; + _inner_error_ = _tmp6_; #line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (_inner_error_->domain == PHOTO_FORMAT_ERROR) { #line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -1965,7 +2040,7 @@ PhotoFileMetadataWriter* photo_file_format_create_metadata_writer (PhotoFileForm _photo_file_adapter_unref0 (writer); #line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 1969 "PhotoFileFormat.c" +#line 2044 "PhotoFileFormat.c" } else { #line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _photo_file_adapter_unref0 (writer); @@ -1975,25 +2050,27 @@ PhotoFileMetadataWriter* photo_file_format_create_metadata_writer (PhotoFileForm g_clear_error (&_inner_error_); #line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 1979 "PhotoFileFormat.c" +#line 2054 "PhotoFileFormat.c" } } #line 302 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = writer; #line 302 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 1986 "PhotoFileFormat.c" +#line 2061 "PhotoFileFormat.c" } -PhotoFileSniffer* photo_file_format_create_sniffer (PhotoFileFormat self, GFile* file, PhotoFileSnifferOptions options) { +PhotoFileSniffer* +photo_file_format_create_sniffer (PhotoFileFormat self, + GFile* file, + PhotoFileSnifferOptions options) +{ PhotoFileSniffer* result = NULL; PhotoFileFormatDriver* _tmp0_; PhotoFileFormatDriver* _tmp1_; - GFile* _tmp2_; - PhotoFileSnifferOptions _tmp3_; - PhotoFileSniffer* _tmp4_; - PhotoFileSniffer* _tmp5_; + PhotoFileSniffer* _tmp2_; + PhotoFileSniffer* _tmp3_; #line 305 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (G_IS_FILE (file), NULL); #line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -2001,24 +2078,22 @@ PhotoFileSniffer* photo_file_format_create_sniffer (PhotoFileFormat self, GFile* #line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp1_ = _tmp0_; #line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = file; -#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = options; + _tmp2_ = photo_file_format_driver_create_sniffer (_tmp1_, file, options); #line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = photo_file_format_driver_create_sniffer (_tmp1_, _tmp2_, _tmp3_); -#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = _tmp4_; + _tmp3_ = _tmp2_; #line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _photo_file_format_driver_unref0 (_tmp1_); #line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp5_; + result = _tmp3_; #line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 2018 "PhotoFileFormat.c" +#line 2091 "PhotoFileFormat.c" } -PhotoMetadata* photo_file_format_create_metadata (PhotoFileFormat self) { +PhotoMetadata* +photo_file_format_create_metadata (PhotoFileFormat self) +{ PhotoMetadata* result = NULL; PhotoFileFormatDriver* _tmp0_; PhotoFileFormatDriver* _tmp1_; @@ -2038,11 +2113,13 @@ PhotoMetadata* photo_file_format_create_metadata (PhotoFileFormat self) { result = _tmp3_; #line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 2042 "PhotoFileFormat.c" +#line 2117 "PhotoFileFormat.c" } -gchar* photo_file_format_get_default_mime_type (PhotoFileFormat self) { +gchar* +photo_file_format_get_default_mime_type (PhotoFileFormat self) +{ gchar* result = NULL; PhotoFileFormatDriver* _tmp0_; PhotoFileFormatDriver* _tmp1_; @@ -2070,11 +2147,14 @@ gchar* photo_file_format_get_default_mime_type (PhotoFileFormat self) { result = _tmp5_; #line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 2074 "PhotoFileFormat.c" +#line 2151 "PhotoFileFormat.c" } -gchar** photo_file_format_get_mime_types (PhotoFileFormat self, int* result_length1) { +gchar** +photo_file_format_get_mime_types (PhotoFileFormat self, + int* result_length1) +{ gchar** result = NULL; PhotoFileFormatDriver* _tmp0_; PhotoFileFormatDriver* _tmp1_; @@ -2112,34 +2192,41 @@ gchar** photo_file_format_get_mime_types (PhotoFileFormat self, int* result_leng if (result_length1) { #line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *result_length1 = _tmp7__length1; -#line 2116 "PhotoFileFormat.c" +#line 2196 "PhotoFileFormat.c" } #line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = _tmp7_; #line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 2122 "PhotoFileFormat.c" +#line 2202 "PhotoFileFormat.c" } -static void _vala_array_add47 (gchar** * array, int* length, int* size, gchar* value) { +static void +_vala_array_add47 (gchar** * array, + int* length, + int* size, + gchar* value) +{ #line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if ((*length) == (*size)) { #line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *size = (*size) ? (2 * (*size)) : 4; #line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *array = g_renew (gchar*, *array, (*size) + 1); -#line 2133 "PhotoFileFormat.c" +#line 2218 "PhotoFileFormat.c" } #line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" (*array)[(*length)++] = value; #line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" (*array)[*length] = NULL; -#line 2139 "PhotoFileFormat.c" +#line 2224 "PhotoFileFormat.c" } -gchar** photo_file_format_get_editable_mime_types (int* result_length1) { +gchar** +photo_file_format_get_editable_mime_types (int* result_length1) +{ gchar** result = NULL; gchar** mime_types = NULL; gchar** _tmp0_; @@ -2159,7 +2246,7 @@ gchar** photo_file_format_get_editable_mime_types (int* result_length1) { _mime_types_size_ = mime_types_length1; #line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp2_ = photo_file_format_get_supported (&_tmp1_); -#line 2163 "PhotoFileFormat.c" +#line 2250 "PhotoFileFormat.c" { PhotoFileFormat* file_format_collection = NULL; gint file_format_collection_length1 = 0; @@ -2171,11 +2258,11 @@ gchar** photo_file_format_get_editable_mime_types (int* result_length1) { file_format_collection_length1 = _tmp1_; #line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" for (file_format_it = 0; file_format_it < _tmp1_; file_format_it = file_format_it + 1) { -#line 2175 "PhotoFileFormat.c" +#line 2262 "PhotoFileFormat.c" PhotoFileFormat file_format = 0; #line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" file_format = file_format_collection[file_format_it]; -#line 2179 "PhotoFileFormat.c" +#line 2266 "PhotoFileFormat.c" { PhotoFileFormat _tmp3_; gint _tmp4_; @@ -2184,7 +2271,7 @@ gchar** photo_file_format_get_editable_mime_types (int* result_length1) { _tmp3_ = file_format; #line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp5_ = photo_file_format_get_mime_types (_tmp3_, &_tmp4_); -#line 2188 "PhotoFileFormat.c" +#line 2275 "PhotoFileFormat.c" { gchar** mime_type_collection = NULL; gint mime_type_collection_length1 = 0; @@ -2196,14 +2283,14 @@ gchar** photo_file_format_get_editable_mime_types (int* result_length1) { mime_type_collection_length1 = _tmp4_; #line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" for (mime_type_it = 0; mime_type_it < _tmp4_; mime_type_it = mime_type_it + 1) { -#line 2200 "PhotoFileFormat.c" +#line 2287 "PhotoFileFormat.c" gchar* _tmp6_; gchar* mime_type = NULL; #line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp6_ = g_strdup (mime_type_collection[mime_type_it]); #line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" mime_type = _tmp6_; -#line 2207 "PhotoFileFormat.c" +#line 2294 "PhotoFileFormat.c" { gchar** _tmp7_; gint _tmp7__length1; @@ -2221,18 +2308,18 @@ gchar** photo_file_format_get_editable_mime_types (int* result_length1) { _vala_array_add47 (&mime_types, &mime_types_length1, &_mime_types_size_, _tmp9_); #line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _g_free0 (mime_type); -#line 2225 "PhotoFileFormat.c" +#line 2312 "PhotoFileFormat.c" } } #line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" mime_type_collection = (_vala_array_free (mime_type_collection, mime_type_collection_length1, (GDestroyNotify) g_free), NULL); -#line 2230 "PhotoFileFormat.c" +#line 2317 "PhotoFileFormat.c" } } } #line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" file_format_collection = (g_free (file_format_collection), NULL); -#line 2236 "PhotoFileFormat.c" +#line 2323 "PhotoFileFormat.c" } #line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _tmp10_ = mime_types; @@ -2242,17 +2329,19 @@ gchar** photo_file_format_get_editable_mime_types (int* result_length1) { if (result_length1) { #line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *result_length1 = _tmp10__length1; -#line 2246 "PhotoFileFormat.c" +#line 2333 "PhotoFileFormat.c" } #line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" result = _tmp10_; #line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 2252 "PhotoFileFormat.c" +#line 2339 "PhotoFileFormat.c" } -GType photo_file_format_get_type (void) { +GType +photo_file_format_get_type (void) +{ static volatile gsize photo_file_format_type_id__volatile = 0; if (g_once_init_enter (&photo_file_format_type_id__volatile)) { static const GEnumValue values[] = {{PHOTO_FILE_FORMAT_JFIF, "PHOTO_FILE_FORMAT_JFIF", "jfif"}, {PHOTO_FILE_FORMAT_RAW, "PHOTO_FILE_FORMAT_RAW", "raw"}, {PHOTO_FILE_FORMAT_PNG, "PHOTO_FILE_FORMAT_PNG", "png"}, {PHOTO_FILE_FORMAT_TIFF, "PHOTO_FILE_FORMAT_TIFF", "tiff"}, {PHOTO_FILE_FORMAT_BMP, "PHOTO_FILE_FORMAT_BMP", "bmp"}, {PHOTO_FILE_FORMAT_UNKNOWN, "PHOTO_FILE_FORMAT_UNKNOWN", "unknown"}, {0, NULL, NULL}}; @@ -2264,260 +2353,329 @@ GType photo_file_format_get_type (void) { } -static PhotoFileFormatProperties* photo_file_format_driver_real_get_properties (PhotoFileFormatDriver* self) { +static PhotoFileFormatProperties* +photo_file_format_driver_real_get_properties (PhotoFileFormatDriver* self) +{ #line 345 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_get_properties'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 345 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 2273 "PhotoFileFormat.c" +#line 2364 "PhotoFileFormat.c" } -PhotoFileFormatProperties* photo_file_format_driver_get_properties (PhotoFileFormatDriver* self) { +PhotoFileFormatProperties* +photo_file_format_driver_get_properties (PhotoFileFormatDriver* self) +{ #line 345 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL); #line 345 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->get_properties (self); -#line 2282 "PhotoFileFormat.c" +#line 2375 "PhotoFileFormat.c" } -static PhotoFileReader* photo_file_format_driver_real_create_reader (PhotoFileFormatDriver* self, const gchar* filepath) { +static PhotoFileReader* +photo_file_format_driver_real_create_reader (PhotoFileFormatDriver* self, + const gchar* filepath) +{ #line 347 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_reader'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 347 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 2291 "PhotoFileFormat.c" +#line 2387 "PhotoFileFormat.c" } -PhotoFileReader* photo_file_format_driver_create_reader (PhotoFileFormatDriver* self, const gchar* filepath) { +PhotoFileReader* +photo_file_format_driver_create_reader (PhotoFileFormatDriver* self, + const gchar* filepath) +{ #line 347 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL); #line 347 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_reader (self, filepath); -#line 2300 "PhotoFileFormat.c" +#line 2399 "PhotoFileFormat.c" } -static PhotoMetadata* photo_file_format_driver_real_create_metadata (PhotoFileFormatDriver* self) { +static PhotoMetadata* +photo_file_format_driver_real_create_metadata (PhotoFileFormatDriver* self) +{ #line 349 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 349 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 2309 "PhotoFileFormat.c" +#line 2410 "PhotoFileFormat.c" } -PhotoMetadata* photo_file_format_driver_create_metadata (PhotoFileFormatDriver* self) { +PhotoMetadata* +photo_file_format_driver_create_metadata (PhotoFileFormatDriver* self) +{ #line 349 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL); #line 349 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_metadata (self); -#line 2318 "PhotoFileFormat.c" +#line 2421 "PhotoFileFormat.c" } -static gboolean photo_file_format_driver_real_can_write_image (PhotoFileFormatDriver* self) { +static gboolean +photo_file_format_driver_real_can_write_image (PhotoFileFormatDriver* self) +{ gboolean _tmp0_ = FALSE; #line 351 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_can_write_image'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 351 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return _tmp0_; -#line 2328 "PhotoFileFormat.c" +#line 2433 "PhotoFileFormat.c" } -gboolean photo_file_format_driver_can_write_image (PhotoFileFormatDriver* self) { +gboolean +photo_file_format_driver_can_write_image (PhotoFileFormatDriver* self) +{ #line 351 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), FALSE); #line 351 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->can_write_image (self); -#line 2337 "PhotoFileFormat.c" +#line 2444 "PhotoFileFormat.c" } -static gboolean photo_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* self) { +static gboolean +photo_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* self) +{ gboolean _tmp0_ = FALSE; #line 353 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_can_write_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 353 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return _tmp0_; -#line 2347 "PhotoFileFormat.c" +#line 2456 "PhotoFileFormat.c" } -gboolean photo_file_format_driver_can_write_metadata (PhotoFileFormatDriver* self) { +gboolean +photo_file_format_driver_can_write_metadata (PhotoFileFormatDriver* self) +{ #line 353 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), FALSE); #line 353 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->can_write_metadata (self); -#line 2356 "PhotoFileFormat.c" +#line 2467 "PhotoFileFormat.c" } -static PhotoFileWriter* photo_file_format_driver_real_create_writer (PhotoFileFormatDriver* self, const gchar* filepath) { +static PhotoFileWriter* +photo_file_format_driver_real_create_writer (PhotoFileFormatDriver* self, + const gchar* filepath) +{ #line 355 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_writer'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 355 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 2365 "PhotoFileFormat.c" +#line 2479 "PhotoFileFormat.c" } -PhotoFileWriter* photo_file_format_driver_create_writer (PhotoFileFormatDriver* self, const gchar* filepath) { +PhotoFileWriter* +photo_file_format_driver_create_writer (PhotoFileFormatDriver* self, + const gchar* filepath) +{ #line 355 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL); #line 355 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_writer (self, filepath); -#line 2374 "PhotoFileFormat.c" +#line 2491 "PhotoFileFormat.c" } -static PhotoFileMetadataWriter* photo_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* self, const gchar* filepath) { +static PhotoFileMetadataWriter* +photo_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* self, + const gchar* filepath) +{ #line 357 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_metadata_writer'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 357 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 2383 "PhotoFileFormat.c" +#line 2503 "PhotoFileFormat.c" } -PhotoFileMetadataWriter* photo_file_format_driver_create_metadata_writer (PhotoFileFormatDriver* self, const gchar* filepath) { +PhotoFileMetadataWriter* +photo_file_format_driver_create_metadata_writer (PhotoFileFormatDriver* self, + const gchar* filepath) +{ #line 357 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL); #line 357 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_metadata_writer (self, filepath); -#line 2392 "PhotoFileFormat.c" +#line 2515 "PhotoFileFormat.c" } -static PhotoFileSniffer* photo_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options) { +static PhotoFileSniffer* +photo_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* self, + GFile* file, + PhotoFileSnifferOptions options) +{ #line 359 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_sniffer'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 359 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 2401 "PhotoFileFormat.c" +#line 2528 "PhotoFileFormat.c" } -PhotoFileSniffer* photo_file_format_driver_create_sniffer (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options) { +PhotoFileSniffer* +photo_file_format_driver_create_sniffer (PhotoFileFormatDriver* self, + GFile* file, + PhotoFileSnifferOptions options) +{ #line 359 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL); #line 359 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_sniffer (self, file, options); -#line 2410 "PhotoFileFormat.c" +#line 2541 "PhotoFileFormat.c" } -PhotoFileFormatDriver* photo_file_format_driver_construct (GType object_type) { +PhotoFileFormatDriver* +photo_file_format_driver_construct (GType object_type) +{ PhotoFileFormatDriver* self = NULL; #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" self = (PhotoFileFormatDriver*) g_type_create_instance (object_type); #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return self; -#line 2420 "PhotoFileFormat.c" +#line 2553 "PhotoFileFormat.c" } -static void value_photo_file_format_driver_init (GValue* value) { +static void +value_photo_file_format_driver_init (GValue* value) +{ #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" value->data[0].v_pointer = NULL; -#line 2427 "PhotoFileFormat.c" +#line 2562 "PhotoFileFormat.c" } -static void value_photo_file_format_driver_free_value (GValue* value) { +static void +value_photo_file_format_driver_free_value (GValue* value) +{ #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (value->data[0].v_pointer) { #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" photo_file_format_driver_unref (value->data[0].v_pointer); -#line 2436 "PhotoFileFormat.c" +#line 2573 "PhotoFileFormat.c" } } -static void value_photo_file_format_driver_copy_value (const GValue* src_value, GValue* dest_value) { +static void +value_photo_file_format_driver_copy_value (const GValue* src_value, + GValue* dest_value) +{ #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (src_value->data[0].v_pointer) { #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" dest_value->data[0].v_pointer = photo_file_format_driver_ref (src_value->data[0].v_pointer); -#line 2446 "PhotoFileFormat.c" +#line 2586 "PhotoFileFormat.c" } else { #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" dest_value->data[0].v_pointer = NULL; -#line 2450 "PhotoFileFormat.c" +#line 2590 "PhotoFileFormat.c" } } -static gpointer value_photo_file_format_driver_peek_pointer (const GValue* value) { +static gpointer +value_photo_file_format_driver_peek_pointer (const GValue* value) +{ #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return value->data[0].v_pointer; -#line 2458 "PhotoFileFormat.c" +#line 2600 "PhotoFileFormat.c" } -static gchar* value_photo_file_format_driver_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +static gchar* +value_photo_file_format_driver_collect_value (GValue* value, + guint n_collect_values, + GTypeCValue* collect_values, + guint collect_flags) +{ #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (collect_values[0].v_pointer) { -#line 2465 "PhotoFileFormat.c" +#line 2612 "PhotoFileFormat.c" PhotoFileFormatDriver * object; object = collect_values[0].v_pointer; #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (object->parent_instance.g_class == NULL) { #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2472 "PhotoFileFormat.c" +#line 2619 "PhotoFileFormat.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.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 2476 "PhotoFileFormat.c" +#line 2623 "PhotoFileFormat.c" } #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" value->data[0].v_pointer = photo_file_format_driver_ref (object); -#line 2480 "PhotoFileFormat.c" +#line 2627 "PhotoFileFormat.c" } else { #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" value->data[0].v_pointer = NULL; -#line 2484 "PhotoFileFormat.c" +#line 2631 "PhotoFileFormat.c" } #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 2488 "PhotoFileFormat.c" +#line 2635 "PhotoFileFormat.c" } -static gchar* value_photo_file_format_driver_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +static gchar* +value_photo_file_format_driver_lcopy_value (const GValue* value, + guint n_collect_values, + GTypeCValue* collect_values, + guint collect_flags) +{ PhotoFileFormatDriver ** object_p; object_p = collect_values[0].v_pointer; #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (!object_p) { #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2499 "PhotoFileFormat.c" +#line 2651 "PhotoFileFormat.c" } #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (!value->data[0].v_pointer) { #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *object_p = NULL; -#line 2505 "PhotoFileFormat.c" +#line 2657 "PhotoFileFormat.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *object_p = value->data[0].v_pointer; -#line 2509 "PhotoFileFormat.c" +#line 2661 "PhotoFileFormat.c" } else { #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *object_p = photo_file_format_driver_ref (value->data[0].v_pointer); -#line 2513 "PhotoFileFormat.c" +#line 2665 "PhotoFileFormat.c" } #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 2517 "PhotoFileFormat.c" +#line 2669 "PhotoFileFormat.c" } -GParamSpec* param_spec_photo_file_format_driver (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) { +GParamSpec* +param_spec_photo_file_format_driver (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags) +{ ParamSpecPhotoFileFormatDriver* spec; #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_FILE_FORMAT_DRIVER), NULL); @@ -2527,20 +2685,25 @@ GParamSpec* param_spec_photo_file_format_driver (const gchar* name, const gchar* G_PARAM_SPEC (spec)->value_type = object_type; #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return G_PARAM_SPEC (spec); -#line 2531 "PhotoFileFormat.c" +#line 2689 "PhotoFileFormat.c" } -gpointer value_get_photo_file_format_driver (const GValue* value) { +gpointer +value_get_photo_file_format_driver (const GValue* value) +{ #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_DRIVER), NULL); #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return value->data[0].v_pointer; -#line 2540 "PhotoFileFormat.c" +#line 2700 "PhotoFileFormat.c" } -void value_set_photo_file_format_driver (GValue* value, gpointer v_object) { +void +value_set_photo_file_format_driver (GValue* value, + gpointer v_object) +{ PhotoFileFormatDriver * old; #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_DRIVER)); @@ -2556,22 +2719,25 @@ void value_set_photo_file_format_driver (GValue* value, gpointer v_object) { value->data[0].v_pointer = v_object; #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" photo_file_format_driver_ref (value->data[0].v_pointer); -#line 2560 "PhotoFileFormat.c" +#line 2723 "PhotoFileFormat.c" } else { #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" value->data[0].v_pointer = NULL; -#line 2564 "PhotoFileFormat.c" +#line 2727 "PhotoFileFormat.c" } #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (old) { #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" photo_file_format_driver_unref (old); -#line 2570 "PhotoFileFormat.c" +#line 2733 "PhotoFileFormat.c" } } -void value_take_photo_file_format_driver (GValue* value, gpointer v_object) { +void +value_take_photo_file_format_driver (GValue* value, + gpointer v_object) +{ PhotoFileFormatDriver * old; #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_DRIVER)); @@ -2585,22 +2751,24 @@ void value_take_photo_file_format_driver (GValue* value, gpointer v_object) { g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" value->data[0].v_pointer = v_object; -#line 2589 "PhotoFileFormat.c" +#line 2755 "PhotoFileFormat.c" } else { #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" value->data[0].v_pointer = NULL; -#line 2593 "PhotoFileFormat.c" +#line 2759 "PhotoFileFormat.c" } #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (old) { #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" photo_file_format_driver_unref (old); -#line 2599 "PhotoFileFormat.c" +#line 2765 "PhotoFileFormat.c" } } -static void photo_file_format_driver_class_init (PhotoFileFormatDriverClass * klass) { +static void +photo_file_format_driver_class_init (PhotoFileFormatDriverClass * klass) +{ #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" photo_file_format_driver_parent_class = g_type_class_peek_parent (klass); #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -2621,28 +2789,34 @@ static void photo_file_format_driver_class_init (PhotoFileFormatDriverClass * kl ((PhotoFileFormatDriverClass *) klass)->create_metadata_writer = (PhotoFileMetadataWriter* (*) (PhotoFileFormatDriver *, const gchar*)) photo_file_format_driver_real_create_metadata_writer; #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" ((PhotoFileFormatDriverClass *) klass)->create_sniffer = (PhotoFileSniffer* (*) (PhotoFileFormatDriver *, GFile*, PhotoFileSnifferOptions)) photo_file_format_driver_real_create_sniffer; -#line 2625 "PhotoFileFormat.c" +#line 2793 "PhotoFileFormat.c" } -static void photo_file_format_driver_instance_init (PhotoFileFormatDriver * self) { +static void +photo_file_format_driver_instance_init (PhotoFileFormatDriver * self) +{ #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" self->ref_count = 1; -#line 2632 "PhotoFileFormat.c" +#line 2802 "PhotoFileFormat.c" } -static void photo_file_format_driver_finalize (PhotoFileFormatDriver * obj) { +static void +photo_file_format_driver_finalize (PhotoFileFormatDriver * obj) +{ PhotoFileFormatDriver * self; #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver); #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_signal_handlers_destroy (self); -#line 2642 "PhotoFileFormat.c" +#line 2814 "PhotoFileFormat.c" } -GType photo_file_format_driver_get_type (void) { +GType +photo_file_format_driver_get_type (void) +{ static volatile gsize photo_file_format_driver_type_id__volatile = 0; if (g_once_init_enter (&photo_file_format_driver_type_id__volatile)) { static const GTypeValueTable g_define_type_value_table = { value_photo_file_format_driver_init, value_photo_file_format_driver_free_value, value_photo_file_format_driver_copy_value, value_photo_file_format_driver_peek_pointer, "p", value_photo_file_format_driver_collect_value, "p", value_photo_file_format_driver_lcopy_value }; @@ -2656,18 +2830,22 @@ GType photo_file_format_driver_get_type (void) { } -gpointer photo_file_format_driver_ref (gpointer instance) { +gpointer +photo_file_format_driver_ref (gpointer instance) +{ PhotoFileFormatDriver * self; self = instance; #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_atomic_int_inc (&self->ref_count); #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return instance; -#line 2667 "PhotoFileFormat.c" +#line 2843 "PhotoFileFormat.c" } -void photo_file_format_driver_unref (gpointer instance) { +void +photo_file_format_driver_unref (gpointer instance) +{ PhotoFileFormatDriver * self; self = instance; #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -2676,12 +2854,14 @@ void photo_file_format_driver_unref (gpointer instance) { PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->finalize (self); #line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_type_free_instance ((GTypeInstance *) self); -#line 2680 "PhotoFileFormat.c" +#line 2858 "PhotoFileFormat.c" } } -GType photo_file_format_flags_get_type (void) { +GType +photo_file_format_flags_get_type (void) +{ static volatile gsize photo_file_format_flags_type_id__volatile = 0; if (g_once_init_enter (&photo_file_format_flags_type_id__volatile)) { static const GEnumValue values[] = {{PHOTO_FILE_FORMAT_FLAGS_NONE, "PHOTO_FILE_FORMAT_FLAGS_NONE", "none"}, {0, NULL, NULL}}; @@ -2693,408 +2873,460 @@ GType photo_file_format_flags_get_type (void) { } -static PhotoFileFormat photo_file_format_properties_real_get_file_format (PhotoFileFormatProperties* self) { +static PhotoFileFormat +photo_file_format_properties_real_get_file_format (PhotoFileFormatProperties* self) +{ #line 374 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_file_format'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 374 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return 0; -#line 2702 "PhotoFileFormat.c" +#line 2884 "PhotoFileFormat.c" } -PhotoFileFormat photo_file_format_properties_get_file_format (PhotoFileFormatProperties* self) { +PhotoFileFormat +photo_file_format_properties_get_file_format (PhotoFileFormatProperties* self) +{ #line 374 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), 0); #line 374 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_file_format (self); -#line 2711 "PhotoFileFormat.c" +#line 2895 "PhotoFileFormat.c" } -static PhotoFileFormatFlags photo_file_format_properties_real_get_flags (PhotoFileFormatProperties* self) { +static PhotoFileFormatFlags +photo_file_format_properties_real_get_flags (PhotoFileFormatProperties* self) +{ #line 376 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_flags'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 376 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return 0; -#line 2720 "PhotoFileFormat.c" +#line 2906 "PhotoFileFormat.c" } -PhotoFileFormatFlags photo_file_format_properties_get_flags (PhotoFileFormatProperties* self) { +PhotoFileFormatFlags +photo_file_format_properties_get_flags (PhotoFileFormatProperties* self) +{ #line 376 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), 0); #line 376 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_flags (self); -#line 2729 "PhotoFileFormat.c" +#line 2917 "PhotoFileFormat.c" } -static gboolean photo_file_format_properties_real_is_recognized_extension (PhotoFileFormatProperties* self, const gchar* ext) { +static gboolean +photo_file_format_properties_real_is_recognized_extension (PhotoFileFormatProperties* self, + const gchar* ext) +{ gboolean result = FALSE; - const gchar* _tmp0_; - gint _tmp1_; + gint _tmp0_; + gchar** _tmp1_; gchar** _tmp2_; - gchar** _tmp3_; - gint _tmp3__length1; - gboolean _tmp4_; - gboolean _tmp5_; + gint _tmp2__length1; + gboolean _tmp3_; #line 380 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (ext != NULL, FALSE); #line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = ext; -#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_properties_get_known_extensions (self, &_tmp1_); + _tmp1_ = photo_file_format_properties_get_known_extensions (self, &_tmp0_); #line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = _tmp2_; -#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3__length1 = _tmp1_; + _tmp2_ = _tmp1_; #line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = is_in_ci_array (_tmp0_, _tmp3_, _tmp1_); + _tmp2__length1 = _tmp0_; #line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = _tmp4_; + _tmp3_ = is_in_ci_array (ext, _tmp2_, _tmp0_); #line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL); + _tmp2_ = (_vala_array_free (_tmp2_, _tmp2__length1, (GDestroyNotify) g_free), NULL); #line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp5_; + result = _tmp3_; #line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 2762 "PhotoFileFormat.c" +#line 2947 "PhotoFileFormat.c" } -gboolean photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self, const gchar* ext) { +gboolean +photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self, + const gchar* ext) +{ #line 380 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), FALSE); #line 380 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->is_recognized_extension (self, ext); -#line 2771 "PhotoFileFormat.c" +#line 2959 "PhotoFileFormat.c" } -static gchar* photo_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* self) { +static gchar* +photo_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* self) +{ #line 384 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_default_extension'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 384 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 2780 "PhotoFileFormat.c" +#line 2970 "PhotoFileFormat.c" } -gchar* photo_file_format_properties_get_default_extension (PhotoFileFormatProperties* self) { +gchar* +photo_file_format_properties_get_default_extension (PhotoFileFormatProperties* self) +{ #line 384 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL); #line 384 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_default_extension (self); -#line 2789 "PhotoFileFormat.c" +#line 2981 "PhotoFileFormat.c" } -static gchar** photo_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* self, int* result_length1) { +static gchar** +photo_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* self, + int* result_length1) +{ #line 386 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_known_extensions'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 386 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 2798 "PhotoFileFormat.c" +#line 2993 "PhotoFileFormat.c" } -gchar** photo_file_format_properties_get_known_extensions (PhotoFileFormatProperties* self, int* result_length1) { +gchar** +photo_file_format_properties_get_known_extensions (PhotoFileFormatProperties* self, + int* result_length1) +{ #line 386 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL); #line 386 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_known_extensions (self, result_length1); -#line 2807 "PhotoFileFormat.c" +#line 3005 "PhotoFileFormat.c" } -static gchar* photo_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* self) { +static gchar* +photo_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* self) +{ #line 388 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_default_mime_type'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 388 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 2816 "PhotoFileFormat.c" +#line 3016 "PhotoFileFormat.c" } -gchar* photo_file_format_properties_get_default_mime_type (PhotoFileFormatProperties* self) { +gchar* +photo_file_format_properties_get_default_mime_type (PhotoFileFormatProperties* self) +{ #line 388 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL); #line 388 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_default_mime_type (self); -#line 2825 "PhotoFileFormat.c" +#line 3027 "PhotoFileFormat.c" } -static gchar** photo_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* self, int* result_length1) { +static gchar** +photo_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* self, + int* result_length1) +{ #line 390 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_mime_types'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 390 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 2834 "PhotoFileFormat.c" +#line 3039 "PhotoFileFormat.c" } -gchar** photo_file_format_properties_get_mime_types (PhotoFileFormatProperties* self, int* result_length1) { +gchar** +photo_file_format_properties_get_mime_types (PhotoFileFormatProperties* self, + int* result_length1) +{ #line 390 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL); #line 390 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_mime_types (self, result_length1); -#line 2843 "PhotoFileFormat.c" +#line 3051 "PhotoFileFormat.c" } -static gchar* photo_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* self) { +static gchar* +photo_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* self) +{ #line 397 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_user_visible_name'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 397 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 2852 "PhotoFileFormat.c" +#line 3062 "PhotoFileFormat.c" } -gchar* photo_file_format_properties_get_user_visible_name (PhotoFileFormatProperties* self) { +gchar* +photo_file_format_properties_get_user_visible_name (PhotoFileFormatProperties* self) +{ #line 397 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL); #line 397 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_user_visible_name (self); -#line 2861 "PhotoFileFormat.c" +#line 3073 "PhotoFileFormat.c" } -static gpointer _g_object_ref0 (gpointer self) { +static gpointer +_g_object_ref0 (gpointer self) +{ #line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return self ? g_object_ref (self) : NULL; -#line 2868 "PhotoFileFormat.c" +#line 3082 "PhotoFileFormat.c" } -GFile* photo_file_format_properties_convert_file_extension (PhotoFileFormatProperties* self, GFile* file) { +GFile* +photo_file_format_properties_convert_file_extension (PhotoFileFormatProperties* self, + GFile* file) +{ GFile* result = NULL; gchar* name = NULL; gchar* ext = NULL; - GFile* _tmp0_; + gchar* _tmp0_; gchar* _tmp1_; - gchar* _tmp2_; + gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; - gchar* _tmp4_ = NULL; - gboolean _tmp5_ = FALSE; - const gchar* _tmp6_; - GFile* _tmp11_; - GFile* _tmp12_; - GFile* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - GFile* _tmp19_; - GFile* _tmp20_; + gboolean _tmp4_ = FALSE; + const gchar* _tmp5_; + GFile* _tmp8_; + GFile* _tmp9_; + const gchar* _tmp10_; + gchar* _tmp11_; + gchar* _tmp12_; + gchar* _tmp13_; + gchar* _tmp14_; + GFile* _tmp15_; + GFile* _tmp16_; #line 401 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL); #line 401 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (G_IS_FILE (file), NULL); #line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = file; -#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = g_file_get_basename (_tmp0_); + _tmp0_ = g_file_get_basename (file); #line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = _tmp1_; + _tmp1_ = _tmp0_; #line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - disassemble_filename (_tmp2_, &_tmp3_, &_tmp4_); + disassemble_filename (_tmp1_, &_tmp2_, &_tmp3_); #line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _g_free0 (name); #line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - name = _tmp3_; + name = _tmp2_; #line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _g_free0 (ext); #line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ext = _tmp4_; + ext = _tmp3_; #line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (_tmp2_); -#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6_ = ext; + _g_free0 (_tmp1_); #line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp6_ != NULL) { -#line 2919 "PhotoFileFormat.c" - const gchar* _tmp7_; - gboolean _tmp8_; + _tmp5_ = ext; #line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp7_ = ext; + if (_tmp5_ != NULL) { +#line 3132 "PhotoFileFormat.c" + const gchar* _tmp6_; #line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp8_ = photo_file_format_properties_is_recognized_extension (self, _tmp7_); + _tmp6_ = ext; #line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = _tmp8_; -#line 2928 "PhotoFileFormat.c" + _tmp4_ = photo_file_format_properties_is_recognized_extension (self, _tmp6_); +#line 3138 "PhotoFileFormat.c" } else { #line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = FALSE; -#line 2932 "PhotoFileFormat.c" + _tmp4_ = FALSE; +#line 3142 "PhotoFileFormat.c" } #line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp5_) { -#line 2936 "PhotoFileFormat.c" - GFile* _tmp9_; - GFile* _tmp10_; -#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp9_ = file; + if (_tmp4_) { +#line 3146 "PhotoFileFormat.c" + GFile* _tmp7_; #line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp10_ = _g_object_ref0 (_tmp9_); + _tmp7_ = _g_object_ref0 (file); #line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp10_; + result = _tmp7_; #line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _g_free0 (ext); #line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _g_free0 (name); #line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 2951 "PhotoFileFormat.c" +#line 3158 "PhotoFileFormat.c" } #line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp11_ = file; + _tmp8_ = g_file_get_parent (file); #line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp12_ = g_file_get_parent (_tmp11_); + _tmp9_ = _tmp8_; #line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp13_ = _tmp12_; + _tmp10_ = name; #line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp14_ = name; + _tmp11_ = photo_file_format_properties_get_default_extension (self); #line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp15_ = photo_file_format_properties_get_default_extension (self); + _tmp12_ = _tmp11_; #line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp16_ = _tmp15_; -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp17_ = g_strdup_printf ("%s.%s", _tmp14_, _tmp16_); + _tmp13_ = g_strdup_printf ("%s.%s", _tmp10_, _tmp12_); #line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp18_ = _tmp17_; + _tmp14_ = _tmp13_; #line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp19_ = g_file_get_child (_tmp13_, _tmp18_); + _tmp15_ = g_file_get_child (_tmp9_, _tmp14_); #line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp20_ = _tmp19_; + _tmp16_ = _tmp15_; #line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (_tmp18_); + _g_free0 (_tmp14_); #line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (_tmp16_); + _g_free0 (_tmp12_); #line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_object_unref0 (_tmp13_); + _g_object_unref0 (_tmp9_); #line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp20_; + result = _tmp16_; #line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _g_free0 (ext); #line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" _g_free0 (name); #line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return result; -#line 2987 "PhotoFileFormat.c" +#line 3192 "PhotoFileFormat.c" } -PhotoFileFormatProperties* photo_file_format_properties_construct (GType object_type) { +PhotoFileFormatProperties* +photo_file_format_properties_construct (GType object_type) +{ PhotoFileFormatProperties* self = NULL; #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" self = (PhotoFileFormatProperties*) g_type_create_instance (object_type); #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return self; -#line 2997 "PhotoFileFormat.c" +#line 3204 "PhotoFileFormat.c" } -static void value_photo_file_format_properties_init (GValue* value) { +static void +value_photo_file_format_properties_init (GValue* value) +{ #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" value->data[0].v_pointer = NULL; -#line 3004 "PhotoFileFormat.c" +#line 3213 "PhotoFileFormat.c" } -static void value_photo_file_format_properties_free_value (GValue* value) { +static void +value_photo_file_format_properties_free_value (GValue* value) +{ #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (value->data[0].v_pointer) { #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" photo_file_format_properties_unref (value->data[0].v_pointer); -#line 3013 "PhotoFileFormat.c" +#line 3224 "PhotoFileFormat.c" } } -static void value_photo_file_format_properties_copy_value (const GValue* src_value, GValue* dest_value) { +static void +value_photo_file_format_properties_copy_value (const GValue* src_value, + GValue* dest_value) +{ #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (src_value->data[0].v_pointer) { #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" dest_value->data[0].v_pointer = photo_file_format_properties_ref (src_value->data[0].v_pointer); -#line 3023 "PhotoFileFormat.c" +#line 3237 "PhotoFileFormat.c" } else { #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" dest_value->data[0].v_pointer = NULL; -#line 3027 "PhotoFileFormat.c" +#line 3241 "PhotoFileFormat.c" } } -static gpointer value_photo_file_format_properties_peek_pointer (const GValue* value) { +static gpointer +value_photo_file_format_properties_peek_pointer (const GValue* value) +{ #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return value->data[0].v_pointer; -#line 3035 "PhotoFileFormat.c" +#line 3251 "PhotoFileFormat.c" } -static gchar* value_photo_file_format_properties_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +static gchar* +value_photo_file_format_properties_collect_value (GValue* value, + guint n_collect_values, + GTypeCValue* collect_values, + guint collect_flags) +{ #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (collect_values[0].v_pointer) { -#line 3042 "PhotoFileFormat.c" +#line 3263 "PhotoFileFormat.c" PhotoFileFormatProperties * object; object = collect_values[0].v_pointer; #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (object->parent_instance.g_class == NULL) { #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3049 "PhotoFileFormat.c" +#line 3270 "PhotoFileFormat.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.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 3053 "PhotoFileFormat.c" +#line 3274 "PhotoFileFormat.c" } #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" value->data[0].v_pointer = photo_file_format_properties_ref (object); -#line 3057 "PhotoFileFormat.c" +#line 3278 "PhotoFileFormat.c" } else { #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" value->data[0].v_pointer = NULL; -#line 3061 "PhotoFileFormat.c" +#line 3282 "PhotoFileFormat.c" } #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 3065 "PhotoFileFormat.c" +#line 3286 "PhotoFileFormat.c" } -static gchar* value_photo_file_format_properties_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +static gchar* +value_photo_file_format_properties_lcopy_value (const GValue* value, + guint n_collect_values, + GTypeCValue* collect_values, + guint collect_flags) +{ PhotoFileFormatProperties ** object_p; object_p = collect_values[0].v_pointer; #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (!object_p) { #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 3076 "PhotoFileFormat.c" +#line 3302 "PhotoFileFormat.c" } #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (!value->data[0].v_pointer) { #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *object_p = NULL; -#line 3082 "PhotoFileFormat.c" +#line 3308 "PhotoFileFormat.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *object_p = value->data[0].v_pointer; -#line 3086 "PhotoFileFormat.c" +#line 3312 "PhotoFileFormat.c" } else { #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" *object_p = photo_file_format_properties_ref (value->data[0].v_pointer); -#line 3090 "PhotoFileFormat.c" +#line 3316 "PhotoFileFormat.c" } #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return NULL; -#line 3094 "PhotoFileFormat.c" +#line 3320 "PhotoFileFormat.c" } -GParamSpec* param_spec_photo_file_format_properties (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) { +GParamSpec* +param_spec_photo_file_format_properties (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags) +{ ParamSpecPhotoFileFormatProperties* spec; #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_FILE_FORMAT_PROPERTIES), NULL); @@ -3104,20 +3336,25 @@ GParamSpec* param_spec_photo_file_format_properties (const gchar* name, const gc G_PARAM_SPEC (spec)->value_type = object_type; #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return G_PARAM_SPEC (spec); -#line 3108 "PhotoFileFormat.c" +#line 3340 "PhotoFileFormat.c" } -gpointer value_get_photo_file_format_properties (const GValue* value) { +gpointer +value_get_photo_file_format_properties (const GValue* value) +{ #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_PROPERTIES), NULL); #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return value->data[0].v_pointer; -#line 3117 "PhotoFileFormat.c" +#line 3351 "PhotoFileFormat.c" } -void value_set_photo_file_format_properties (GValue* value, gpointer v_object) { +void +value_set_photo_file_format_properties (GValue* value, + gpointer v_object) +{ PhotoFileFormatProperties * old; #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_PROPERTIES)); @@ -3133,22 +3370,25 @@ void value_set_photo_file_format_properties (GValue* value, gpointer v_object) { value->data[0].v_pointer = v_object; #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" photo_file_format_properties_ref (value->data[0].v_pointer); -#line 3137 "PhotoFileFormat.c" +#line 3374 "PhotoFileFormat.c" } else { #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" value->data[0].v_pointer = NULL; -#line 3141 "PhotoFileFormat.c" +#line 3378 "PhotoFileFormat.c" } #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (old) { #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" photo_file_format_properties_unref (old); -#line 3147 "PhotoFileFormat.c" +#line 3384 "PhotoFileFormat.c" } } -void value_take_photo_file_format_properties (GValue* value, gpointer v_object) { +void +value_take_photo_file_format_properties (GValue* value, + gpointer v_object) +{ PhotoFileFormatProperties * old; #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_PROPERTIES)); @@ -3162,22 +3402,24 @@ void value_take_photo_file_format_properties (GValue* value, gpointer v_object) g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" value->data[0].v_pointer = v_object; -#line 3166 "PhotoFileFormat.c" +#line 3406 "PhotoFileFormat.c" } else { #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" value->data[0].v_pointer = NULL; -#line 3170 "PhotoFileFormat.c" +#line 3410 "PhotoFileFormat.c" } #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" if (old) { #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" photo_file_format_properties_unref (old); -#line 3176 "PhotoFileFormat.c" +#line 3416 "PhotoFileFormat.c" } } -static void photo_file_format_properties_class_init (PhotoFileFormatPropertiesClass * klass) { +static void +photo_file_format_properties_class_init (PhotoFileFormatPropertiesClass * klass) +{ #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" photo_file_format_properties_parent_class = g_type_class_peek_parent (klass); #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -3198,28 +3440,34 @@ static void photo_file_format_properties_class_init (PhotoFileFormatPropertiesCl ((PhotoFileFormatPropertiesClass *) klass)->get_mime_types = (gchar** (*) (PhotoFileFormatProperties *, int*)) photo_file_format_properties_real_get_mime_types; #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" ((PhotoFileFormatPropertiesClass *) klass)->get_user_visible_name = (gchar* (*) (PhotoFileFormatProperties *)) photo_file_format_properties_real_get_user_visible_name; -#line 3202 "PhotoFileFormat.c" +#line 3444 "PhotoFileFormat.c" } -static void photo_file_format_properties_instance_init (PhotoFileFormatProperties * self) { +static void +photo_file_format_properties_instance_init (PhotoFileFormatProperties * self) +{ #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" self->ref_count = 1; -#line 3209 "PhotoFileFormat.c" +#line 3453 "PhotoFileFormat.c" } -static void photo_file_format_properties_finalize (PhotoFileFormatProperties * obj) { +static void +photo_file_format_properties_finalize (PhotoFileFormatProperties * obj) +{ PhotoFileFormatProperties * self; #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties); #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_signal_handlers_destroy (self); -#line 3219 "PhotoFileFormat.c" +#line 3465 "PhotoFileFormat.c" } -GType photo_file_format_properties_get_type (void) { +GType +photo_file_format_properties_get_type (void) +{ static volatile gsize photo_file_format_properties_type_id__volatile = 0; if (g_once_init_enter (&photo_file_format_properties_type_id__volatile)) { static const GTypeValueTable g_define_type_value_table = { value_photo_file_format_properties_init, value_photo_file_format_properties_free_value, value_photo_file_format_properties_copy_value, value_photo_file_format_properties_peek_pointer, "p", value_photo_file_format_properties_collect_value, "p", value_photo_file_format_properties_lcopy_value }; @@ -3233,18 +3481,22 @@ GType photo_file_format_properties_get_type (void) { } -gpointer photo_file_format_properties_ref (gpointer instance) { +gpointer +photo_file_format_properties_ref (gpointer instance) +{ PhotoFileFormatProperties * self; self = instance; #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_atomic_int_inc (&self->ref_count); #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" return instance; -#line 3244 "PhotoFileFormat.c" +#line 3494 "PhotoFileFormat.c" } -void photo_file_format_properties_unref (gpointer instance) { +void +photo_file_format_properties_unref (gpointer instance) +{ PhotoFileFormatProperties * self; self = instance; #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" @@ -3253,12 +3505,16 @@ void photo_file_format_properties_unref (gpointer instance) { PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->finalize (self); #line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" g_type_free_instance ((GTypeInstance *) self); -#line 3257 "PhotoFileFormat.c" +#line 3509 "PhotoFileFormat.c" } } -static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) { +static void +_vala_array_destroy (gpointer array, + gint array_length, + GDestroyNotify destroy_func) +{ if ((array != NULL) && (destroy_func != NULL)) { int i; for (i = 0; i < array_length; i = i + 1) { @@ -3270,7 +3526,11 @@ static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNoti } -static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) { +static void +_vala_array_free (gpointer array, + gint array_length, + GDestroyNotify destroy_func) +{ _vala_array_destroy (array, array_length, destroy_func); g_free (array); } |