~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201210021442

« back to all changes in this revision

Viewing changes to services/plugins/unity/unitylib/unityPlatform.h

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-03-31 14:20:05 UTC
  • mfrom: (1.4.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110331142005-3n9red91p7ogkweo
Tags: 2011.03.28-387002-0ubuntu1
* Merge latest upstream git tag.  This has the unlocked_ioctl change
  needed to fix dkms build failures (LP: #727342)
* Changes in debian/rules:
  - work around a bug in toolbox/Makefile, where install-exec-hook is
    not happening.  This needs to get fixed the right way.
  - don't install 'vmware-user' which seems to no longer exist
  - move /etc/xdg into open-vm-toolbox (which should be done using .install)
* debian/open-vm-tools.init: add 'modprobe [-r] vmblock'. (LP: #332323)
* debian/rules and debian/open-vm-toolbox.lintian-overrides:
  - Make vmware-user-suid-wrapper suid-root (LP: #332323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*********************************************************
 
2
 * Copyright (C) 2007 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
 * @file unityPlatform.h
 
21
 *
 
22
 * Implementation specific functionality
 
23
 */
 
24
 
 
25
#ifndef _UNITY_PLATFORM_H_
 
26
#define _UNITY_PLATFORM_H_
 
27
 
 
28
#ifdef __cplusplus
 
29
extern "C" {
 
30
#endif // __cplusplus
 
31
 
 
32
#include "unityWindowTracker.h"
 
33
#include "unity.h"
 
34
 
 
35
#ifdef __cplusplus
 
36
};
 
37
#endif // __cplusplus
 
38
 
 
39
typedef struct _UnityPlatform UnityPlatform;
 
40
 
 
41
/*
 
42
 * Implemented by unityPlatform[Win32|X11|Cocoa (ha!)].c
 
43
 */
 
44
 
 
45
#ifdef __cplusplus
 
46
extern "C" {
 
47
#endif // __cplusplus
 
48
 
 
49
Bool UnityPlatformIsSupported(void);
 
50
UnityPlatform *UnityPlatformInit(UnityWindowTracker *tracker,
 
51
                                 UnityHostCallbacks hostCallbacks);
 
52
void UnityPlatformCleanup(UnityPlatform *up);
 
53
Bool UnityPlatformEnterUnity(UnityPlatform *up);
 
54
void UnityPlatformExitUnity(UnityPlatform *up);
 
55
Bool UnityPlatformUpdateWindowState(UnityPlatform *up,
 
56
                                    UnityWindowTracker *tracker);
 
57
void UnityPlatformSaveSystemSettings(UnityPlatform *up);
 
58
void UnityPlatformRestoreSystemSettings(UnityPlatform *up);
 
59
Bool UnityPlatformGetWindowPath(UnityPlatform *up,
 
60
                                UnityWindowId window,
 
61
                                DynBuf *windowPathUtf8,
 
62
                                DynBuf *execPathUtf8);
 
63
Bool UnityPlatformGetNativeWindowPath(UnityPlatform *up,
 
64
                                      UnityWindowId window,
 
65
                                      DynBuf *buf);
 
66
Bool UnityPlatformGetBinaryInfo(UnityPlatform *up,
 
67
                                const char *pathUtf8,
 
68
                                DynBuf *buf);
 
69
Bool UnityPlatformSetTopWindowGroup(UnityPlatform *up,
 
70
                                    UnityWindowId *windows,
 
71
                                    unsigned int windowCount);
 
72
Bool UnityPlatformCloseWindow(UnityPlatform *up, UnityWindowId window);
 
73
Bool UnityPlatformShowWindow(UnityPlatform *up, UnityWindowId window);
 
74
Bool UnityPlatformHideWindow(UnityPlatform *up, UnityWindowId window);
 
75
Bool UnityPlatformMinimizeWindow(UnityPlatform *up, UnityWindowId window);
 
76
Bool UnityPlatformUnminimizeWindow(UnityPlatform *up, UnityWindowId window);
 
77
Bool UnityPlatformMaximizeWindow(UnityPlatform *up, UnityWindowId window);
 
78
Bool UnityPlatformUnmaximizeWindow(UnityPlatform *up, UnityWindowId window);
 
79
Bool UnityPlatformGetWindowContents(UnityPlatform *up,
 
80
                                    UnityWindowId window,
 
81
                                    DynBuf *imageData,
 
82
                                    uint32 *width,
 
83
                                    uint32 *height);
 
84
Bool UnityPlatformMoveResizeWindow(UnityPlatform *up,
 
85
                                   UnityWindowId window,
 
86
                                   UnityRect *moveResizeRect);
 
87
void UnityPlatformShowTaskbar(UnityPlatform *up, Bool showTaskbar);
 
88
void UnityPlatformShowDesktop(UnityPlatform *up, Bool showDesktop);
 
89
Bool UnityPlatformGetIconData(UnityPlatform *up,
 
90
                              UnityWindowId window,
 
91
                              UnityIconType iconType,
 
92
                              UnityIconSize iconSize,
 
93
                              uint32 dataOffset,
 
94
                              uint32 dataLength,
 
95
                              DynBuf *imageData,
 
96
                              uint32 *fullLength);
 
97
Bool UnityPlatformSetDesktopWorkAreas(UnityPlatform *up,
 
98
                                      UnityRect workAreas[],
 
99
                                      uint32 numWorkAreas);
 
100
Bool UnityPlatformSetDesktopConfig(UnityPlatform *up,
 
101
                                   const UnityVirtualDesktopArray *desktops);
 
102
Bool UnityPlatformSetInitialDesktop(UnityPlatform *up,
 
103
                                    UnityDesktopId desktopId);
 
104
Bool UnityPlatformSetDesktopActive(UnityPlatform *up,
 
105
                                   UnityDesktopId desktopId);
 
106
Bool UnityPlatformSetWindowDesktop(UnityPlatform *up,
 
107
                                   UnityWindowId windowId,
 
108
                                   UnityDesktopId desktopId);
 
109
Bool UnityPlatformStickWindow(UnityPlatform *up,
 
110
                              UnityWindowId windowId);
 
111
Bool UnityPlatformUnstickWindow(UnityPlatform *up,
 
112
                                UnityWindowId windowId);
 
113
void UnityPlatformSetInterlockMinimizeOperation(UnityPlatform *up,Bool enabled);
 
114
Bool UnityPlatformConfirmMinimizeOperation(UnityPlatform *up,
 
115
                                           UnityWindowId windowId,
 
116
                                           uint32 sequence,
 
117
                                           Bool allow);
 
118
Bool UnityPlatformIsUnityRunning(UnityPlatform *up);
 
119
void UnityPlatformUnlock(UnityPlatform *up);
 
120
void UnityPlatformLock(UnityPlatform *up);
 
121
void UnityPlatformUpdateDnDDetWnd(UnityPlatform *up,
 
122
                                  Bool show);
 
123
void UnityPlatformSetActiveDnDDetWnd(UnityPlatform *up, UnityDnD *detWnd);
 
124
 
 
125
void UnityPlatformDoUpdate(UnityPlatform *up, Bool incremental);
 
126
 
 
127
void UnityPlatformSetConfigDesktopColor(UnityPlatform *up, int desktopColor);
 
128
 
 
129
Bool UnityPlatformRequestWindowContents(UnityPlatform *up,
 
130
                                        UnityWindowId windowIds[],
 
131
                                        uint32 numWindowIds);
 
132
 
 
133
Bool UnityPlatformSendMouseWheel(UnityPlatform *up,
 
134
                                 int32 deltaX,
 
135
                                 int32 deltaY,
 
136
                                 int32 deltaZ,
 
137
                                 uint32 modifierFlags);
 
138
void UnityPlatformSetDisableCompositing(UnityPlatform *up, Bool disabled);
 
139
 
 
140
#ifdef __cplusplus
 
141
};
 
142
#endif // __cplusplus
 
143
 
 
144
#endif