From fd08bf20958908228f9fcddd784a61b3de63df7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Fri, 25 Feb 2022 14:23:11 +0000 Subject: [PATCH] nwfilter: make some gentech driver methods static MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The virNWFilterTechDriverForName & virNWFilterUpdateInstantiateFilter methods are only used within the same source file, so don't need to be exported. Reviewed-by: Laine Stump Signed-off-by: Daniel P. Berrangé --- src/nwfilter/nwfilter_gentech_driver.c | 4 ++-- src/nwfilter/nwfilter_gentech_driver.h | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/nwfilter/nwfilter_gentech_driver.c b/src/nwfilter/nwfilter_gentech_driver.c index 20ecd299bf..7bbf1e12fb 100644 --- a/src/nwfilter/nwfilter_gentech_driver.c +++ b/src/nwfilter/nwfilter_gentech_driver.c @@ -99,7 +99,7 @@ void virNWFilterTechDriversShutdown(void) } -virNWFilterTechDriver * +static virNWFilterTechDriver * virNWFilterTechDriverForName(const char *name) { size_t i = 0; @@ -791,7 +791,7 @@ virNWFilterInstantiateFilter(virNWFilterDriverState *driver, } -int +static int virNWFilterUpdateInstantiateFilter(virNWFilterDriverState *driver, virNWFilterBindingDef *binding, bool *skipIface) diff --git a/src/nwfilter/nwfilter_gentech_driver.h b/src/nwfilter/nwfilter_gentech_driver.h index 74f8a4496b..969ab76966 100644 --- a/src/nwfilter/nwfilter_gentech_driver.h +++ b/src/nwfilter/nwfilter_gentech_driver.h @@ -26,8 +26,6 @@ #include "virnwfilterbindingdef.h" #include "nwfilter_tech_driver.h" -virNWFilterTechDriver *virNWFilterTechDriverForName(const char *name); - int virNWFilterTechDriversInit(bool privileged); void virNWFilterTechDriversShutdown(void); @@ -39,9 +37,6 @@ enum instCase { int virNWFilterInstantiateFilter(virNWFilterDriverState *driver, virNWFilterBindingDef *binding); -int virNWFilterUpdateInstantiateFilter(virNWFilterDriverState *driver, - virNWFilterBindingDef *binding, - bool *skipIface); int virNWFilterInstantiateFilterLate(virNWFilterDriverState *driver, virNWFilterBindingDef *binding,