nwfilter: make some gentech driver methods static

The virNWFilterTechDriverForName & virNWFilterUpdateInstantiateFilter
methods are only used within the same source file, so don't need to
be exported.

Reviewed-by: Laine Stump <laine@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2022-02-25 14:23:11 +00:00
parent d053b8e6cf
commit fd08bf2095
2 changed files with 2 additions and 7 deletions

View File

@ -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)

View File

@ -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,