Commit 73a4e6d7 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

backends: move output code to its own file

Based on mutter commit:
mutter@e32d52b9
parent ec25e0d7
......@@ -74,6 +74,8 @@ libbackends_la_SOURCES = \
gf-orientation-manager-private.h \
gf-orientation-manager.c \
gf-output-private.h \
gf-output-xrandr-private.h \
gf-output-xrandr.c \
gf-output.c \
gf-rectangle-private.h \
gf-rectangle.c \
......
......@@ -3,7 +3,7 @@
* Copyright (C) 2003 Rob Adams
* Copyright (C) 2004-2006 Elijah Newren
* Copyright (C) 2013 Red Hat Inc.
* Copyright (C) 2017 Alberts Muktupāvels
* Copyright (C) 2017-2019 Alberts Muktupāvels
*
* 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
......@@ -38,6 +38,8 @@ G_DECLARE_FINAL_TYPE (GfMonitorManagerXrandr, gf_monitor_manager_xrandr,
Display *gf_monitor_manager_xrandr_get_xdisplay (GfMonitorManagerXrandr *xrandr);
gboolean gf_monitor_manager_xrandr_has_randr15 (GfMonitorManagerXrandr *xrandr);
XRRScreenResources *gf_monitor_manager_xrandr_get_resources (GfMonitorManagerXrandr *xrandr);
gboolean gf_monitor_manager_xrandr_handle_xevent (GfMonitorManagerXrandr *xrandr,
......
This diff is collapsed.
/*
* Copyright (C) 2017 Red Hat
* Copyright (C) 2019 Alberts Muktupāvels
*
* 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 3 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/>.
*/
#ifndef GF_OUTPUT_XRANDR_PRIVATE_H
#define GF_OUTPUT_XRANDR_PRIVATE_H
#include <X11/extensions/Xrandr.h>
#include "gf-monitor-manager-xrandr-private.h"
#include "gf-output-private.h"
G_BEGIN_DECLS
GfOutput *gf_create_xrandr_output (GfMonitorManager *monitor_manager,
XRROutputInfo *xrandr_output,
RROutput output_id,
RROutput primary_output);
GBytes *gf_output_xrandr_read_edid (GfOutput *output);
void gf_output_xrandr_apply_mode (GfOutput *output);
void gf_output_xrandr_change_backlight (GfOutput *output,
int value);
G_END_DECLS
#endif
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment