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

« back to all changes in this revision

Viewing changes to lib/include/guestInfo.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-03-20 10:19:00 UTC
  • mfrom: (1.1.4 upstream) (2.4.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090320101900-1o604camiubq2de8
Tags: 2009.03.18-154848-2
Correcting patch system depends (Closes: #520493).

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 *
17
17
 *********************************************************/
18
18
 
19
 
/*
20
 
 * guestInfo.h --
21
 
 *
22
 
 *    Common declarations that aid in sending guest information to the host.
 
19
/**
 
20
 * @file guestInfo.h
 
21
 *
 
22
 * Common declarations that aid in sending guest information to the host.
 
23
 */
 
24
 
 
25
/**
 
26
 * @defgroup vmtools_guestInfoAPI GuestInfo API Reference
 
27
 * @{
 
28
 *
 
29
 * @brief APIs implementing the GuestInfo feature.
 
30
 *
 
31
 * Definitions below are used for communication across the backdoor between
 
32
 * the VMware Tools Service (running in the guest) and the VMX (running in
 
33
 * the host).
 
34
 *
 
35
 * @sa @ref vmtools_guestInfo for a high level overview.
23
36
 */
24
37
 
25
38
#ifndef _GUEST_INFO_H_
32
45
 
33
46
#include "dbllnklst.h"
34
47
#include "guestStats.h"
 
48
#ifndef N_PLAT_NLM
35
49
#include "guestrpc/nicinfo.h"
 
50
#endif // #ifndef N_PLAT_NLM
36
51
 
37
52
#define GUEST_INFO_COMMAND "SetGuestInfo"
38
53
#define MAX_VALUE_LEN 100
43
58
#define PARTITION_NAME_SIZE MAX_VALUE_LEN
44
59
#define GUESTINFO_TIME_INTERVAL_MSEC 3000  /* time interval in msec */
45
60
 
 
61
/* Value to be used when "primary" IP address is indeterminable. */
 
62
#define GUESTINFO_IP_UNKNOWN "unknown"
 
63
 
46
64
typedef enum {
47
65
   INFO_ERROR,       /* Zero is unused so that errors in atoi can be caught. */
48
66
   INFO_DNS_NAME,
94
112
 * Global functions
95
113
 */
96
114
 
 
115
#ifndef N_PLAT_NLM
97
116
extern Bool GuestInfo_GetFqdn(int outBufLen, char fqdn[]);
98
117
extern Bool GuestInfo_GetNicInfo(GuestNicList *nicInfo);
99
118
extern Bool GuestInfo_GetDiskInfo(PGuestDiskInfo di);
101
120
                                unsigned int outBufLen, char *osNameFull,
102
121
                                char *osName);
103
122
extern int GuestInfo_GetSystemBitness(void);
 
123
#endif // #ifndef N_PLAT_NLM
 
124
 
 
125
/**
 
126
 * @}
 
127
 */
104
128
 
105
129
#endif // _GUEST_INFO_H_
106