|
|
821f82 |
From daf3b6c6ae8a766f362c87dc80e40005428a1b2a Mon Sep 17 00:00:00 2001
|
|
|
821f82 |
From: Peter Jones <pjones@redhat.com>
|
|
|
821f82 |
Date: Tue, 12 Jun 2018 14:36:20 -0400
|
|
|
821f82 |
Subject: [PATCH 03/17] Move verbosity headers to be public
|
|
|
821f82 |
|
|
|
821f82 |
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
821f82 |
---
|
|
|
821f82 |
src/include/efivar/efivar.h | 8 ++++++++
|
|
|
821f82 |
src/util.h | 4 ----
|
|
|
821f82 |
2 files changed, 8 insertions(+), 4 deletions(-)
|
|
|
821f82 |
|
|
|
821f82 |
diff --git a/src/include/efivar/efivar.h b/src/include/efivar/efivar.h
|
|
|
821f82 |
index ddcc6771bdb..316891ccae9 100644
|
|
|
821f82 |
--- a/src/include/efivar/efivar.h
|
|
|
821f82 |
+++ b/src/include/efivar/efivar.h
|
|
|
821f82 |
@@ -25,6 +25,7 @@
|
|
|
821f82 |
#include <stdarg.h>
|
|
|
821f82 |
#include <stdint.h>
|
|
|
821f82 |
#include <string.h>
|
|
|
821f82 |
+#include <stdio.h>
|
|
|
821f82 |
#include <sys/stat.h>
|
|
|
821f82 |
#include <sys/types.h>
|
|
|
821f82 |
#include <unistd.h>
|
|
|
821f82 |
@@ -227,6 +228,13 @@ efi_error_clear(void)
|
|
|
821f82 |
#define efi_error_val(errval, msg, args...) \
|
|
|
821f82 |
efi_error_real__(errval, __FILE__, __func__, __LINE__, (fmt), ## args)
|
|
|
821f82 |
|
|
|
821f82 |
+extern void efi_set_verbose(int verbosity, FILE *errlog)
|
|
|
821f82 |
+ __attribute__((__visibility__("default")));
|
|
|
821f82 |
+extern int efi_get_verbose(void)
|
|
|
821f82 |
+ __attribute__((__visibility__("default")));
|
|
|
821f82 |
+extern FILE * efi_get_logfile(void)
|
|
|
821f82 |
+ __attribute__((__visibility__("default")));
|
|
|
821f82 |
+
|
|
|
821f82 |
#include <efivar/efivar-dp.h>
|
|
|
821f82 |
|
|
|
821f82 |
#endif /* EFIVAR_H */
|
|
|
821f82 |
diff --git a/src/util.h b/src/util.h
|
|
|
821f82 |
index 96ca66bd54d..cc5f669e6ec 100644
|
|
|
821f82 |
--- a/src/util.h
|
|
|
821f82 |
+++ b/src/util.h
|
|
|
821f82 |
@@ -369,8 +369,4 @@ swizzle_guid_to_uuid(efi_guid_t *guid)
|
|
|
821f82 |
|
|
|
821f82 |
#define DEBUG 1
|
|
|
821f82 |
|
|
|
821f82 |
-extern void PUBLIC efi_set_verbose(int verbosity, FILE *errlog);
|
|
|
821f82 |
-extern int PUBLIC efi_get_verbose(void);
|
|
|
821f82 |
-extern FILE PUBLIC *efi_get_logfile(void);
|
|
|
821f82 |
-
|
|
|
821f82 |
#endif /* EFIVAR_UTIL_H */
|
|
|
821f82 |
--
|
|
|
821f82 |
2.17.1
|
|
|
821f82 |
|