/usr/include/colord-1/colord/cd-icc-store.h is in libcolord-dev 1.2.12-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
* Copyright (C) 2009-2013 Richard Hughes <richard@hughsie.com>
*
* Licensed under the GNU Lesser General Public License Version 2.1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined (__COLORD_H_INSIDE__) && !defined (CD_COMPILATION)
#error "Only <colord.h> can be included directly."
#endif
#ifndef __CD_ICC_STORE_H
#define __CD_ICC_STORE_H
#include <glib-object.h>
#include "cd-icc.h"
G_BEGIN_DECLS
#define CD_TYPE_ICC_STORE (cd_icc_store_get_type ())
#define CD_ICC_STORE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CD_TYPE_ICC_STORE, CdIccStore))
#define CD_ICC_STORE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), CD_TYPE_ICC_STORE, CdIccStoreClass))
#define CD_IS_ICC_STORE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CD_TYPE_ICC_STORE))
#define CD_IS_ICC_STORE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CD_TYPE_ICC_STORE))
#define CD_ICC_STORE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CD_TYPE_ICC_STORE, CdIccStoreClass))
typedef struct _CdIccStorePrivate CdIccStorePrivate;
typedef struct _CdIccStore CdIccStore;
typedef struct _CdIccStoreClass CdIccStoreClass;
struct _CdIccStore
{
GObject parent;
CdIccStorePrivate *priv;
};
struct _CdIccStoreClass
{
GObjectClass parent_class;
void (* added) (CdIcc *icc);
void (* removed) (CdIcc *icc);
};
/**
* CdIccStoreSearchFlags:
* @CD_ICC_STORE_SEARCH_FLAGS_NONE: No flags set.
* @CD_ICC_STORE_SEARCH_FLAGS_CREATE_LOCATION: Create the location if it does not exist
*
* Flags used when adding scan locations.
*
* Since: 1.1.1
**/
typedef enum {
CD_ICC_STORE_SEARCH_FLAGS_NONE = 0, /* Since: 1.0.2 */
CD_ICC_STORE_SEARCH_FLAGS_CREATE_LOCATION = 1, /* Since: 1.0.2 */
/*< private >*/
CD_ICC_STORE_SEARCH_FLAGS_LAST
} CdIccStoreSearchFlags;
/**
* CdIccStoreSearchKind:
* @CD_ICC_STORE_SEARCH_KIND_SYSTEM: Per-system locations
* @CD_ICC_STORE_SEARCH_KIND_MACHINE: Per-machine locations
* @CD_ICC_STORE_SEARCH_KIND_USER: Per-user locations
*
* The kind of profiles locations to search.
*
* Since: 1.1.1
**/
typedef enum {
CD_ICC_STORE_SEARCH_KIND_SYSTEM, /* Since: 1.0.2 */
CD_ICC_STORE_SEARCH_KIND_MACHINE, /* Since: 1.0.2 */
CD_ICC_STORE_SEARCH_KIND_USER, /* Since: 1.0.2 */
/*< private >*/
CD_ICC_STORE_SEARCH_KIND_LAST
} CdIccStoreSearchKind;
GType cd_icc_store_get_type (void);
CdIccStore *cd_icc_store_new (void);
gboolean cd_icc_store_search_location (CdIccStore *store,
const gchar *location,
CdIccStoreSearchFlags search_flags,
GCancellable *cancellable,
GError **error);
gboolean cd_icc_store_search_kind (CdIccStore *store,
CdIccStoreSearchKind search_kind,
CdIccStoreSearchFlags search_flags,
GCancellable *cancellable,
GError **error);
void cd_icc_store_set_load_flags (CdIccStore *store,
CdIccLoadFlags load_flags);
CdIccLoadFlags cd_icc_store_get_load_flags (CdIccStore *store);
void cd_icc_store_set_cache (CdIccStore *store,
GResource *cache);
GPtrArray *cd_icc_store_get_all (CdIccStore *store);
CdIcc *cd_icc_store_find_by_filename (CdIccStore *store,
const gchar *filename);
CdIcc *cd_icc_store_find_by_checksum (CdIccStore *store,
const gchar *checksum);
G_END_DECLS
#endif /* __CD_ICC_STORE_H */
|