~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/ghiTrayIcon.x

  • 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) 2009 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
 
 * ghiTrayIcon.x --
21
 
 *
22
 
 *    Definition of the data structures used in the GuestRpc commands to
23
 
 *    provide access to the guest tray icons to the host.
24
 
 */
25
 
 
26
 
/*
27
 
 * Using the opaque type causes rpcgen to emit code that calls the htonl and
28
 
 * ntohl functions. On Windows, these functions are defined in winsock2.h, so
29
 
 * we need to #include that header in the generated code.
30
 
 */
31
 
%#ifdef WIN32
32
 
%#include "winsock2.h"
33
 
%#endif /* WIN32 */
34
 
 
35
 
enum GHITrayIconVersion {
36
 
   GHI_TRAY_ICON_V1 = 1
37
 
};
38
 
 
39
 
/* These are the values used in the op member below. */
40
 
enum GHITrayIconOp {
41
 
   GHI_TRAY_ICON_OP_ADD = 1,
42
 
   GHI_TRAY_ICON_OP_MODIFY,
43
 
   GHI_TRAY_ICON_OP_DELETE
44
 
};
45
 
 
46
 
/* These are the flag values used in the flags bitmask below. */
47
 
enum GHITrayIconFlags {
48
 
   GHI_TRAY_ICON_FLAG_PNGDATA      = 1, /* The pngData is valid. */
49
 
   GHI_TRAY_ICON_FLAG_TOOLTIP      = 2, /* The tooltip is valid. */
50
 
   GHI_TRAY_ICON_FLAG_BLACKLISTKEY = 4  /* The blacklistKey is valid. */
51
 
};
52
 
 
53
 
/*
54
 
 * These structures are sent from the guest to the host whenver a new tray
55
 
 * icon is added, or an existing tray icon is modified. When an icon is
56
 
 * modified, the flags member of this structure is used as a bitmask to
57
 
 * indicate the changed values.
58
 
 *
59
 
 * Note that the identifier string assigned to the icon should be treated as
60
 
 * an opaque value. The contents of this string may change without notice in
61
 
 * new versions of the guest tools. This identifier is not persistent.
62
 
 *
63
 
 * The blacklist key is used by the host to blacklist tray icons. We can't use
64
 
 * iconID for this purpose because iconID must be unique, and the blacklist
65
 
 * key is not always unique (see bug 461750).
66
 
 */
67
 
struct GHITrayIconV1 {
68
 
   string iconID<>;       /* opaque identifier for the icon */
69
 
   GHITrayIconOp op;      /* action to perform */
70
 
   uint32 flags;          /* bitmask of valid items */
71
 
   uint32 width;          /* PNG image width */
72
 
   uint32 height;         /* PNG image height */
73
 
   opaque pngData<>;      /* PNG image data for the icon */
74
 
   string tooltip<>;      /* tooltip string for the icon, UTF8 encoded */
75
 
   string blacklistKey<>; /* key used for icon blacklisting */
76
 
};
77
 
 
78
 
union GHITrayIcon switch (GHITrayIconVersion ver) {
79
 
case GHI_TRAY_ICON_V1:
80
 
   struct GHITrayIconV1 *trayIconV1;
81
 
};
82
 
 
83
 
enum GHITrayIconEventVersion {
84
 
   GHI_TRAY_ICON_EVENT_V1 = 1
85
 
};
86
 
 
87
 
/*
88
 
 * Event messages are sent from the host to the guest when the user interacts
89
 
 * with the host representation of the tray icon (e.g. right-clicks on it).
90
 
 *
91
 
 * XXX The (x, y) co-ordinates in this structure must be relative to the guest
92
 
 *     screen origin.
93
 
 */
94
 
struct GHITrayIconEventV1 {
95
 
   string iconID<>; /* identifier of the icon */
96
 
   uint32 event;    /* event identifier, see unityCommon.h */
97
 
   uint32 x;        /* guest x co-ordinate of the event */
98
 
   uint32 y;        /* guest y co-ordinate of the event */
99
 
};
100
 
 
101
 
union GHITrayIconEvent switch (GHITrayIconEventVersion ver) {
102
 
case GHI_TRAY_ICON_EVENT_V1:
103
 
   struct GHITrayIconEventV1 *trayIconEventV1;
104
 
};