conf: nwfilter: use #pragma once in headers

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Jonathon Jongsma 2019-06-07 15:20:18 -05:00 committed by Ján Tomko
parent 54c5224e75
commit 44dc50ec23
7 changed files with 73 additions and 96 deletions

View File

@ -22,8 +22,7 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_NWFILTER_CONF_H #pragma once
# define LIBVIRT_NWFILTER_CONF_H
#include "internal.h" #include "internal.h"
@ -615,5 +614,3 @@ VIR_ENUM_DECL(virNWFilterJumpTarget);
VIR_ENUM_DECL(virNWFilterChainPolicy); VIR_ENUM_DECL(virNWFilterChainPolicy);
VIR_ENUM_DECL(virNWFilterEbtablesTable); VIR_ENUM_DECL(virNWFilterEbtablesTable);
VIR_ENUM_DECL(virNWFilterChainSuffix); VIR_ENUM_DECL(virNWFilterChainSuffix);
#endif /* LIBVIRT_NWFILTER_CONF_H */

View File

@ -20,8 +20,7 @@
* *
*/ */
#ifndef LIBVIRT_NWFILTER_IPADDRMAP_H #pragma once
# define LIBVIRT_NWFILTER_IPADDRMAP_H
int virNWFilterIPAddrMapInit(void); int virNWFilterIPAddrMapInit(void);
void virNWFilterIPAddrMapShutdown(void); void virNWFilterIPAddrMapShutdown(void);
@ -30,5 +29,3 @@ int virNWFilterIPAddrMapAddIPAddr(const char *ifname, char *addr);
int virNWFilterIPAddrMapDelIPAddr(const char *ifname, int virNWFilterIPAddrMapDelIPAddr(const char *ifname,
const char *ipaddr); const char *ipaddr);
virNWFilterVarValuePtr virNWFilterIPAddrMapGetIPAddr(const char *ifname); virNWFilterVarValuePtr virNWFilterIPAddrMapGetIPAddr(const char *ifname);
#endif /* LIBVIRT_NWFILTER_IPADDRMAP_H */

View File

@ -19,8 +19,7 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_NWFILTER_PARAMS_H #pragma once
# define LIBVIRT_NWFILTER_PARAMS_H
#include "virhash.h" #include "virhash.h"
#include "virbuffer.h" #include "virbuffer.h"
@ -150,6 +149,3 @@ virNWFilterVarCombIterPtr virNWFilterVarCombIterNext(
virNWFilterVarCombIterPtr ci); virNWFilterVarCombIterPtr ci);
const char *virNWFilterVarCombIterGetVarValue(virNWFilterVarCombIterPtr ci, const char *virNWFilterVarCombIterGetVarValue(virNWFilterVarCombIterPtr ci,
const virNWFilterVarAccess *); const virNWFilterVarAccess *);
#endif /* LIBVIRT_NWFILTER_PARAMS_H */

View File

@ -19,8 +19,7 @@
* *
*/ */
#ifndef LIBVIRT_VIRNWFILTERBINDINGDEF_H #pragma once
# define LIBVIRT_VIRNWFILTERBINDINGDEF_H
#include "internal.h" #include "internal.h"
#include "virmacaddr.h" #include "virmacaddr.h"
@ -62,5 +61,3 @@ virNWFilterBindingDefFormat(const virNWFilterBindingDef *def);
int int
virNWFilterBindingDefFormatBuf(virBufferPtr buf, virNWFilterBindingDefFormatBuf(virBufferPtr buf,
const virNWFilterBindingDef *def); const virNWFilterBindingDef *def);
#endif /* LIBVIRT_VIRNWFILTERBINDINGDEF_H */

View File

@ -19,8 +19,7 @@
* *
*/ */
#ifndef LIBVIRT_VIRNWFILTERBINDINGOBJ_H #pragma once
# define LIBVIRT_VIRNWFILTERBINDINGOBJ_H
#include "internal.h" #include "internal.h"
#include "virnwfilterbindingdef.h" #include "virnwfilterbindingdef.h"
@ -69,5 +68,3 @@ virNWFilterBindingObjParseFile(const char *filename);
char * char *
virNWFilterBindingObjFormat(const virNWFilterBindingObj *obj); virNWFilterBindingObjFormat(const virNWFilterBindingObj *obj);
#endif /* LIBVIRT_VIRNWFILTERBINDINGOBJ_H */

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_VIRNWFILTERBINDINGOBJLIST_H #pragma once
# define LIBVIRT_VIRNWFILTERBINDINGOBJLIST_H
#include "virnwfilterbindingobj.h" #include "virnwfilterbindingobj.h"
@ -62,6 +61,3 @@ virNWFilterBindingObjListExport(virNWFilterBindingObjListPtr bindings,
virConnectPtr conn, virConnectPtr conn,
virNWFilterBindingPtr **bindinglist, virNWFilterBindingPtr **bindinglist,
virNWFilterBindingObjListACLFilter filter); virNWFilterBindingObjListACLFilter filter);
#endif /* LIBVIRT_VIRNWFILTERBINDINGOBJLIST_H */

View File

@ -17,8 +17,7 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_VIRNWFILTEROBJ_H #pragma once
# define LIBVIRT_VIRNWFILTEROBJ_H
#include "internal.h" #include "internal.h"
@ -114,5 +113,3 @@ virNWFilterObjLock(virNWFilterObjPtr obj);
void void
virNWFilterObjUnlock(virNWFilterObjPtr obj); virNWFilterObjUnlock(virNWFilterObjPtr obj);
#endif /* LIBVIRT_VIRNWFILTEROBJ_H */