mirror of https://gitee.com/openkylin/libvirt.git
util: mac: 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
00eadc38dc
commit
ca92f950b1
|
@ -18,16 +18,15 @@
|
|||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRMACADDR_H
|
||||
# define LIBVIRT_VIRMACADDR_H
|
||||
#pragma once
|
||||
|
||||
# include "internal.h"
|
||||
# include "virautoclean.h"
|
||||
#include "internal.h"
|
||||
#include "virautoclean.h"
|
||||
|
||||
# define VIR_MAC_BUFLEN 6
|
||||
# define VIR_MAC_HEXLEN (VIR_MAC_BUFLEN * 2)
|
||||
# define VIR_MAC_PREFIX_BUFLEN 3
|
||||
# define VIR_MAC_STRING_BUFLEN (VIR_MAC_BUFLEN * 3)
|
||||
#define VIR_MAC_BUFLEN 6
|
||||
#define VIR_MAC_HEXLEN (VIR_MAC_BUFLEN * 2)
|
||||
#define VIR_MAC_PREFIX_BUFLEN 3
|
||||
#define VIR_MAC_STRING_BUFLEN (VIR_MAC_BUFLEN * 3)
|
||||
|
||||
typedef struct _virMacAddr virMacAddr;
|
||||
typedef virMacAddr *virMacAddrPtr;
|
||||
|
@ -65,5 +64,3 @@ bool virMacAddrIsBroadcastRaw(const unsigned char s[VIR_MAC_BUFLEN]);
|
|||
void virMacAddrFree(virMacAddrPtr addr);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virMacAddr, virMacAddrFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRMACADDR_H */
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRMACMAP_H
|
||||
# define LIBVIRT_VIRMACMAP_H
|
||||
#pragma once
|
||||
|
||||
typedef struct virMacMap virMacMap;
|
||||
typedef virMacMap *virMacMapPtr;
|
||||
|
@ -46,5 +45,3 @@ int virMacMapWriteFile(virMacMapPtr mgr,
|
|||
|
||||
int virMacMapDumpStr(virMacMapPtr mgr,
|
||||
char **str);
|
||||
|
||||
#endif /* LIBVIRT_VIRMACMAP_H */
|
||||
|
|
Loading…
Reference in New Issue