Blame SOURCES/0002-Move-verbosity-headers-to-be-public.patch

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