[PATCH 04/38] virlog: Export virLogOutputPtr through header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It needs to be exported, since some caller might (for some reason) want to
create a logging output without calling the parser which does this. Also,
some methods will use virLogOutputPtr as data type for one of its arguments.
---
 src/util/virlog.c | 2 --
 src/util/virlog.h | 3 +++
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/util/virlog.c b/src/util/virlog.c
index 812e2cd..0be1701 100644
--- a/src/util/virlog.c
+++ b/src/util/virlog.c
@@ -106,8 +106,6 @@ struct _virLogOutput {
     virLogDestination dest;
     char *name;
 };
-typedef struct _virLogOutput virLogOutput;
-typedef virLogOutput *virLogOutputPtr;
 
 static virLogOutputPtr *virLogOutputs;
 static size_t virLogNbOutputs;
diff --git a/src/util/virlog.h b/src/util/virlog.h
index b5056f5..7706d22 100644
--- a/src/util/virlog.h
+++ b/src/util/virlog.h
@@ -130,6 +130,9 @@ struct _virLogMetadata {
 typedef struct _virLogMetadata virLogMetadata;
 typedef struct _virLogMetadata *virLogMetadataPtr;
 
+typedef struct _virLogOutput virLogOutput;
+typedef virLogOutput *virLogOutputPtr;
+
 /**
  * virLogOutputFunc:
  * @src: the source of the log message
-- 
2.4.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]