static gboolean gth_metadata_provider_file_can_read (GthMetadataProvider *self, const char *mime_type, char **attribute_v) { return _g_file_attributes_matches_any_v ("gth::file::display-size," "gth::file::display-mtime," "gth::file::content-type," "gth::file::is-modified," "gth::file::full-name", attribute_v); }
static gboolean gth_metadata_provider_image_can_read (GthMetadataProvider *self, const char *mime_type, char **attribute_v) { return _g_file_attributes_matches_any_v ("general::format," "general::dimensions," "image::width," "image::height," "frame::width," "frame::height", attribute_v); }
static gboolean gth_metadata_provider_comment_can_write (GthMetadataProvider *self, const char *mime_type, char **attribute_v) { return _g_file_attributes_matches_any_v ("comment::*," "general::datetime," "general::title," "general::description," "general::location," "general::tags," "general::rating", attribute_v); }
static gboolean gth_metadata_provider_gstreamer_can_read (GthMetadataProvider *self, const char *mime_type, char **attribute_v) { if (! g_str_equal (mime_type, "*") && ! _g_content_type_is_a (mime_type, "audio/*") && ! _g_content_type_is_a (mime_type, "video/*")) { return FALSE; } return _g_file_attributes_matches_any_v ("general::title," "general::format," "general::dimensions," "frame::width," "frame::height," "audio-video::*", attribute_v); }