提交 bd4ed5bd 编写于 作者: J Jonathon Jongsma 提交者: Ján Tomko

util: command: use #pragma once in headers

Signed-off-by: NJonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
Signed-off-by: NJán Tomko <jtomko@redhat.com>
上级 c664bbff
...@@ -19,12 +19,11 @@ ...@@ -19,12 +19,11 @@
* *
*/ */
#ifndef LIBVIRT_VIRCOMMAND_H #pragma once
# define LIBVIRT_VIRCOMMAND_H
# include "internal.h" #include "internal.h"
# include "virbuffer.h" #include "virbuffer.h"
# include "virautoclean.h" #include "virautoclean.h"
typedef struct _virCommand virCommand; typedef struct _virCommand virCommand;
typedef virCommand *virCommandPtr; typedef virCommand *virCommandPtr;
...@@ -222,5 +221,3 @@ int virCommandRunNul(virCommandPtr cmd, ...@@ -222,5 +221,3 @@ int virCommandRunNul(virCommandPtr cmd,
void *data); void *data);
VIR_DEFINE_AUTOPTR_FUNC(virCommand, virCommandFree); VIR_DEFINE_AUTOPTR_FUNC(virCommand, virCommandFree);
#endif /* LIBVIRT_VIRCOMMAND_H */
...@@ -23,10 +23,9 @@ ...@@ -23,10 +23,9 @@
# error "vircommandpriv.h may only be included by vircommand.c or test suites" # error "vircommandpriv.h may only be included by vircommand.c or test suites"
#endif /* LIBVIRT_VIRCOMMANDPRIV_H_ALLOW */ #endif /* LIBVIRT_VIRCOMMANDPRIV_H_ALLOW */
#ifndef LIBVIRT_VIRCOMMANDPRIV_H #pragma once
# define LIBVIRT_VIRCOMMANDPRIV_H
# include "vircommand.h" #include "vircommand.h"
typedef void (*virCommandDryRunCallback)(const char *const*args, typedef void (*virCommandDryRunCallback)(const char *const*args,
const char *const*env, const char *const*env,
...@@ -39,5 +38,3 @@ typedef void (*virCommandDryRunCallback)(const char *const*args, ...@@ -39,5 +38,3 @@ typedef void (*virCommandDryRunCallback)(const char *const*args,
void virCommandSetDryRun(virBufferPtr buf, void virCommandSetDryRun(virBufferPtr buf,
virCommandDryRunCallback cb, virCommandDryRunCallback cb,
void *opaque); void *opaque);
#endif /* LIBVIRT_VIRCOMMANDPRIV_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册