mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
util: netdev: 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
0b8b8da7d9
commit
7987eeaf9c
@ -16,8 +16,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRNETDEV_H
|
||||
# define LIBVIRT_VIRNETDEV_H
|
||||
#pragma once
|
||||
|
||||
#include <net/if.h>
|
||||
|
||||
@ -313,5 +312,3 @@ int virNetDevRunEthernetScript(const char *ifname, const char *script)
|
||||
ATTRIBUTE_NOINLINE;
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetDevRxFilter, virNetDevRxFilterFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRNETDEV_H */
|
||||
|
@ -16,8 +16,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRNETDEVBANDWIDTH_H
|
||||
# define LIBVIRT_VIRNETDEVBANDWIDTH_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
#include "virmacaddr.h"
|
||||
@ -74,4 +73,3 @@ int virNetDevBandwidthUpdateFilter(const char *ifname,
|
||||
unsigned int id)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2)
|
||||
ATTRIBUTE_RETURN_CHECK;
|
||||
#endif /* LIBVIRT_VIRNETDEVBANDWIDTH_H */
|
||||
|
@ -16,8 +16,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRNETDEVBRIDGE_H
|
||||
# define LIBVIRT_VIRNETDEVBRIDGE_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
#include "virmacaddr.h"
|
||||
@ -89,4 +88,3 @@ int virNetDevBridgeFDBAdd(const virMacAddr *mac, const char *ifname,
|
||||
int virNetDevBridgeFDBDel(const virMacAddr *mac, const char *ifname,
|
||||
unsigned int flags)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
|
||||
#endif /* LIBVIRT_VIRNETDEVBRIDGE_H */
|
||||
|
@ -16,8 +16,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRNETDEVIP_H
|
||||
# define LIBVIRT_VIRNETDEVIP_H
|
||||
#pragma once
|
||||
|
||||
#include "virsocketaddr.h"
|
||||
#include "virautoclean.h"
|
||||
@ -97,5 +96,3 @@ int virNetDevIPInfoAddToDev(const char *ifname,
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetDevIPAddr, virNetDevIPAddrFree);
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetDevIPRoute, virNetDevIPRouteFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRNETDEVIP_H */
|
||||
|
@ -17,8 +17,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRNETDEVMACVLAN_H
|
||||
# define LIBVIRT_VIRNETDEVMACVLAN_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
#include "virmacaddr.h"
|
||||
@ -112,4 +111,3 @@ int virNetDevMacVLanVPortProfileRegisterCallback(const char *ifname,
|
||||
virNetDevVPortProfileOp vmOp)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3)
|
||||
ATTRIBUTE_NONNULL(4) ATTRIBUTE_RETURN_CHECK;
|
||||
#endif /* LIBVIRT_VIRNETDEVMACVLAN_H */
|
||||
|
@ -16,8 +16,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRNETDEVMIDONET_H
|
||||
# define LIBVIRT_VIRNETDEVMIDONET_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
#include "virnetdevvportprofile.h"
|
||||
@ -29,5 +28,3 @@ int virNetDevMidonetBindPort(const char *ifname,
|
||||
|
||||
int virNetDevMidonetUnbindPort(virNetDevVPortProfilePtr virtualport)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
|
||||
|
||||
#endif /* LIBVIRT_VIRNETDEVMIDONET_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRNETDEVOPENVSWITCH_H
|
||||
# define LIBVIRT_VIRNETDEVOPENVSWITCH_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
#include "virnetdevvportprofile.h"
|
||||
@ -64,5 +63,3 @@ int virNetDevOpenvswitchGetVhostuserIfname(const char *path,
|
||||
int virNetDevOpenvswitchUpdateVlan(const char *ifname,
|
||||
virNetDevVlanPtr virtVlan)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
|
||||
|
||||
#endif /* LIBVIRT_VIRNETDEVOPENVSWITCH_H */
|
||||
|
@ -16,8 +16,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRNETDEVTAP_H
|
||||
# define LIBVIRT_VIRNETDEVTAP_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
#include "virnetdev.h"
|
||||
@ -103,5 +102,3 @@ int virNetDevTapInterfaceStats(const char *ifname,
|
||||
virDomainInterfaceStatsPtr stats,
|
||||
bool swapped)
|
||||
ATTRIBUTE_RETURN_CHECK;
|
||||
|
||||
#endif /* LIBVIRT_VIRNETDEVTAP_H */
|
||||
|
@ -17,8 +17,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRNETDEVVETH_H
|
||||
# define LIBVIRT_VIRNETDEVVETH_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
@ -27,5 +26,3 @@ int virNetDevVethCreate(char **veth1, char **veth2)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
|
||||
int virNetDevVethDelete(const char *veth)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
|
||||
|
||||
#endif /* LIBVIRT_VIRNETDEVVETH_H */
|
||||
|
@ -16,8 +16,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRNETDEVVLAN_H
|
||||
# define LIBVIRT_VIRNETDEVVLAN_H
|
||||
#pragma once
|
||||
|
||||
#include <virutil.h>
|
||||
|
||||
@ -50,5 +49,3 @@ int virNetDevVlanEqual(const virNetDevVlan *a, const virNetDevVlan *b);
|
||||
int virNetDevVlanCopy(virNetDevVlanPtr dst, const virNetDevVlan *src);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetDevVlan, virNetDevVlanFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRNETDEVVLAN_H */
|
||||
|
@ -16,8 +16,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRNETDEVVPORTPROFILE_H
|
||||
# define LIBVIRT_VIRNETDEVVPORTPROFILE_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
#include "viruuid.h"
|
||||
@ -109,6 +108,3 @@ int virNetDevVPortProfileDisassociate(const char *ifname,
|
||||
int vf,
|
||||
virNetDevVPortProfileOp vmOp)
|
||||
ATTRIBUTE_NONNULL(4) ATTRIBUTE_RETURN_CHECK;
|
||||
|
||||
|
||||
#endif /* LIBVIRT_VIRNETDEVVPORTPROFILE_H */
|
||||
|
Loading…
Reference in New Issue
Block a user