~n-muench/ubuntu/oneiric/open-vm-tools/open-vm-tools.fix-836277

« back to all changes in this revision

Viewing changes to lib/resolution/resolutionInt.h

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2008-08-15 21:21:40 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080815212140-05fhxj8wroosysmj
Tags: 2008.08.08-109361-1ubuntu1
* Merge from Debian unstable (LP: #258393), remaining Ubuntu change:
  - add ubuntu_toolchain_FTBFS.dpatch patch, fix FTBFS
* Update ubuntu_toolchain_FTBFS.dpatch patch for the new version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*********************************************************
 
2
 * Copyright (C) 2008 VMware, Inc. All rights reserved.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify it
 
5
 * under the terms of the GNU Lesser General Public License as published
 
6
 * by the Free Software Foundation version 2.1 and no later version.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful, but
 
9
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 
10
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the Lesser GNU General Public
 
11
 * License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public License
 
14
 * along with this program; if not, write to the Free Software Foundation, Inc.,
 
15
 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA.
 
16
 *
 
17
 *********************************************************/
 
18
 
 
19
/*
 
20
 * resolutionInt.h --
 
21
 *
 
22
 *    Internal header file for lib/resolution.
 
23
 */
 
24
 
 
25
#ifndef _LIB_RESOLUTIONINT_H_
 
26
#define _LIB_RESOLUTIONINT_H_
 
27
 
 
28
#define INCLUDE_ALLOW_USERLEVEL
 
29
#define INCLUDE_ALLOW_DISTRIBUTE
 
30
#include "includeCheck.h"
 
31
 
 
32
#include "resolution.h"
 
33
#include "vm_app.h"
 
34
 
 
35
 
 
36
/*
 
37
 * Data types
 
38
 */
 
39
 
 
40
 
 
41
/*
 
42
 * Describes internal state of the resolution library.  I.e., tracks whether
 
43
 * a capability is supported, enabled, etc.
 
44
 */
 
45
typedef struct {
 
46
   Bool initialized;                    // TRUE if successfully initialized.
 
47
   Bool canSetResolution;               // TRUE if back-end supports Resolution_Set.
 
48
   Bool canSetTopology;                 // TRUE if back-end supports DisplayTopology_Set.
 
49
   Bool cbResolutionRegistered;         // TRUE if Resolution_Set CB registered.
 
50
   Bool cbTopologyRegistered;           // TRUE if DisplayTopology_Set CB registered.
 
51
   RpcIn *rpcIn;                        // Points to RpcIn channel.
 
52
 
 
53
   char tcloChannel[MAX(sizeof TOOLS_DAEMON_NAME,
 
54
                        sizeof TOOLS_DND_NAME)];
 
55
                                        // Names the TCLO channel which the library will
 
56
                                        //    use for registering capabilities.
 
57
} ResolutionInfoType;
 
58
 
 
59
 
 
60
/*
 
61
 * Describes the size and offset of a display.  An array of these
 
62
 * structures describes the entire topology of the guest desktop
 
63
 *
 
64
 * NB: Cribbed from Win32 resolution code.  Refactor this.
 
65
 */
 
66
typedef struct {
 
67
   int x;
 
68
   int y;
 
69
   int width;
 
70
   int height;
 
71
} DisplayTopologyInfo;
 
72
 
 
73
 
 
74
/*
 
75
 * Global variables
 
76
 */
 
77
 
 
78
extern ResolutionInfoType resolutionInfo;
 
79
 
 
80
 
 
81
/*
 
82
 * Global functions
 
83
 */
 
84
 
 
85
/* Defined per back-end. */
 
86
Bool ResolutionBackendInit(InitHandle handle);
 
87
void ResolutionBackendCleanup(void);
 
88
Bool ResolutionSetResolution(uint32 width, uint32 height);
 
89
Bool ResolutionSetTopology(unsigned int ndisplays, DisplayTopologyInfo displays[]);
 
90
 
 
91
 
 
92
#endif // ifndef _LIB_RESOLUTIONINT_H_