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

« back to all changes in this revision

Viewing changes to lib/include/vixCommands.h

  • Committer: Package Import Robot
  • Author(s): Nate Muench
  • Date: 2012-06-20 15:59:51 UTC
  • mfrom: (1.4.8)
  • Revision ID: package-import@ubuntu.com-20120620155951-6rupmpb0f70b52zr
Tags: 2012.05.21-724730-0ubuntu1
* Merging upstream version 2012.05.21-724730.
  - Fixes building against the current Quantal kernel. (LP: #1000344)
  - Fixes Quantal installation issues. (LP: #1019031)

* Sync with Debian
  - Updating to debhelper version 9.
  - Updating to standards version 3.9.3.
  - Updating copyright file machine-readable format version 1.0.
  - Building without multiarch paths for now

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
#define VIX_USER_CREDENTIAL_NAMED_INTERACTIVE_USER    8
62
62
#define VIX_USER_CREDENTIAL_TICKETED_SESSION          9
63
63
#define VIX_USER_CREDENTIAL_SSPI                      10
 
64
#define VIX_USER_CREDENTIAL_SAML_BEARER_TOKEN         11
64
65
 
65
66
#define VIX_SHARED_SECRET_CONFIG_USER_NAME          "__VMware_Vix_Shared_Secret_1__"
66
67
 
317
318
 
318
319
/*
319
320
 * **********************************************************
 
321
 * This is a SAML bearer token with optional userName to specify
 
322
 * an IdProvider store.
 
323
 */
 
324
typedef
 
325
#include "vmware_pack_begin.h"
 
326
struct VixCommandSAMLToken {
 
327
   uint32    tokenLength;
 
328
   uint32    nameLength;
 
329
}
 
330
#include "vmware_pack_end.h"
 
331
VixCommandSAMLToken;
 
332
 
 
333
/*
 
334
 * **********************************************************
320
335
 * Basic power op request. The response is just a generic
321
336
 * response header (it has no body).
322
337
 */
1680
1695
#include "vmware_pack_end.h"
1681
1696
VixMsgReadEnvironmentVariablesRequest;
1682
1697
 
 
1698
/* IdProvider support */
 
1699
 
 
1700
typedef
 
1701
#include "vmware_pack_begin.h"
 
1702
struct VixMsgAddAuthPrincipalRequest {
 
1703
   VixCommandRequestHeader header;
 
1704
 
 
1705
   uint32                  options;
 
1706
 
 
1707
   uint32                  userNameLen;
 
1708
   uint32                  pemCertLen;
 
1709
   Bool                    addMapping;
 
1710
 
 
1711
   int32                   principalType;    // one of VixGuestAuthPrincipalType
 
1712
   uint32                  principalNameLen;
 
1713
   uint32                  principalCommentLen;
 
1714
 
 
1715
   /* Followed by the NUL-terminated string arguments. */
 
1716
   /* char[]               userName; */
 
1717
   /* char[]               pemCert; */
 
1718
   /* char[]               principalName; */
 
1719
   /* char[]               principalComment; */
 
1720
}
 
1721
#include "vmware_pack_end.h"
 
1722
VixMsgAddAuthPrincipalRequest;
 
1723
 
 
1724
typedef
 
1725
#include "vmware_pack_begin.h"
 
1726
struct VixMsgRemoveAuthPrincipalRequest {
 
1727
   VixCommandRequestHeader header;
 
1728
 
 
1729
   uint32                  options;
 
1730
 
 
1731
   uint32                  userNameLen;
 
1732
   uint32                  pemCertLen;
 
1733
 
 
1734
   // special case for RemoveProvider:
 
1735
   // if principalType is NONE, then all principals will be removed.
 
1736
   int32                   principalType;    // one of VixGuestAuthPrincipalType
 
1737
   uint32                  principalNameLen;
 
1738
 
 
1739
   /* Followed by the NUL-terminated string arguments. */
 
1740
   /* char[]               userName; */
 
1741
   /* char[]               pemCert; */
 
1742
   /* char[]               principalName; */
 
1743
}
 
1744
#include "vmware_pack_end.h"
 
1745
VixMsgRemoveAuthPrincipalRequest;
 
1746
 
 
1747
typedef
 
1748
#include "vmware_pack_begin.h"
 
1749
struct VixMsgListAuthPrincipalsRequest {
 
1750
   VixCommandRequestHeader header;
 
1751
 
 
1752
   uint32                  options;
 
1753
 
 
1754
   uint32                  userNameLen;
 
1755
 
 
1756
   /* char[]               userName; */
 
1757
}
 
1758
#include "vmware_pack_end.h"
 
1759
VixMsgListAuthPrincipalsRequest;
 
1760
 
 
1761
typedef
 
1762
#include "vmware_pack_begin.h"
 
1763
struct VixMsgListMappedPrincipalsRequest {
 
1764
   VixCommandRequestHeader header;
 
1765
 
 
1766
   uint32                  options;
 
1767
}
 
1768
#include "vmware_pack_end.h"
 
1769
VixMsgListMappedPrincipalsRequest;
 
1770
 
 
1771
/*
 
1772
 * Windows Registry Management Support.
 
1773
 */
 
1774
typedef
 
1775
#include "vmware_pack_begin.h"
 
1776
struct VixMsgCreateRegKeyRequest {
 
1777
   VixCommandRequestHeader header;
 
1778
 
 
1779
   uint32 options;
 
1780
 
 
1781
   uint32 pathLength;
 
1782
   uint32 wowBitness;
 
1783
   Bool isVolatile;
 
1784
   uint32 classTypeLength;
 
1785
 
 
1786
   /*
 
1787
    * Followed by NUL-terminated string arguments.
 
1788
    * char[] path;
 
1789
    * char[] classType;
 
1790
    */
 
1791
}
 
1792
#include "vmware_pack_end.h"
 
1793
VixMsgCreateRegKeyRequest;
 
1794
 
 
1795
typedef
 
1796
#include "vmware_pack_begin.h"
 
1797
struct VixMsgListRegKeysRequest {
 
1798
   VixCommandRequestHeader header;
 
1799
 
 
1800
   uint32 options;
 
1801
 
 
1802
   /*
 
1803
    * If we need multiple roundtrips, this is the index
 
1804
    * used to identify the result being processed.
 
1805
    */
 
1806
   uint32 index;
 
1807
 
 
1808
   /*
 
1809
    * If we need multiple roundtrips, this is the offset
 
1810
    * in the reply from which to send the next chunk.
 
1811
    */
 
1812
   uint32 offset;
 
1813
 
 
1814
   uint32 pathLength;
 
1815
   uint32 wowBitness;
 
1816
   Bool recursive;
 
1817
   uint32 matchPatternLength;
 
1818
 
 
1819
   /*
 
1820
    * Followed by NUL-terminated string arguments.
 
1821
    * char[] path;
 
1822
    * char[] matchPattern;
 
1823
    */
 
1824
}
 
1825
#include "vmware_pack_end.h"
 
1826
VixMsgListRegKeysRequest;
 
1827
 
 
1828
typedef
 
1829
#include "vmware_pack_begin.h"
 
1830
struct VixMsgDeleteRegKeyRequest {
 
1831
   VixCommandRequestHeader header;
 
1832
 
 
1833
   uint32 options;
 
1834
 
 
1835
   uint32 pathLength;
 
1836
   uint32 wowBitness;
 
1837
   Bool recursive;
 
1838
 
 
1839
   /*
 
1840
    * Followed by NUL-terminated string arguments.
 
1841
    * char[] path;
 
1842
    */
 
1843
}
 
1844
#include "vmware_pack_end.h"
 
1845
VixMsgDeleteRegKeyRequest;
 
1846
 
 
1847
typedef
 
1848
#include "vmware_pack_begin.h"
 
1849
struct VixMsgSetRegValueRequest {
 
1850
   VixCommandRequestHeader header;
 
1851
 
 
1852
   uint32 options;
 
1853
 
 
1854
   uint32 pathLength;
 
1855
   uint32 wowBitness;
 
1856
   uint32 nameLength;
 
1857
   uint32 dataBlobType;
 
1858
   uint32 dataBlobLength;
 
1859
 
 
1860
   /*
 
1861
    * Followed by NUL-terminated string arguments.
 
1862
    * char[] path;
 
1863
    * char[] name;
 
1864
    *
 
1865
    * Followed by a data blob of specified length
 
1866
    * containing information of specified type.
 
1867
    * void *dataBlob;
 
1868
    */
 
1869
}
 
1870
#include "vmware_pack_end.h"
 
1871
VixMsgSetRegValueRequest;
 
1872
 
 
1873
typedef
 
1874
#include "vmware_pack_begin.h"
 
1875
struct VixMsgListRegValuesRequest {
 
1876
   VixCommandRequestHeader header;
 
1877
 
 
1878
   uint32 options;
 
1879
 
 
1880
   /*
 
1881
    * If we need multiple roundtrips, this is the index
 
1882
    * used to identify the result being processed.
 
1883
    */
 
1884
   uint32 index;
 
1885
 
 
1886
   /*
 
1887
    * If we need multiple roundtrips, this is the offset
 
1888
    * in the reply from which to send the next chunk.
 
1889
    */
 
1890
   uint32 offset;
 
1891
 
 
1892
   uint32 pathLength;
 
1893
   uint32 wowBitness;
 
1894
   Bool expandStrings;
 
1895
   uint32 matchPatternLength;
 
1896
 
 
1897
   /*
 
1898
    * Followed by NUL-terminated string arguments.
 
1899
    * char[] path;
 
1900
    * char[] matchPattern;
 
1901
    */
 
1902
}
 
1903
#include "vmware_pack_end.h"
 
1904
VixMsgListRegValuesRequest;
 
1905
 
 
1906
typedef
 
1907
#include "vmware_pack_begin.h"
 
1908
struct VixMsgDeleteRegValueRequest {
 
1909
   VixCommandRequestHeader header;
 
1910
 
 
1911
   uint32 options;
 
1912
 
 
1913
   uint32 pathLength;
 
1914
   uint32 wowBitness;
 
1915
   uint32 nameLength;
 
1916
 
 
1917
   /*
 
1918
    * Followed by NUL-terminated string arguments.
 
1919
    * char[] path;
 
1920
    * char[] name;
 
1921
    */
 
1922
}
 
1923
#include "vmware_pack_end.h"
 
1924
VixMsgDeleteRegValueRequest;
 
1925
 
1683
1926
 
1684
1927
/*
1685
1928
 * HOWTO: Adding a new Vix Command. Step 3.
2186
2429
   VIX_COMMAND_DELETE_GUEST_DIRECTORY_EX        = 195,
2187
2430
   VIX_COMMAND_HOT_CHANGE_MONITOR_TYPE          = 196,
2188
2431
 
 
2432
   VIX_COMMAND_ADD_AUTH_PRINCIPAL               = 197,
 
2433
   VIX_COMMAND_REMOVE_AUTH_PRINCIPAL            = 198,
 
2434
   VIX_COMMAND_LIST_AUTH_PROVIDER_PRINCIPALS    = 199,
 
2435
   VIX_COMMAND_LIST_AUTH_MAPPED_PRINCIPALS      = 200,
 
2436
 
 
2437
   VIX_COMMAND_CREATE_REGISTRY_KEY              = 201,
 
2438
   VIX_COMMAND_LIST_REGISTRY_KEYS               = 202,
 
2439
   VIX_COMMAND_DELETE_REGISTRY_KEY              = 203,
 
2440
   VIX_COMMAND_SET_REGISTRY_VALUE               = 204,
 
2441
   VIX_COMMAND_LIST_REGISTRY_VALUES             = 205,
 
2442
   VIX_COMMAND_DELETE_REGISTRY_VALUE            = 206,
 
2443
 
2189
2444
   /*
2190
2445
    * HOWTO: Adding a new Vix Command. Step 2a.
2191
2446
    *
2196
2451
    * Once a new command is added here, a command info field needs to be added
2197
2452
    * in bora/lib/foundryMsg/foundryMsg.c as well.
2198
2453
    */
2199
 
   VIX_COMMAND_LAST_NORMAL_COMMAND              = 197,
 
2454
   VIX_COMMAND_LAST_NORMAL_COMMAND              = 207,
2200
2455
 
2201
2456
   VIX_TEST_UNSUPPORTED_TOOLS_OPCODE_COMMAND    = 998,
2202
2457
   VIX_TEST_UNSUPPORTED_VMX_OPCODE_COMMAND      = 999,