mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
tools: 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
c35d8a7d5e
commit
a325763ff1
@ -23,8 +23,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_NSS_H
|
||||
# define LIBVIRT_NSS_H
|
||||
#pragma once
|
||||
|
||||
#include <nss.h>
|
||||
#include <netdb.h>
|
||||
@ -60,5 +59,3 @@ ns_mtab*
|
||||
nss_module_register(const char *name, unsigned int *size,
|
||||
nss_module_unregister_fn *unregister);
|
||||
#endif /* HAVE_BSD_NSS */
|
||||
|
||||
#endif /* LIBVIRT_NSS_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRSH_COMPLETER_H
|
||||
# define LIBVIRT_VIRSH_COMPLETER_H
|
||||
#pragma once
|
||||
|
||||
#include "vsh.h"
|
||||
|
||||
@ -118,4 +117,3 @@ char ** virshCellnoCompleter(vshControl *ctl,
|
||||
char ** virshDomainShutdownModeCompleter(vshControl *ctl,
|
||||
const vshCmd *cmd,
|
||||
unsigned int flags);
|
||||
#endif /* LIBVIRT_VIRSH_COMPLETER_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRSH_CONSOLE_H
|
||||
# define LIBVIRT_VIRSH_CONSOLE_H
|
||||
#pragma once
|
||||
|
||||
#ifndef WIN32
|
||||
|
||||
@ -31,5 +30,3 @@ int virshRunConsole(vshControl *ctl,
|
||||
unsigned int flags);
|
||||
|
||||
#endif /* !WIN32 */
|
||||
|
||||
#endif /* LIBVIRT_VIRSH_CONSOLE_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRSH_DOMAIN_MONITOR_H
|
||||
# define LIBVIRT_VIRSH_DOMAIN_MONITOR_H
|
||||
#pragma once
|
||||
|
||||
#include "virsh.h"
|
||||
|
||||
@ -28,5 +27,3 @@ char *virshGetDomainDescription(vshControl *ctl, virDomainPtr dom,
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
|
||||
|
||||
extern const vshCmdDef domMonitoringCmds[];
|
||||
|
||||
#endif /* LIBVIRT_VIRSH_DOMAIN_MONITOR_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRSH_DOMAIN_H
|
||||
# define LIBVIRT_VIRSH_DOMAIN_H
|
||||
#pragma once
|
||||
|
||||
#include "virsh.h"
|
||||
|
||||
@ -32,5 +31,3 @@ typedef struct virshDomainEventCallback virshDomainEventCallback;
|
||||
extern virshDomainEventCallback virshDomainEventCallbacks[];
|
||||
|
||||
extern const vshCmdDef domManagementCmds[];
|
||||
|
||||
#endif /* LIBVIRT_VIRSH_DOMAIN_H */
|
||||
|
@ -18,11 +18,8 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRSH_HOST_H
|
||||
# define LIBVIRT_VIRSH_HOST_H
|
||||
#pragma once
|
||||
|
||||
#include "virsh.h"
|
||||
|
||||
extern const vshCmdDef hostAndHypervisorCmds[];
|
||||
|
||||
#endif /* LIBVIRT_VIRSH_HOST_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRSH_INTERFACE_H
|
||||
# define LIBVIRT_VIRSH_INTERFACE_H
|
||||
#pragma once
|
||||
|
||||
#include "virsh.h"
|
||||
|
||||
@ -33,5 +32,3 @@ virInterfacePtr virshCommandOptInterfaceBy(vshControl *ctl, const vshCmd *cmd,
|
||||
VIRSH_BYMAC | VIRSH_BYNAME)
|
||||
|
||||
extern const vshCmdDef ifaceCmds[];
|
||||
|
||||
#endif /* LIBVIRT_VIRSH_INTERFACE_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRSH_NETWORK_H
|
||||
# define LIBVIRT_VIRSH_NETWORK_H
|
||||
#pragma once
|
||||
|
||||
#include "virsh.h"
|
||||
|
||||
@ -46,5 +45,3 @@ typedef struct virshNetworkEventCallback virshNetworkEventCallback;
|
||||
extern virshNetworkEventCallback virshNetworkEventCallbacks[];
|
||||
|
||||
extern const vshCmdDef networkCmds[];
|
||||
|
||||
#endif /* LIBVIRT_VIRSH_NETWORK_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRSH_NODEDEV_H
|
||||
# define LIBVIRT_VIRSH_NODEDEV_H
|
||||
#pragma once
|
||||
|
||||
#include "virsh.h"
|
||||
|
||||
@ -32,5 +31,3 @@ typedef struct virshNodedevEventCallback virshNodedevEventCallback;
|
||||
extern virshNodedevEventCallback virshNodedevEventCallbacks[];
|
||||
|
||||
extern const vshCmdDef nodedevCmds[];
|
||||
|
||||
#endif /* LIBVIRT_VIRSH_NODEDEV_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRSH_NWFILTER_H
|
||||
# define LIBVIRT_VIRSH_NWFILTER_H
|
||||
#pragma once
|
||||
|
||||
#include "virsh.h"
|
||||
|
||||
@ -41,5 +40,3 @@ virshCommandOptNWFilterBindingBy(vshControl *ctl, const vshCmd *cmd,
|
||||
virshCommandOptNWFilterBindingBy(_ctl, _cmd, _name, 0)
|
||||
|
||||
extern const vshCmdDef nwfilterCmds[];
|
||||
|
||||
#endif /* LIBVIRT_VIRSH_NWFILTER_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRSH_POOL_H
|
||||
# define LIBVIRT_VIRSH_POOL_H
|
||||
#pragma once
|
||||
|
||||
#include "virsh.h"
|
||||
|
||||
@ -41,5 +40,3 @@ typedef struct virshPoolEventCallback virshPoolEventCallback;
|
||||
extern virshPoolEventCallback virshPoolEventCallbacks[];
|
||||
|
||||
extern const vshCmdDef storagePoolCmds[];
|
||||
|
||||
#endif /* LIBVIRT_VIRSH_POOL_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRSH_SECRET_H
|
||||
# define LIBVIRT_VIRSH_SECRET_H
|
||||
#pragma once
|
||||
|
||||
#include "virsh.h"
|
||||
|
||||
@ -32,5 +31,3 @@ typedef struct virshSecretEventCallback virshSecretEventCallback;
|
||||
extern virshSecretEventCallback virshSecretEventCallbacks[];
|
||||
|
||||
extern const vshCmdDef secretCmds[];
|
||||
|
||||
#endif /* LIBVIRT_VIRSH_SECRET_H */
|
||||
|
@ -18,11 +18,8 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRSH_SNAPSHOT_H
|
||||
# define LIBVIRT_VIRSH_SNAPSHOT_H
|
||||
#pragma once
|
||||
|
||||
#include "virsh.h"
|
||||
|
||||
extern const vshCmdDef snapshotCmds[];
|
||||
|
||||
#endif /* LIBVIRT_VIRSH_SNAPSHOT_H */
|
||||
|
@ -16,8 +16,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRSH_UTIL_H
|
||||
# define LIBVIRT_VIRSH_UTIL_H
|
||||
#pragma once
|
||||
|
||||
#include "virsh.h"
|
||||
|
||||
@ -103,5 +102,3 @@ virshDomainGetXML(vshControl *ctl,
|
||||
xmlXPathContextPtr *ctxt)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(4)
|
||||
ATTRIBUTE_NONNULL(5) ATTRIBUTE_RETURN_CHECK;
|
||||
|
||||
#endif /* LIBVIRT_VIRSH_UTIL_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRSH_VOLUME_H
|
||||
# define LIBVIRT_VIRSH_VOLUME_H
|
||||
#pragma once
|
||||
|
||||
#include "virsh.h"
|
||||
|
||||
@ -34,5 +33,3 @@ virStorageVolPtr virshCommandOptVolBy(vshControl *ctl, const vshCmd *cmd,
|
||||
VIRSH_BYUUID | VIRSH_BYNAME)
|
||||
|
||||
extern const vshCmdDef storageVolCmds[];
|
||||
|
||||
#endif /* LIBVIRT_VIRSH_VOLUME_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRSH_H
|
||||
# define LIBVIRT_VIRSH_H
|
||||
#pragma once
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <unistd.h>
|
||||
@ -171,5 +170,3 @@ typedef enum {
|
||||
} virshLookupByFlags;
|
||||
|
||||
virConnectPtr virshConnect(vshControl *ctl, const char *uri, bool readonly);
|
||||
|
||||
#endif /* LIBVIRT_VIRSH_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRT_ADMIN_COMPLETER_H
|
||||
# define LIBVIRT_VIRT_ADMIN_COMPLETER_H
|
||||
#pragma once
|
||||
|
||||
#include "vsh.h"
|
||||
|
||||
@ -27,4 +26,3 @@ char **
|
||||
vshAdmServerCompleter(vshControl *ctl,
|
||||
const vshCmd *cmd,
|
||||
unsigned int flags);
|
||||
#endif /* LIBVIRT_VIRT_ADMIN_COMPLETER_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRT_ADMIN_H
|
||||
# define LIBVIRT_VIRT_ADMIN_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
#include "vsh.h"
|
||||
@ -40,5 +39,3 @@ struct _vshAdmControl {
|
||||
virAdmConnectPtr conn; /* connection to a daemon's admin server */
|
||||
bool wantReconnect;
|
||||
};
|
||||
|
||||
#endif /* LIBVIRT_VIRT_ADMIN_H */
|
||||
|
@ -19,9 +19,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRT_HOST_VALIDATE_BHYVE_H
|
||||
# define LIBVIRT_VIRT_HOST_VALIDATE_BHYVE_H
|
||||
#pragma once
|
||||
|
||||
int virHostValidateBhyve(void);
|
||||
|
||||
#endif /* LIBVIRT_VIRT_HOST_VALIDATE_BHYVE_H */
|
||||
|
@ -19,8 +19,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRT_HOST_VALIDATE_COMMON_H
|
||||
# define LIBVIRT_VIRT_HOST_VALIDATE_COMMON_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
#include "virutil.h"
|
||||
@ -84,5 +83,3 @@ int virHostValidateCGroupControllers(const char *hvname,
|
||||
|
||||
int virHostValidateIOMMU(const char *hvname,
|
||||
virHostValidateLevel level);
|
||||
|
||||
#endif /* LIBVIRT_VIRT_HOST_VALIDATE_COMMON_H */
|
||||
|
@ -19,9 +19,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRT_HOST_VALIDATE_LXC_H
|
||||
# define LIBVIRT_VIRT_HOST_VALIDATE_LXC_H
|
||||
#pragma once
|
||||
|
||||
int virHostValidateLXC(void);
|
||||
|
||||
#endif /* LIBVIRT_VIRT_HOST_VALIDATE_LXC_H */
|
||||
|
@ -19,9 +19,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRT_HOST_VALIDATE_QEMU_H
|
||||
# define LIBVIRT_VIRT_HOST_VALIDATE_QEMU_H
|
||||
#pragma once
|
||||
|
||||
int virHostValidateQEMU(void);
|
||||
|
||||
#endif /* LIBVIRT_VIRT_HOST_VALIDATE_QEMU_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VSH_TABLE_H
|
||||
# define LIBVIRT_VSH_TABLE_H
|
||||
#pragma once
|
||||
|
||||
#include "vsh.h"
|
||||
|
||||
@ -33,5 +32,3 @@ vshTablePtr vshTableNew(const char *format, ...);
|
||||
int vshTableRowAppend(vshTablePtr table, const char *arg, ...);
|
||||
void vshTablePrintToStdout(vshTablePtr table, vshControl *ctl);
|
||||
char *vshTablePrintToString(vshTablePtr table, bool header);
|
||||
|
||||
#endif /* LIBVIRT_VSH_TABLE_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VSH_H
|
||||
# define LIBVIRT_VSH_H
|
||||
#pragma once
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <unistd.h>
|
||||
@ -582,5 +581,3 @@ char *_vshStrdup(vshControl *ctl, const char *s, const char *filename,
|
||||
*/
|
||||
#define VSH_REQUIRE_OPTION_VAR(VARNAME1, VARNAME2) \
|
||||
VSH_REQUIRE_OPTION_EXPR(#VARNAME1, VARNAME1, #VARNAME2, VARNAME2)
|
||||
|
||||
#endif /* LIBVIRT_VSH_H */
|
||||
|
@ -17,10 +17,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_PACKET_LIBVIRT_H
|
||||
# define LIBVIRT_PACKET_LIBVIRT_H
|
||||
#pragma once
|
||||
|
||||
void proto_register_libvirt(void);
|
||||
void proto_reg_handoff_libvirt(void);
|
||||
|
||||
#endif /* LIBVIRT_PACKET_LIBVIRT_H */
|
||||
|
Loading…
Reference in New Issue
Block a user