summaryrefslogtreecommitdiff
path: root/host/linktest/extern.c
blob: 85c55a1a2a621d90fb189acdae414f90b21ed0f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/*
 * This tests for the presence of those functions actually used by userspace
 * apps that are not part of firmware or vboot_reference.
 */

#include "crossystem.h"
#include "tlcl.h"
#include "vboot_host.h"

/* TODO(crbug.com/318536) */
const char* progname = "";
const char* command = "";
void (*uuid_generator)(uint8_t* buffer) = NULL;

int main(void)
{
	/* crossystem.h */
	VbGetSystemPropertyInt(0);
	VbGetSystemPropertyString(0, 0, 0);
	VbSetSystemPropertyInt(0, 0);

	/* tlcl.h */
	TlclGetOwnership(0);
	TlclGetRandom(0, 0, 0);
	TlclLibClose();
	TlclLibInit();
	TlclRead(0, 0, 0);

	/* vboot_host.h */
	CgptAdd(0);
	CgptBoot(0);
	CgptCreate(0);
	CgptEdit(0);
	CgptGetBootPartitionNumber(0);
	CgptGetNumNonEmptyPartitions(0);
	CgptGetPartitionDetails(0);
	CgptPrioritize(0);
	CgptSetAttributes(0);
	FindKernelConfig(0, 0);
	GuidEqual(0, 0);
	GuidIsZero(0);
	GuidToStr(0, 0, 0);
	StrToGuid(0, 0);

	return 0;
}