/usr/include/colord-1/colord/cd-device.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 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
* Copyright (C) 2012 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_DEVICE_H
#define __CD_DEVICE_H
#include <glib-object.h>
#include <gio/gio.h>
#include "cd-enum.h"
#include "cd-profile.h"
G_BEGIN_DECLS
#define CD_TYPE_DEVICE (cd_device_get_type ())
#define CD_DEVICE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CD_TYPE_DEVICE, CdDevice))
#define CD_DEVICE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), CD_TYPE_DEVICE, CdDeviceClass))
#define CD_IS_DEVICE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CD_TYPE_DEVICE))
#define CD_IS_DEVICE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CD_TYPE_DEVICE))
#define CD_DEVICE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CD_TYPE_DEVICE, CdDeviceClass))
#define CD_DEVICE_ERROR (cd_device_error_quark ())
#define CD_DEVICE_TYPE_ERROR (cd_device_error_get_type ())
typedef struct _CdDevicePrivate CdDevicePrivate;
typedef struct
{
GObject parent;
CdDevicePrivate *priv;
} CdDevice;
typedef struct
{
GObjectClass parent_class;
void (*changed) (CdDevice *device);
/*< private >*/
/* Padding for future expansion */
void (*_cd_device_reserved1) (void);
void (*_cd_device_reserved2) (void);
void (*_cd_device_reserved3) (void);
void (*_cd_device_reserved4) (void);
void (*_cd_device_reserved5) (void);
void (*_cd_device_reserved6) (void);
void (*_cd_device_reserved7) (void);
void (*_cd_device_reserved8) (void);
} CdDeviceClass;
GType cd_device_get_type (void);
GQuark cd_device_error_quark (void);
CdDevice *cd_device_new (void);
CdDevice *cd_device_new_with_object_path (const gchar *object_path);
/* async */
void cd_device_connect (CdDevice *device,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean cd_device_connect_finish (CdDevice *device,
GAsyncResult *res,
GError **error)
G_GNUC_WARN_UNUSED_RESULT;
void cd_device_set_property (CdDevice *device,
const gchar *key,
const gchar *value,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean cd_device_set_property_finish (CdDevice *device,
GAsyncResult *res,
GError **error)
G_GNUC_WARN_UNUSED_RESULT;
void cd_device_add_profile (CdDevice *device,
CdDeviceRelation relation,
CdProfile *profile,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean cd_device_add_profile_finish (CdDevice *device,
GAsyncResult *res,
GError **error)
G_GNUC_WARN_UNUSED_RESULT;
void cd_device_remove_profile (CdDevice *device,
CdProfile *profile,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean cd_device_remove_profile_finish (CdDevice *device,
GAsyncResult *res,
GError **error)
G_GNUC_WARN_UNUSED_RESULT;
void cd_device_make_profile_default (CdDevice *device,
CdProfile *profile,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean cd_device_make_profile_default_finish (CdDevice *device,
GAsyncResult *res,
GError **error)
G_GNUC_WARN_UNUSED_RESULT;
void cd_device_profiling_inhibit (CdDevice *device,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean cd_device_profiling_inhibit_finish (CdDevice *device,
GAsyncResult *res,
GError **error)
G_GNUC_WARN_UNUSED_RESULT;
void cd_device_set_enabled (CdDevice *device,
gboolean enabled,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean cd_device_set_enabled_finish (CdDevice *device,
GAsyncResult *res,
GError **error)
G_GNUC_WARN_UNUSED_RESULT;
void cd_device_profiling_uninhibit (CdDevice *device,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean cd_device_profiling_uninhibit_finish (CdDevice *device,
GAsyncResult *res,
GError **error);
void cd_device_get_profile_for_qualifiers (CdDevice *device,
const gchar **qualifiers,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
CdProfile *cd_device_get_profile_for_qualifiers_finish (CdDevice *device,
GAsyncResult *res,
GError **error)
G_GNUC_WARN_UNUSED_RESULT;
void cd_device_get_profile_relation (CdDevice *device,
CdProfile *profile,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
CdDeviceRelation cd_device_get_profile_relation_finish (CdDevice *device,
GAsyncResult *res,
GError **error)
G_GNUC_WARN_UNUSED_RESULT;
/* getters */
const gchar *cd_device_get_id (CdDevice *device);
const gchar *cd_device_get_model (CdDevice *device);
const gchar *cd_device_get_vendor (CdDevice *device);
const gchar *cd_device_get_serial (CdDevice *device);
const gchar *cd_device_get_seat (CdDevice *device);
const gchar *cd_device_get_format (CdDevice *device);
const gchar **cd_device_get_profiling_inhibitors (CdDevice *device);
guint64 cd_device_get_created (CdDevice *device);
guint64 cd_device_get_modified (CdDevice *device);
CdDeviceKind cd_device_get_kind (CdDevice *device);
CdColorspace cd_device_get_colorspace (CdDevice *device);
CdDeviceMode cd_device_get_mode (CdDevice *device);
gboolean cd_device_get_enabled (CdDevice *device);
gboolean cd_device_get_embedded (CdDevice *device);
CdObjectScope cd_device_get_scope (CdDevice *device);
guint cd_device_get_owner (CdDevice *device);
GPtrArray *cd_device_get_profiles (CdDevice *device);
CdProfile *cd_device_get_default_profile (CdDevice *device);
const gchar *cd_device_get_object_path (CdDevice *device);
GHashTable *cd_device_get_metadata (CdDevice *device);
const gchar *cd_device_get_metadata_item (CdDevice *device,
const gchar *key);
/* helpers */
void cd_device_set_object_path (CdDevice *device,
const gchar *object_path);
gboolean cd_device_get_connected (CdDevice *device);
gchar *cd_device_to_string (CdDevice *device);
gboolean cd_device_equal (CdDevice *device1,
CdDevice *device2);
G_END_DECLS
#endif /* __CD_DEVICE_H */
|