~n-muench/ubuntu/precise/open-vm-tools/open-vm-tools-precise.sid-merge1

« back to all changes in this revision

Viewing changes to services/plugins/unity/ghIntegration/ghIntegrationInt.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
 * ghIntegrationInt.h --
 
21
 *
 
22
 *    Platform specific functionality
 
23
 */
 
24
 
 
25
#ifndef _GH_INTEGRATION_INT_H_
 
26
#define _GH_INTEGRATION_INT_H_
 
27
 
 
28
#include "ghIntegration.h"
 
29
 
 
30
#ifdef __cplusplus
 
31
extern "C" {
 
32
#endif
 
33
 
 
34
#include "dynbuf.h"
 
35
 
 
36
typedef struct _GHIPlatform GHIPlatform;
 
37
 
 
38
/*
 
39
 * Implemented by ghIntegration[Win32|X11|Cocoa (ha!)].c
 
40
 */
 
41
 
 
42
Bool GHIPlatformIsSupported(void);
 
43
GHIPlatform *GHIPlatformInit(GMainLoop *mainLoop, const char **envp, GHIHostCallbacks hostcallbacks);
 
44
void GHIPlatformCleanup(GHIPlatform *ghip);
 
45
Bool GHIPlatformOpenStartMenuTree(GHIPlatform *ghip,
 
46
                                  const char *rootUtf8,
 
47
                                  uint32 flags,
 
48
                                  DynBuf *buf);
 
49
Bool GHIPlatformGetStartMenuItem(GHIPlatform *ghip,
 
50
                                 uint32 handle,
 
51
                                 uint32 itemIndex,
 
52
                                 DynBuf *buf);
 
53
Bool GHIPlatformCloseStartMenuTree(GHIPlatform *ghip,
 
54
                                   uint32 handle);
 
55
Bool GHIPlatformShellOpen(GHIPlatform *ghip,
 
56
                          const char *fileUtf8);
 
57
Bool GHIPlatformShellAction(GHIPlatform *ghip,
 
58
                            const char *actionURI,
 
59
                            const char *targetURI,
 
60
                            const char **locations,
 
61
                            int numLocations);
 
62
Bool GHIPlatformSetGuestHandler(GHIPlatform *ghip,
 
63
                                const char *suffix,
 
64
                                const char *mimeType,
 
65
                                const char *UTI,
 
66
                                const char *actionURI,
 
67
                                const char *targetURI);
 
68
Bool GHIPlatformRestoreDefaultGuestHandler(GHIPlatform *ghip,
 
69
                                           const char *suffix,
 
70
                                           const char *mimetype,
 
71
                                           const char *UTI);
 
72
 
 
73
/*
 
74
 * Set the temporary folder used by Outlook to store attachments.
 
75
 */
 
76
Bool GHIPlatformSetOutlookTempFolder(GHIPlatform* ghip, const char *targetURI);
 
77
 
 
78
/*
 
79
 * Send a mouse event to a tray icon.
 
80
 */
 
81
Bool GHIPlatformTrayIconSendEvent(GHIPlatform *ghip,
 
82
                                  const char *iconID,
 
83
                                  uint32 event,
 
84
                                  uint32 x,
 
85
                                  uint32 y);
 
86
 
 
87
/*
 
88
 * Start sending tray icon updates to the VMX.
 
89
 */
 
90
Bool GHIPlatformTrayIconStartUpdates(GHIPlatform *ghip);
 
91
 
 
92
/*
 
93
 * Stop sending tray icon updates to the VMX.
 
94
 */
 
95
Bool GHIPlatformTrayIconStopUpdates(GHIPlatform *ghip);
 
96
 
 
97
/*
 
98
 * Set the specified window to be focused.
 
99
 */
 
100
Bool GHIPlatformSetFocusedWindow(GHIPlatform *ghip, int32 windowId);
 
101
 
 
102
/*
 
103
 * Get the hash (or timestamp) of information returned by get.binary.info.
 
104
 */
 
105
Bool GHIPlatformGetExecInfoHash(GHIPlatform *ghip,
 
106
                                const char *execPath,
 
107
                                char **execInfoHash);
 
108
 
 
109
#ifndef _WIN32
 
110
const gchar *
 
111
GHIX11FindDesktopUriByExec(GHIPlatform *ghip,
 
112
                           const char *exec);
 
113
#endif
 
114
 
 
115
#ifdef __cplusplus
 
116
} // extern "C"
 
117
#endif
 
118
 
 
119
#ifdef __cplusplus
 
120
namespace vmware { namespace tools {
 
121
 
 
122
class NotifyIconCallback;
 
123
 
 
124
} /* namespace tools */ } /* namespace vmware */
 
125
 
 
126
void GHIPlatformRegisterNotifyIconCallback(vmware::tools::NotifyIconCallback *notifyIconCallback);
 
127
void GHIPlatformUnregisterNotifyIconCallback(vmware::tools::NotifyIconCallback *notifyIconCallback);
 
128
 
 
129
#if !defined(OPEN_VM_TOOLS)  && !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__)
 
130
const FileTypeList& GHIPlatformGetBinaryHandlers(GHIPlatform *ghip, const char *pathUtf8);
 
131
#endif // !OPEN_VM_TOOLS && !__FreeBSD__ && !sun && !__APPLE__
 
132
 
 
133
Bool GHIPlatformGetBinaryInfo(GHIPlatform *ghip, const char *pathUriUtf8, std::string &friendlyName, std::list<GHIBinaryIconInfo> &iconList);
 
134
 
 
135
#endif // __cplusplus
 
136
 
 
137
#endif // _GH_INTEGRATION_INT_H_