1
/*********************************************************
2
* Copyright (C) 2009 VMware, Inc. All rights reserved.
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.
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.
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.
17
*********************************************************/
19
#ifndef _GUESTINFOLIB_H_
20
#define _GUESTINFOLIB_H_
23
* @file guestInfoLib.h
25
* Declarations of functions implemented in the guestInfo library.
28
#include "vm_basic_types.h"
29
#include "guestInfo.h"
32
GuestInfo_GetAvailableDiskSpace(char *pathName);
35
GuestInfo_GetFqdn(int outBufLen,
39
GuestInfo_GetNicInfo(NicInfoV3 **nicInfo);
42
GuestInfo_FreeNicInfo(NicInfoV3 *nicInfo);
45
GuestInfo_InitDiskInfo(GuestDiskInfo *di);
48
GuestInfo_GetDiskInfo(GuestDiskInfo *di);
51
GuestInfo_CopyDiskInfo(GuestDiskInfo *dest,
55
GuestInfo_FreeDiskInfo(GuestDiskInfo *di);
58
GuestInfo_GetOSName(unsigned int outBufFullLen,
59
unsigned int outBufLen,
64
GuestInfo_GetSystemBitness(void);
68
* Comparison routines -- handy for caching, unit testing.
72
GuestInfo_IsEqual_DhcpConfigInfo(const DhcpConfigInfo *a,
73
const DhcpConfigInfo *b);
76
GuestInfo_IsEqual_DnsConfigInfo(const DnsConfigInfo *a,
77
const DnsConfigInfo *b);
80
GuestInfo_IsEqual_DnsHostname(const DnsHostname *a,
81
const DnsHostname *b);
84
GuestInfo_IsEqual_InetCidrRouteEntry(const InetCidrRouteEntry *a,
85
const InetCidrRouteEntry *b,
86
const NicInfoV3 *aInfo,
87
const NicInfoV3 *bInfo);
90
GuestInfo_IsEqual_IpAddressEntry(const IpAddressEntry *a,
91
const IpAddressEntry *b);
94
GuestInfo_IsEqual_NicInfoV3(const NicInfoV3 *a,
98
GuestInfo_IsEqual_TypedIpAddress(const TypedIpAddress *a,
99
const TypedIpAddress *b);
102
GuestInfo_IsEqual_WinsConfigInfo(const WinsConfigInfo *a,
103
const WinsConfigInfo *b);
110
GuestInfo_Util_FindNicByMac(const NicInfoV3 *nicInfo,
111
const char *macAddress);
113
#endif /* _GUESTINFOLIB_H_ */