2021-11-29 14:44:56 -05:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2021 Red Hat Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2023-07-21 09:37:20 -04:00
|
|
|
#pragma once
|
2021-11-29 14:44:56 -05:00
|
|
|
|
2021-12-01 12:57:52 -05:00
|
|
|
#include <colord.h>
|
2021-11-29 14:44:56 -05:00
|
|
|
#include <gio/gio.h>
|
|
|
|
#include <glib-object.h>
|
|
|
|
|
|
|
|
#include "backends/meta-backend-types.h"
|
2022-09-13 12:28:41 -04:00
|
|
|
#include "core/util-private.h"
|
2021-11-29 14:44:56 -05:00
|
|
|
|
|
|
|
#define META_TYPE_COLOR_STORE (meta_color_store_get_type ())
|
|
|
|
G_DECLARE_FINAL_TYPE (MetaColorStore, meta_color_store,
|
|
|
|
META, COLOR_STORE,
|
|
|
|
GObject)
|
|
|
|
|
|
|
|
MetaColorStore * meta_color_store_new (MetaColorManager *color_manager);
|
|
|
|
|
|
|
|
gboolean meta_color_store_ensure_device_profile (MetaColorStore *color_store,
|
|
|
|
MetaColorDevice *color_device,
|
|
|
|
GCancellable *cancellable,
|
|
|
|
GAsyncReadyCallback callback,
|
|
|
|
gpointer user_data);
|
|
|
|
|
|
|
|
MetaColorProfile * meta_color_store_ensure_device_profile_finish (MetaColorStore *color_store,
|
|
|
|
GAsyncResult *res,
|
|
|
|
GError **error);
|
|
|
|
|
2021-12-01 12:57:52 -05:00
|
|
|
void meta_color_store_ensure_colord_profile (MetaColorStore *color_store,
|
|
|
|
CdProfile *cd_profile,
|
|
|
|
GCancellable *cancellable,
|
|
|
|
GAsyncReadyCallback callback,
|
|
|
|
gpointer user_data);
|
|
|
|
|
|
|
|
MetaColorProfile * meta_color_store_ensure_colord_profile_finish (MetaColorStore *color_store,
|
|
|
|
GAsyncResult *res,
|
|
|
|
GError **error);
|
|
|
|
|
2022-09-13 12:28:41 -04:00
|
|
|
META_EXPORT_TEST
|
|
|
|
MetaColorProfile * meta_color_store_get_profile (MetaColorStore *color_store,
|
|
|
|
const char *profile_id);
|
|
|
|
|
|
|
|
META_EXPORT_TEST
|
|
|
|
gboolean meta_color_store_has_pending_profiles (MetaColorStore *color_store);
|