~n-muench/ubuntu/quantal/open-vm-tools/open-vm-tools.may2.sid-sync

« back to all changes in this revision

Viewing changes to lib/include/guestCaps.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-05-30 09:48:43 UTC
  • mfrom: (1.1.5 upstream) (2.4.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090530094843-gdpza57r5iqsf124
Tags: 2009.05.22-167859-1
MergingĀ upstreamĀ versionĀ 2009.05.22-167859.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
   HGFSU_CAP_DESKTOP_SHORTCUT           = 12, // supports creating HGFS link on GOS Desktop
58
58
   HGFSU_CAP_MAP_DRIVE                  = 13, // supports mapping a GOS drive letter to HGFS
59
59
   GHI_CAP_SET_HANDLER                  = 14, // supports setting the handler for types/protocols
60
 
   UNITY_CAP_STATUS_UNITY_ACTIVE        = 15, // supports GuestRpc bits for Unity Status 
 
60
   UNITY_CAP_STATUS_UNITY_ACTIVE        = 15, // supports GuestRpc bits for Unity Status
 
61
   GHI_CAP_SET_OUTLOOK_TEMP_FOLDER      = 16, // supports setting the Outlook temp folder
 
62
   GHI_CAP_TRASH_FOLDER                 = 17, // supports ghi.guest.trashFolder.action,
 
63
                                              // ghi.guest.trashFolder.state, and
 
64
                                              // ghi.guest.trashFolder.getIcon commands
 
65
   CAP_SET_TOPO_MODES                   = 18  // supports setting topology modes in video driver
61
66
} GuestCapabilities;
62
67
 
63
68
typedef struct {
75
80
#define UNITY_CAP_VMDB_PATH                  "guest/caps/unityFeatures"
76
81
#define GHI_CAP_VMDB_PATH                    "guest/caps/ghiFeatures"
77
82
#define HGFSU_CAP_VMDB_PATH                  "guest/caps/hgfsUsabilityFeatures"
 
83
#define CAP_VMDB_PATH                        "guest/caps"
78
84
 
79
85
/*
80
86
 * If you change these strings, make sure you also change the
82
88
 */
83
89
 
84
90
/*
85
 
 * This table must be sorted such that it can be indexed using the 
 
91
 * This table must be sorted such that it can be indexed using the
86
92
 * GuestCapabilities enum above. RPC calls pass the value, and the
87
 
 * handler code uses it as an index. In other words, the value of the 
 
93
 * handler code uses it as an index. In other words, the value of the
88
94
 * caps field at index i must be equal to i as well. This is because
89
95
 * the code that looks up entries in this table assume as much. It
90
96
 * also means we don't need the cap field, or, to justify its existence,
114
120
   { HGFSU_CAP_MAP_DRIVE,                  HGFSU_CAP_VMDB_PATH, "mapDrive" },
115
121
   { GHI_CAP_SET_HANDLER,                  GHI_CAP_VMDB_PATH,   "setHandler" },
116
122
   { UNITY_CAP_STATUS_UNITY_ACTIVE,        UNITY_CAP_VMDB_PATH, "unityActive" },
 
123
   { GHI_CAP_SET_OUTLOOK_TEMP_FOLDER,      GHI_CAP_VMDB_PATH,   "setOutlookTempFolder" },
 
124
   { GHI_CAP_TRASH_FOLDER,                 GHI_CAP_VMDB_PATH,   "trashFolder" },
 
125
   { CAP_SET_TOPO_MODES,                   CAP_VMDB_PATH, "displayTopologyModesSet" }
117
126
};
118
127
 
119
128
#endif // VM_NEED_VMDB_GUEST_CAP_MAPPING