extern.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* 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. * This tests for the presence of those functions actually used by userspace
  7. * apps that are not part of firmware or vboot_reference.
  8. */
  9. #include "crossystem.h"
  10. #include "tlcl.h"
  11. #include "vboot_host.h"
  12. /* TODO(crbug.com/318536) */
  13. const char* progname = "";
  14. const char* command = "";
  15. void (*uuid_generator)(uint8_t* buffer) = NULL;
  16. int main(void)
  17. {
  18. /* crossystem.h */
  19. VbGetSystemPropertyInt(0);
  20. VbGetSystemPropertyString(0, 0, 0);
  21. VbSetSystemPropertyInt(0, 0);
  22. /* tlcl.h */
  23. TlclGetOwnership(0);
  24. TlclGetRandom(0, 0, 0);
  25. TlclLibClose();
  26. TlclLibInit();
  27. TlclRead(0, 0, 0);
  28. /* vboot_host.h */
  29. CgptAdd(0);
  30. CgptBoot(0);
  31. CgptCreate(0);
  32. CgptGetBootPartitionNumber(0);
  33. CgptGetNumNonEmptyPartitions(0);
  34. CgptGetPartitionDetails(0);
  35. CgptPrioritize(0);
  36. CgptSetAttributes(0);
  37. FindKernelConfig(0, 0);
  38. GuidEqual(0, 0);
  39. GuidIsZero(0);
  40. GuidToStr(0, 0, 0);
  41. StrToGuid(0, 0);
  42. return 0;
  43. }