Debian Codegraph @

lib/compat/cd-compat-edid.h

raw
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
2 *
3 * Copyright (C) 2013 Richard Hughes <[email protected]>
4 *
5 * Licensed under the GNU Lesser General Public License Version 2.1
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22 #ifndef __CD_COMPAT_EDID_H
23 #define __CD_COMPAT_EDID_H
24
25 #include <glib.h>
26
27 G_BEGIN_DECLS
28
29 /**
30 * CdEdidError:
31 *
32 * The error code.
33 * NOTE: this enum has to be kept in sync with ucmm_error which is found
34 * in ucmm/ucmm.h in the ArgyllCMS project.
35 *
36 * Since: 0.1.34
37 **/
38 typedef enum {
39 CD_EDID_ERROR_OK = 0,
40 CD_EDID_ERROR_RESOURCE,
41 CD_EDID_ERROR_INVALID_PROFILE,
42 CD_EDID_ERROR_NO_PROFILE,
43 CD_EDID_ERROR_UNUSED1,
44 CD_EDID_ERROR_NO_DATA,
45 CD_EDID_ERROR_PROFILE_COPY,
46 CD_EDID_ERROR_UNUSED2,
47 CD_EDID_ERROR_ACCESS_CONFIG,
48 CD_EDID_ERROR_SET_CONFIG,
49 CD_EDID_ERROR_UNUSED3,
50 CD_EDID_ERROR_MONITOR_NOT_FOUND,
51 CD_EDID_ERROR_UNUSED4,
52 CD_EDID_ERROR_UNUSED5,
53 } CdEdidError;
54
55 /**
56 * CdEdidScope:
57 *
58 * The scope of the profile.
59 * NOTE: this enum has to be kept in sync with ucmm_scope which is found
60 * in ucmm/ucmm.h in the ArgyllCMS project.
61 *
62 * Since: 0.1.34
63 **/
64 typedef enum {
65 CD_EDID_SCOPE_USER,
66 CD_EDID_SCOPE_SYSTEM,
67 CD_EDID_SCOPE_LAST
68 } CdEdidScope;
69
70 CdEdidError cd_edid_install_profile (unsigned char *edid,
71 int edid_len,
72 CdEdidScope scope,
73 char *profile_fn);
74 CdEdidError cd_edid_remove_profile (unsigned char *edid,
75 int edid_len,
76 char *profile_fn);
77 CdEdidError cd_edid_get_profile (unsigned char *edid,
78 int edid_len,
79 char **profile_fn);
80
81 G_END_DECLS
82
83 #endif /* __CD_COMPAT_EDID_H */