mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
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,11 +18,10 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRFIREWALL_H
|
||||
# define LIBVIRT_VIRFIREWALL_H
|
||||
#pragma once
|
||||
|
||||
# include "internal.h"
|
||||
# include "virautoclean.h"
|
||||
#include "internal.h"
|
||||
#include "virautoclean.h"
|
||||
|
||||
typedef struct _virFirewall virFirewall;
|
||||
typedef virFirewall *virFirewallPtr;
|
||||
@ -52,7 +51,7 @@ void virFirewallFree(virFirewallPtr firewall);
|
||||
*
|
||||
* Returns the new rule
|
||||
*/
|
||||
# define virFirewallAddRule(firewall, layer, ...) \
|
||||
#define virFirewallAddRule(firewall, layer, ...) \
|
||||
virFirewallAddRuleFull(firewall, layer, false, NULL, NULL, __VA_ARGS__)
|
||||
|
||||
typedef int (*virFirewallQueryCallback)(virFirewallPtr firewall,
|
||||
@ -116,5 +115,3 @@ int virFirewallApply(virFirewallPtr firewall);
|
||||
void virFirewallSetLockOverride(bool avoid);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virFirewall, virFirewallFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRFIREWALL_H */
|
||||
|
@ -18,10 +18,9 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRFIREWALLD_H
|
||||
# define LIBVIRT_VIRFIREWALLD_H
|
||||
#pragma once
|
||||
|
||||
# define VIR_FIREWALL_FIREWALLD_SERVICE "org.fedoraproject.FirewallD1"
|
||||
#define VIR_FIREWALL_FIREWALLD_SERVICE "org.fedoraproject.FirewallD1"
|
||||
|
||||
typedef enum {
|
||||
VIR_FIREWALLD_BACKEND_NONE,
|
||||
@ -42,5 +41,3 @@ int virFirewallDApplyRule(virFirewallLayer layer,
|
||||
|
||||
int virFirewallDInterfaceSetZone(const char *iface,
|
||||
const char *zone);
|
||||
|
||||
#endif /* LIBVIRT_VIRFIREWALLD_H */
|
||||
|
@ -22,9 +22,6 @@
|
||||
# error "virfirewalldpriv.h may only be included by virfirewalld.c or test suites"
|
||||
#endif /* LIBVIRT_VIRFIREWALLDPRIV_H_ALLOW */
|
||||
|
||||
#ifndef LIBVIRT_VIRFIREWALLDPRIV_H
|
||||
# define LIBVIRT_VIRFIREWALLDPRIV_H
|
||||
#pragma once
|
||||
|
||||
# define VIR_FIREWALL_FIREWALLD_SERVICE "org.fedoraproject.FirewallD1"
|
||||
|
||||
#endif /* LIBVIRT_VIRFIREWALLDPRIV_H */
|
||||
#define VIR_FIREWALL_FIREWALLD_SERVICE "org.fedoraproject.FirewallD1"
|
||||
|
@ -22,10 +22,9 @@
|
||||
# error "virfirewallpriv.h may only be included by virfirewall.c or test suites"
|
||||
#endif /* LIBVIRT_VIRFIREWALLPRIV_H_ALLOW */
|
||||
|
||||
#ifndef LIBVIRT_VIRFIREWALLPRIV_H
|
||||
# define LIBVIRT_VIRFIREWALLPRIV_H
|
||||
#pragma once
|
||||
|
||||
# include "virfirewall.h"
|
||||
#include "virfirewall.h"
|
||||
|
||||
typedef enum {
|
||||
VIR_FIREWALL_BACKEND_AUTOMATIC,
|
||||
@ -36,5 +35,3 @@ typedef enum {
|
||||
} virFirewallBackend;
|
||||
|
||||
int virFirewallSetBackend(virFirewallBackend backend);
|
||||
|
||||
#endif /* LIBVIRT_VIRFIREWALLPRIV_H */
|
||||
|
Loading…
Reference in New Issue
Block a user