1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

src/lxc: 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:
Jonathon Jongsma 2019-06-18 11:12:32 -05:00 committed by Ján Tomko
parent 91d16fdba0
commit bef4af0ea4
10 changed files with 66 additions and 96 deletions

View File

@ -19,8 +19,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_LXC_CGROUP_H
# define LIBVIRT_LXC_CGROUP_H
#pragma once
#include "vircgroup.h"
#include "domain_conf.h"
@ -47,5 +46,3 @@ int
virLXCTeardownHostUSBDeviceCgroup(virUSBDevicePtr dev,
const char *path,
void *opaque);
#endif /* LIBVIRT_LXC_CGROUP_H */

View File

@ -19,8 +19,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_LXC_CONF_H
# define LIBVIRT_LXC_CONF_H
#pragma once
#include "internal.h"
#include "libvirt_internal.h"
@ -120,5 +119,3 @@ static inline void lxcDriverUnlock(virLXCDriverPtr driver)
{
virMutexUnlock(&driver->lock);
}
#endif /* LIBVIRT_LXC_CONF_H */

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_LXC_CONTAINER_H
# define LIBVIRT_LXC_CONTAINER_H
#pragma once
#include "lxc_conf.h"
#include "lxc_domain.h"
@ -64,5 +63,3 @@ virArch lxcContainerGetAlt32bitArch(virArch arch);
int lxcContainerChown(virDomainDefPtr def, const char *path);
bool lxcIsBasicMountLocation(const char *path);
#endif /* LIBVIRT_LXC_CONTAINER_H */

View File

@ -19,8 +19,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_LXC_DOMAIN_H
# define LIBVIRT_LXC_DOMAIN_H
#pragma once
#include "vircgroup.h"
#include "lxc_conf.h"
@ -113,5 +112,3 @@ virLXCDomainGetMachineName(virDomainDefPtr def, pid_t pid);
int
virLXCDomainSetRunlevel(virDomainObjPtr vm,
int runlevel);
#endif /* LIBVIRT_LXC_DOMAIN_H */

View File

@ -18,10 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_LXC_DRIVER_H
# define LIBVIRT_LXC_DRIVER_H
#pragma once
/* Function declarations */
int lxcRegister(void);
#endif /* LIBVIRT_LXC_DRIVER_H */

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_LXC_FUSE_H
# define LIBVIRT_LXC_FUSE_H
#pragma once
#define FUSE_USE_VERSION 26
@ -56,5 +55,3 @@ typedef struct virLXCFuse *virLXCFusePtr;
int lxcSetupFuse(virLXCFusePtr *f, virDomainDefPtr def);
int lxcStartFuse(virLXCFusePtr f);
void lxcFreeFuse(virLXCFusePtr *f);
#endif /* LIBVIRT_LXC_FUSE_H */

View File

@ -19,8 +19,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_LXC_HOSTDEV_H
# define LIBVIRT_LXC_HOSTDEV_H
#pragma once
#include "lxc_conf.h"
#include "domain_conf.h"
@ -37,5 +36,3 @@ int virLXCPrepareHostDevices(virLXCDriverPtr driver,
virDomainDefPtr def);
void virLXCDomainReAttachHostDevices(virLXCDriverPtr driver,
virDomainDefPtr def);
#endif /* LIBVIRT_LXC_HOSTDEV_H */

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_LXC_MONITOR_H
# define LIBVIRT_LXC_MONITOR_H
#pragma once
#include "virobject.h"
#include "domain_conf.h"
@ -59,5 +58,3 @@ void virLXCMonitorClose(virLXCMonitorPtr mon);
void virLXCMonitorLock(virLXCMonitorPtr mon);
void virLXCMonitorUnlock(virLXCMonitorPtr mon);
#endif /* LIBVIRT_LXC_MONITOR_H */

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_LXC_NATIVE_H
# define LIBVIRT_LXC_NATIVE_H
#pragma once
#include "domain_conf.h"
#include "virenum.h"
@ -46,5 +45,3 @@ VIR_ENUM_DECL(virLXCNetworkConfigEntry);
virDomainDefPtr lxcParseConfigString(const char *config,
virCapsPtr caps,
virDomainXMLOptionPtr xmlopt);
#endif /* LIBVIRT_LXC_NATIVE_H */

View File

@ -19,8 +19,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_LXC_PROCESS_H
# define LIBVIRT_LXC_PROCESS_H
#pragma once
#include "lxc_conf.h"
@ -54,5 +53,3 @@ char *virLXCProcessSetupInterfaceTap(virDomainDefPtr vm,
char *virLXCProcessSetupInterfaceDirect(virConnectPtr conn,
virDomainDefPtr def,
virDomainNetDefPtr net);
#endif /* LIBVIRT_LXC_PROCESS_H */