mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
conf: node device: 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
44dc50ec23
commit
787be820f3
@ -20,23 +20,22 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_NODE_DEVICE_CONF_H
|
||||
# define LIBVIRT_NODE_DEVICE_CONF_H
|
||||
#pragma once
|
||||
|
||||
# include "internal.h"
|
||||
# include "virbitmap.h"
|
||||
# include "virutil.h"
|
||||
# include "virscsihost.h"
|
||||
# include "virpci.h"
|
||||
# include "virvhba.h"
|
||||
# include "device_conf.h"
|
||||
# include "storage_adapter_conf.h"
|
||||
# include "virenum.h"
|
||||
#include "internal.h"
|
||||
#include "virbitmap.h"
|
||||
#include "virutil.h"
|
||||
#include "virscsihost.h"
|
||||
#include "virpci.h"
|
||||
#include "virvhba.h"
|
||||
#include "device_conf.h"
|
||||
#include "storage_adapter_conf.h"
|
||||
#include "virenum.h"
|
||||
|
||||
# include <libxml/tree.h>
|
||||
#include <libxml/tree.h>
|
||||
|
||||
# define CREATE_DEVICE 1
|
||||
# define EXISTING_DEVICE 0
|
||||
#define CREATE_DEVICE 1
|
||||
#define EXISTING_DEVICE 0
|
||||
|
||||
typedef enum {
|
||||
/* Keep in sync with VIR_ENUM_IMPL in node_device_conf.c */
|
||||
@ -348,7 +347,7 @@ virNodeDeviceDefFree(virNodeDeviceDefPtr def);
|
||||
void
|
||||
virNodeDevCapsDefFree(virNodeDevCapsDefPtr caps);
|
||||
|
||||
# define VIR_CONNECT_LIST_NODE_DEVICES_FILTERS_CAP \
|
||||
#define VIR_CONNECT_LIST_NODE_DEVICES_FILTERS_CAP \
|
||||
(VIR_CONNECT_LIST_NODE_DEVICES_CAP_SYSTEM | \
|
||||
VIR_CONNECT_LIST_NODE_DEVICES_CAP_PCI_DEV | \
|
||||
VIR_CONNECT_LIST_NODE_DEVICES_CAP_USB_DEV | \
|
||||
@ -383,5 +382,3 @@ virNodeDeviceUpdateCaps(virNodeDeviceDefPtr def);
|
||||
int
|
||||
virNodeDeviceCapsListExport(virNodeDeviceDefPtr def,
|
||||
virNodeDevCapType **list);
|
||||
|
||||
#endif /* LIBVIRT_NODE_DEVICE_CONF_H */
|
||||
|
@ -20,12 +20,11 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_NODE_DEVICE_EVENT_H
|
||||
# define LIBVIRT_NODE_DEVICE_EVENT_H
|
||||
#pragma once
|
||||
|
||||
# include "internal.h"
|
||||
# include "object_event.h"
|
||||
# include "object_event_private.h"
|
||||
#include "internal.h"
|
||||
#include "object_event.h"
|
||||
#include "object_event_private.h"
|
||||
|
||||
int
|
||||
virNodeDeviceEventStateRegisterID(virConnectPtr conn,
|
||||
@ -58,5 +57,3 @@ virNodeDeviceEventLifecycleNew(const char *name,
|
||||
|
||||
virObjectEventPtr
|
||||
virNodeDeviceEventUpdateNew(const char *name);
|
||||
|
||||
#endif /* LIBVIRT_NODE_DEVICE_EVENT_H */
|
||||
|
@ -16,10 +16,9 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_NODE_DEVICE_UTIL_H
|
||||
# define LIBVIRT_NODE_DEVICE_UTIL_H
|
||||
#pragma once
|
||||
|
||||
# include "conf/storage_adapter_conf.h"
|
||||
#include "conf/storage_adapter_conf.h"
|
||||
|
||||
char *
|
||||
virNodeDeviceGetParentName(virConnectPtr conn,
|
||||
@ -31,5 +30,3 @@ virNodeDeviceCreateVport(virStorageAdapterFCHostPtr fchost);
|
||||
int
|
||||
virNodeDeviceDeleteVport(virConnectPtr conn,
|
||||
virStorageAdapterFCHostPtr fchost);
|
||||
|
||||
#endif /* LIBVIRT_NODE_DEVICE_UTIL_H */
|
||||
|
@ -17,14 +17,13 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRNODEDEVICEOBJ_H
|
||||
# define LIBVIRT_VIRNODEDEVICEOBJ_H
|
||||
#pragma once
|
||||
|
||||
# include "internal.h"
|
||||
# include "virthread.h"
|
||||
#include "internal.h"
|
||||
#include "virthread.h"
|
||||
|
||||
# include "node_device_conf.h"
|
||||
# include "object_event.h"
|
||||
#include "node_device_conf.h"
|
||||
#include "object_event.h"
|
||||
|
||||
|
||||
typedef struct _virNodeDeviceObj virNodeDeviceObj;
|
||||
@ -112,5 +111,3 @@ virNodeDeviceObjListExport(virConnectPtr conn,
|
||||
void
|
||||
virNodeDeviceObjSetSkipUpdateCaps(virNodeDeviceObjPtr obj,
|
||||
bool skipUpdateCaps);
|
||||
|
||||
#endif /* LIBVIRT_VIRNODEDEVICEOBJ_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user