Same as for outputs, prepare for the fact, that defining is going to be done for the whole set of filters, rather than defining each filter individually. --- src/libvirt_private.syms | 2 +- src/util/virlog.c | 10 +++++----- src/util/virlog.h | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index 62641ab..fac361b 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -1741,9 +1741,9 @@ virLockSpaceReleaseResourcesForOwner; # util/virlog.h -virLogDefineFilter; virLogDefineFilters; virLogDefineOutputs; +virLogFilterNew; virLogGetDefaultPriority; virLogGetFilters; virLogGetNbFilters; diff --git a/src/util/virlog.c b/src/util/virlog.c index ec942a3..e101484 100644 --- a/src/util/virlog.c +++ b/src/util/virlog.c @@ -250,7 +250,7 @@ virLogResetFilters(void) /** - * virLogDefineFilter: + * virLogFilterNew: * @match: the pattern to match * @priority: the priority to give to messages matching the pattern * @flags: extra flags, see virLogFilterFlags enum @@ -263,9 +263,9 @@ virLogResetFilters(void) * Returns -1 in case of failure or the filter number if successful */ int -virLogDefineFilter(const char *match, - virLogPriority priority, - unsigned int flags) +virLogFilterNew(const char *match, + virLogPriority priority, + unsigned int flags) { size_t i; int ret = -1; @@ -1243,7 +1243,7 @@ virLogParseFilter(const char *filter) if (!*ref) goto cleanup; - if (virLogDefineFilter(ref, prio, flags) < 0) + if (virLogFilterNew(ref, prio, flags) < 0) goto cleanup; ret = 0; diff --git a/src/util/virlog.h b/src/util/virlog.h index 27037a4..93456db 100644 --- a/src/util/virlog.h +++ b/src/util/virlog.h @@ -185,9 +185,9 @@ extern int virLogSetDefaultPriority(virLogPriority priority); extern void virLogSetFromEnv(void); extern int virLogSetFilters(const char *filters); extern int virLogSetOutputs(const char *outputs); -extern int virLogDefineFilter(const char *match, - virLogPriority priority, - unsigned int flags); +extern int virLogFilterNew(const char *match, + virLogPriority priority, + unsigned int flags); extern int virLogOutputNew(virLogOutputFunc f, virLogCloseFunc c, void *data, -- 2.4.3 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list