Peter Åstrand (astrand) | 1173637 | 2018-03-07 09:29:00 +0100 | [diff] [blame] | 1 | /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. |
| 2 | * Copyright 2011-2015 Pierre Ossman for Cendio AB |
| 3 | * |
| 4 | * This is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; either version 2 of the License, or |
| 7 | * (at your option) any later version. |
| 8 | * |
| 9 | * This software is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this software; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
| 17 | * USA. |
| 18 | */ |
| 19 | |
| 20 | /* |
| 21 | This header defines an interface for X RandR operations. It is |
| 22 | implemented by a corresponding RandrGlue.c, either with internal |
| 23 | calls (for Xvnc/vncmodule.so) or Xlib calls (x0vncserver). |
| 24 | */ |
| 25 | |
| 26 | #ifndef RANDR_GLUE_H |
| 27 | #define RANDR_GLUE_H |
| 28 | |
| 29 | #ifdef __cplusplus |
| 30 | extern "C" { |
| 31 | #endif |
| 32 | |
Peter Åstrand (astrand) | ffeda07 | 2018-04-02 22:15:47 +0200 | [diff] [blame^] | 33 | int vncGetScreenWidth(void); |
| 34 | int vncGetScreenHeight(void); |
Peter Åstrand (astrand) | 1173637 | 2018-03-07 09:29:00 +0100 | [diff] [blame] | 35 | |
Peter Åstrand (astrand) | ffeda07 | 2018-04-02 22:15:47 +0200 | [diff] [blame^] | 36 | int vncRandRResizeScreen(int width, int height); |
| 37 | void vncRandRUpdateSetTime(void); |
Peter Åstrand (astrand) | 1173637 | 2018-03-07 09:29:00 +0100 | [diff] [blame] | 38 | |
Peter Åstrand (astrand) | ffeda07 | 2018-04-02 22:15:47 +0200 | [diff] [blame^] | 39 | int vncRandRHasOutputClones(void); |
Peter Åstrand (astrand) | 1173637 | 2018-03-07 09:29:00 +0100 | [diff] [blame] | 40 | |
Peter Åstrand (astrand) | ffeda07 | 2018-04-02 22:15:47 +0200 | [diff] [blame^] | 41 | int vncRandRGetOutputCount(void); |
| 42 | int vncRandRGetAvailableOutputs(void); |
Peter Åstrand (astrand) | 1173637 | 2018-03-07 09:29:00 +0100 | [diff] [blame] | 43 | |
Peter Åstrand (astrand) | ffeda07 | 2018-04-02 22:15:47 +0200 | [diff] [blame^] | 44 | char *vncRandRGetOutputName(int outputIdx); |
Peter Åstrand (astrand) | 1173637 | 2018-03-07 09:29:00 +0100 | [diff] [blame] | 45 | |
Peter Åstrand (astrand) | ffeda07 | 2018-04-02 22:15:47 +0200 | [diff] [blame^] | 46 | int vncRandRIsOutputEnabled(int outputIdx); |
| 47 | int vncRandRIsOutputUsable(int outputIdx); |
Peter Åstrand (astrand) | 1173637 | 2018-03-07 09:29:00 +0100 | [diff] [blame] | 48 | |
Peter Åstrand (astrand) | ffeda07 | 2018-04-02 22:15:47 +0200 | [diff] [blame^] | 49 | int vncRandRDisableOutput(int outputIdx); |
| 50 | int vncRandRReconfigureOutput(int outputIdx, int x, int y, |
Peter Åstrand (astrand) | 1173637 | 2018-03-07 09:29:00 +0100 | [diff] [blame] | 51 | int width, int height); |
| 52 | |
Peter Åstrand (astrand) | ffeda07 | 2018-04-02 22:15:47 +0200 | [diff] [blame^] | 53 | unsigned int vncRandRGetOutputId(int outputIdx); |
| 54 | void vncRandRGetOutputDimensions(int outputIdx, |
Peter Åstrand (astrand) | 1173637 | 2018-03-07 09:29:00 +0100 | [diff] [blame] | 55 | int *x, int *y, int *width, int *height); |
| 56 | |
Peter Åstrand (astrand) | ffeda07 | 2018-04-02 22:15:47 +0200 | [diff] [blame^] | 57 | int vncRandRCreateOutputs(int extraOutputs); |
Peter Åstrand (astrand) | 1173637 | 2018-03-07 09:29:00 +0100 | [diff] [blame] | 58 | void *vncRandRCreatePreferredMode(void *output, int width, int height); |
| 59 | |
| 60 | #ifdef __cplusplus |
| 61 | } |
| 62 | #endif |
| 63 | |
| 64 | #endif |