[libvirt] [PATCH REPOST 05/38] virlog: Export virLogFilterPtr through header
Cole Robinson
crobinso at redhat.com
Tue May 10 00:08:19 UTC 2016
On 05/04/2016 10:30 AM, Erik Skultety wrote:
> As with outputs, some methods declared through a header file need to know
> the datatype because of their 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 0be1701..b893365 100644
> --- a/src/util/virlog.c
> +++ b/src/util/virlog.c
> @@ -86,8 +86,6 @@ struct _virLogFilter {
> virLogPriority priority;
> unsigned int flags;
> };
> -typedef struct _virLogFilter virLogFilter;
> -typedef virLogFilter *virLogFilterPtr;
>
> static int virLogFiltersSerial = 1;
> static virLogFilterPtr *virLogFilters;
> diff --git a/src/util/virlog.h b/src/util/virlog.h
> index 7706d22..36c610b 100644
> --- a/src/util/virlog.h
> +++ b/src/util/virlog.h
> @@ -133,6 +133,9 @@ typedef struct _virLogMetadata *virLogMetadataPtr;
> typedef struct _virLogOutput virLogOutput;
> typedef virLogOutput *virLogOutputPtr;
>
> +typedef struct _virLogFilter virLogFilter;
> +typedef virLogFilter *virLogFilterPtr;
> +
> /**
> * virLogOutputFunc:
> * @src: the source of the log message
>
ACK
- Cole
More information about the libvir-list
mailing list