util: firewall: 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:
parent
7c6950a879
commit
4b72307b2f
@ -18,8 +18,7 @@
|
|||||||
* <http://www.gnu.org/licenses/>.
|
* <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_VIRFIREWALL_H
|
#pragma once
|
||||||
# define LIBVIRT_VIRFIREWALL_H
|
|
||||||
|
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "virautoclean.h"
|
#include "virautoclean.h"
|
||||||
@ -116,5 +115,3 @@ int virFirewallApply(virFirewallPtr firewall);
|
|||||||
void virFirewallSetLockOverride(bool avoid);
|
void virFirewallSetLockOverride(bool avoid);
|
||||||
|
|
||||||
VIR_DEFINE_AUTOPTR_FUNC(virFirewall, virFirewallFree);
|
VIR_DEFINE_AUTOPTR_FUNC(virFirewall, virFirewallFree);
|
||||||
|
|
||||||
#endif /* LIBVIRT_VIRFIREWALL_H */
|
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
* <http://www.gnu.org/licenses/>.
|
* <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_VIRFIREWALLD_H
|
#pragma once
|
||||||
# define LIBVIRT_VIRFIREWALLD_H
|
|
||||||
|
|
||||||
#define VIR_FIREWALL_FIREWALLD_SERVICE "org.fedoraproject.FirewallD1"
|
#define VIR_FIREWALL_FIREWALLD_SERVICE "org.fedoraproject.FirewallD1"
|
||||||
|
|
||||||
@ -42,5 +41,3 @@ int virFirewallDApplyRule(virFirewallLayer layer,
|
|||||||
|
|
||||||
int virFirewallDInterfaceSetZone(const char *iface,
|
int virFirewallDInterfaceSetZone(const char *iface,
|
||||||
const char *zone);
|
const char *zone);
|
||||||
|
|
||||||
#endif /* LIBVIRT_VIRFIREWALLD_H */
|
|
||||||
|
@ -22,9 +22,6 @@
|
|||||||
# error "virfirewalldpriv.h may only be included by virfirewalld.c or test suites"
|
# error "virfirewalldpriv.h may only be included by virfirewalld.c or test suites"
|
||||||
#endif /* LIBVIRT_VIRFIREWALLDPRIV_H_ALLOW */
|
#endif /* LIBVIRT_VIRFIREWALLDPRIV_H_ALLOW */
|
||||||
|
|
||||||
#ifndef LIBVIRT_VIRFIREWALLDPRIV_H
|
#pragma once
|
||||||
# define LIBVIRT_VIRFIREWALLDPRIV_H
|
|
||||||
|
|
||||||
#define VIR_FIREWALL_FIREWALLD_SERVICE "org.fedoraproject.FirewallD1"
|
#define VIR_FIREWALL_FIREWALLD_SERVICE "org.fedoraproject.FirewallD1"
|
||||||
|
|
||||||
#endif /* LIBVIRT_VIRFIREWALLDPRIV_H */
|
|
||||||
|
@ -22,8 +22,7 @@
|
|||||||
# error "virfirewallpriv.h may only be included by virfirewall.c or test suites"
|
# error "virfirewallpriv.h may only be included by virfirewall.c or test suites"
|
||||||
#endif /* LIBVIRT_VIRFIREWALLPRIV_H_ALLOW */
|
#endif /* LIBVIRT_VIRFIREWALLPRIV_H_ALLOW */
|
||||||
|
|
||||||
#ifndef LIBVIRT_VIRFIREWALLPRIV_H
|
#pragma once
|
||||||
# define LIBVIRT_VIRFIREWALLPRIV_H
|
|
||||||
|
|
||||||
#include "virfirewall.h"
|
#include "virfirewall.h"
|
||||||
|
|
||||||
@ -36,5 +35,3 @@ typedef enum {
|
|||||||
} virFirewallBackend;
|
} virFirewallBackend;
|
||||||
|
|
||||||
int virFirewallSetBackend(virFirewallBackend backend);
|
int virFirewallSetBackend(virFirewallBackend backend);
|
||||||
|
|
||||||
#endif /* LIBVIRT_VIRFIREWALLPRIV_H */
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user