diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-05-31 07:32:09 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-05-31 07:32:09 +0200 |
commit | bdeb7f77f16b1e482904866ff21e43f8bfc01bb0 (patch) | |
tree | e5587a577db53a58ea52fd2579fa0cbb89007491 /src/fake-quartz-cg.h | |
parent | split out error identification for failure of open from libgamma_linux_drm_partition_initialise (diff) | |
download | libgamma-bdeb7f77f16b1e482904866ff21e43f8bfc01bb0.tar.gz libgamma-bdeb7f77f16b1e482904866ff21e43f8bfc01bb0.tar.bz2 libgamma-bdeb7f77f16b1e482904866ff21e43f8bfc01bb0.tar.xz |
move files around
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/fake-quartz-cg.h')
-rw-r--r-- | src/fake-quartz-cg.h | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/src/fake-quartz-cg.h b/src/fake-quartz-cg.h deleted file mode 100644 index 8f995ea..0000000 --- a/src/fake-quartz-cg.h +++ /dev/null @@ -1,72 +0,0 @@ -/** - * libgamma — Display server abstraction layer for gamma ramp adjustments - * Copyright © 2014 Mattias Andrée (maandree@member.fsf.org) - * - * This library 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 3 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this library. If not, see <http://www.gnu.org/licenses/>. - */ -#ifndef LIBGAMMA_FAKE_QUARTZ_CG_H -#define LIBGAMMA_FAKE_QUARTZ_CG_H - -#ifndef FAKE_LIBGAMMA_METHOD_QUARTZ_CORE_GRAPHICS -# error Including fake-quartz-cg.h without FAKE_LIBGAMMA_METHOD_QUARTZ_CORE_GRAPHICS -#endif - - -/* This header file contains some capabilities of - * <CoreGraphics/CGDirectDisplay.h> and <CoreGraphics/CGError.h>, - * and can be used modify gamma ramps without Mac OS X and Quartz - * but with its API. - * - * The content of this file is based on the documentation found on: - * - * https://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/Reference/reference.html - * - * https://developer.apple.com/library/mac/documentation/CoreGraphics/Reference/CoreGraphicsConstantsRef/Reference/reference.html#//apple_ref/c/tdef/CGError */ - - -#include <stdint.h> - - -typedef int32_t CGError; -#define kCGErrorSuccess 0 - -typedef float CGGammaValue; -typedef uint32_t CGDirectDisplayID; - - -CGError CGGetOnlineDisplayList(uint32_t max_size, - CGDirectDisplayID* restrict displays_out, uint32_t* restrict count_out); - -CGError CGSetDisplayTransferByTable(CGDirectDisplayID display, uint32_t gamma_size, const CGGammaValue* red, - const CGGammaValue* green, const CGGammaValue* blue); - -CGError CGGetDisplayTransferByTable(CGDirectDisplayID display, uint32_t gamma_size, - CGGammaValue* restrict red, CGGammaValue* restrict green, - CGGammaValue* restrict blue, uint32_t* restrict gamma_size_out); - -void CGDisplayRestoreColorSyncSettings(void); - -uint32_t CGDisplayGammaTableCapacity(CGDirectDisplayID display) __attribute__((const)); - - -/* The follow part most only be used when this module is used, - * it cannot be used when the real CoreGraphics is used. - * CoreGraphics does not have this function, it is added so - * that there is a way to cleanly close the X connection - * and free resources needed by this module. */ -void close_fake_quartz_cg(void); - - -#endif - |