From 22064055be72d35cf2498ea8b3a0307152e38027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sat, 4 Dec 2021 00:36:14 +0100 Subject: [PATCH] color-profile: Add API to get file path Each color profile has a corresponding ICC profile saved on the file system. The getter returns a file path for that ICC profile file. Part-of: --- src/backends/meta-color-profile.c | 6 ++++++ src/backends/meta-color-profile.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/backends/meta-color-profile.c b/src/backends/meta-color-profile.c index 43259a89c..f759f2687 100644 --- a/src/backends/meta-color-profile.c +++ b/src/backends/meta-color-profile.c @@ -368,6 +368,12 @@ meta_color_profile_get_id (MetaColorProfile *color_profile) return color_profile->cd_profile_id; } +const char * +meta_color_profile_get_file_path (MetaColorProfile *color_profile) +{ + return cd_profile_get_filename (color_profile->cd_profile); +} + const char * meta_color_profile_get_brightness_profile (MetaColorProfile *color_profile) { diff --git a/src/backends/meta-color-profile.h b/src/backends/meta-color-profile.h index a38b979f8..72c894aab 100644 --- a/src/backends/meta-color-profile.h +++ b/src/backends/meta-color-profile.h @@ -56,6 +56,8 @@ gboolean meta_color_profile_is_ready (MetaColorProfile *color_profile); META_EXPORT_TEST const char * meta_color_profile_get_id (MetaColorProfile *color_profile); +const char * meta_color_profile_get_file_path (MetaColorProfile *color_profile); + const char * meta_color_profile_get_brightness_profile (MetaColorProfile *color_profile); #endif /* META_COLOR_PROFILE_H */