mirror of https://gitee.com/openkylin/libvirt.git
util: command: 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
c664bbff2a
commit
bd4ed5bd99
|
@ -19,12 +19,11 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRCOMMAND_H
|
||||
# define LIBVIRT_VIRCOMMAND_H
|
||||
#pragma once
|
||||
|
||||
# include "internal.h"
|
||||
# include "virbuffer.h"
|
||||
# include "virautoclean.h"
|
||||
#include "internal.h"
|
||||
#include "virbuffer.h"
|
||||
#include "virautoclean.h"
|
||||
|
||||
typedef struct _virCommand virCommand;
|
||||
typedef virCommand *virCommandPtr;
|
||||
|
@ -222,5 +221,3 @@ int virCommandRunNul(virCommandPtr cmd,
|
|||
void *data);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virCommand, virCommandFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRCOMMAND_H */
|
||||
|
|
|
@ -23,10 +23,9 @@
|
|||
# error "vircommandpriv.h may only be included by vircommand.c or test suites"
|
||||
#endif /* LIBVIRT_VIRCOMMANDPRIV_H_ALLOW */
|
||||
|
||||
#ifndef LIBVIRT_VIRCOMMANDPRIV_H
|
||||
# define LIBVIRT_VIRCOMMANDPRIV_H
|
||||
#pragma once
|
||||
|
||||
# include "vircommand.h"
|
||||
#include "vircommand.h"
|
||||
|
||||
typedef void (*virCommandDryRunCallback)(const char *const*args,
|
||||
const char *const*env,
|
||||
|
@ -39,5 +38,3 @@ typedef void (*virCommandDryRunCallback)(const char *const*args,
|
|||
void virCommandSetDryRun(virBufferPtr buf,
|
||||
virCommandDryRunCallback cb,
|
||||
void *opaque);
|
||||
|
||||
#endif /* LIBVIRT_VIRCOMMANDPRIV_H */
|
||||
|
|
Loading…
Reference in New Issue