blob: 46b5ddacfa4e3f67a310509b5c4c5b30cc09cee7 (
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
|
/* 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);
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;
}
|