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_GetFqdn(int outBufLen,
36
GuestInfo_GetNicInfo(NicInfoV3 **nicInfo);
39
GuestInfo_FreeNicInfo(NicInfoV3 *nicInfo);
42
GuestInfo_GetDiskInfo(void);
45
GuestInfo_FreeDiskInfo(GuestDiskInfo *di);
48
GuestInfo_GetOSName(unsigned int outBufFullLen,
49
unsigned int outBufLen,
54
* Comparison routines -- handy for caching, unit testing.
58
GuestInfo_IsEqual_DhcpConfigInfo(const DhcpConfigInfo *a,
59
const DhcpConfigInfo *b);
62
GuestInfo_IsEqual_DnsConfigInfo(const DnsConfigInfo *a,
63
const DnsConfigInfo *b);
66
GuestInfo_IsEqual_DnsHostname(const DnsHostname *a,
67
const DnsHostname *b);
70
GuestInfo_IsEqual_InetCidrRouteEntry(const InetCidrRouteEntry *a,
71
const InetCidrRouteEntry *b,
72
const NicInfoV3 *aInfo,
73
const NicInfoV3 *bInfo);
76
GuestInfo_IsEqual_IpAddressEntry(const IpAddressEntry *a,
77
const IpAddressEntry *b);
80
GuestInfo_IsEqual_NicInfoV3(const NicInfoV3 *a,
84
GuestInfo_IsEqual_TypedIpAddress(const TypedIpAddress *a,
85
const TypedIpAddress *b);
88
GuestInfo_IsEqual_WinsConfigInfo(const WinsConfigInfo *a,
89
const WinsConfigInfo *b);
96
GuestInfo_Util_FindNicByMac(const NicInfoV3 *nicInfo,
97
const char *macAddress);
99
#endif /* _GUESTINFOLIB_H_ */