~n-muench/ubuntu/precise/open-vm-tools/open-vm-tools.raring-precise.backport

« back to all changes in this revision

Viewing changes to services/plugins/unity/ghIntegration/ghIntegrationInt.h

  • Committer: Package Import Robot
  • Author(s): Nate Muench
  • Date: 2012-01-23 16:09:45 UTC
  • mfrom: (1.4.6) (2.4.26 sid)
  • Revision ID: package-import@ubuntu.com-20120123160945-b6s0r1vkcovucpf3
Tags: 2011.12.20-562307-0ubuntu1
* Merge latest upstream git tag. Fixes building on Precise
  (LP: #898289, LP: #905612)

* Items merged from Debian unstable:
  - debian/control:
    + open-vm-tools recommends open-vm-dkms. (LP: #598933)
    + open-vm-tools now suggests open-vm-toolbox. (LP: #604998)
  (From 2011.08.21-471295-1 release)
  - Updating maintainer and uploaders fields.
  - Removing vcs fields.
  - Removing references to Daniel's old email address.
  - Updating years in copyright file.
  - Updating to standards version 3.9.2.
  - Updating to debhelper version 8.
  - Switching to source format 3.0 (quilt).
  - Removing manual chrpath setting.
  - Removing exclusion from plugins from debhelper shlibs.
  - Rediffing kvers.patch.
  (From 2011.09.23-491607-1 release)
  - Marking binary architecture-dependend packages as linux and kfreebsd
  only.
  - Removing liburiparser-dev from build-depends as upstream dropped
  unity support.
  - Building with libproc-dev on amd64 again.
  - Dropping disabling of dnet support.
  (From 2011.09.23-491607-2 release)
  - Adding doxygen to build-depends for api documentation.
  - Adding libcunit1-dev to build-depends for test suites.
  - Minimizing rules file.
  - Adding open-vm-tools-dev package, containing only the api
    documentation for now.
  (From 2011.09.23-491607-3 release)
  - Sorting overrides in rules alphabetically.
  - Compacting copyright file.
  - Adding udev rule to set timeout for vmware scsi devices
  (From 2011.12.20-562307-1 release)
  - Adding patch to correct typo in upstreams dkms configuration

* Remaining Changes:
  - Remove Stable part of version numbering.
  - debian folder:
    + Re-added open-vm-dkms.postinst & open-vm-dkms.prerm.
      * Allows dkms modules to compile upon installation.
  - debian/control:
    + Re-add open-vm-source and make into a transitional package
      for open-vm-toolbox.
    + Return dependancies that were moved to open-vm-tools back to
      open-vm-toolbox.
  - debian/rules and debian/open-vm-toolbox.lintian-overrides:
    + Make vmware-user-suid-wrapper suid-root
  - debian/rules:
    + Added CFLAGS field with -Wno-deprecated-declarations
      * Will suppress issues with glib 2.31 or later.
    + Add line to copy vmware-xdg-detect-de into place.
    + Install vmware-user.desktop through toolbox package.
  - debian/open-vm-tools.init:
    + Re-add 'modprobe [-r] vmblock'.
    + Add 'modprobe [-r] vmxnet'.
      * Incase it's not loaded during boot.
    + Remove and re-add pcnet32 module
      * Will be done before (remove) and after (readd) vmxnet module
        is added.
      * If vmxnet doesn't exist (aka modules fail to build), pcnet32 can be
        still used for network connectivity.
      * Workaround until a better fix can be done.
  - Re-add gnome-session to debian/local/xautostart.conf
  - Manpages removed (from debian/manpages):
    + vmmemctl.9
    + vmxnet3.9
    + Remove references to manpages that have been removed.

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_