blob: 46b5ddacfa4e3f67a310509b5c4c5b30cc09cee7 [file] [log] [blame]
Bill Richardson78299022014-06-20 14:33:00 -07001/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
5
6/*
7 * This tests for the presence of those functions actually used by userspace
8 * apps that are not part of firmware or vboot_reference.
9 */
10
11#include "crossystem.h"
12#include "tlcl.h"
13#include "vboot_host.h"
14
15/* TODO(crbug.com/318536) */
16const char* progname = "";
17const char* command = "";
18void (*uuid_generator)(uint8_t* buffer) = NULL;
19
20int main(void)
21{
22 /* crossystem.h */
23 VbGetSystemPropertyInt(0);
24 VbGetSystemPropertyString(0, 0, 0);
25 VbSetSystemPropertyInt(0, 0);
26
27 /* tlcl.h */
28 TlclGetOwnership(0);
29 TlclGetRandom(0, 0, 0);
30 TlclLibClose();
31 TlclLibInit();
32 TlclRead(0, 0, 0);
33
34 /* vboot_host.h */
35 CgptAdd(0);
36 CgptBoot(0);
37 CgptCreate(0);
38 CgptGetBootPartitionNumber(0);
39 CgptGetNumNonEmptyPartitions(0);
40 CgptGetPartitionDetails(0);
41 CgptPrioritize(0);
42 CgptSetAttributes(0);
43 FindKernelConfig(0, 0);
44 GuidEqual(0, 0);
45 GuidIsZero(0);
46 GuidToStr(0, 0, 0);
47 StrToGuid(0, 0);
48
49 return 0;
50}