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

src/logging: 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>
上级 250721af
......@@ -18,11 +18,10 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_LOG_DAEMON_H
# define LIBVIRT_LOG_DAEMON_H
#pragma once
# include "virthread.h"
# include "log_handler.h"
#include "virthread.h"
#include "log_handler.h"
typedef struct _virLogDaemon virLogDaemon;
typedef virLogDaemon *virLogDaemonPtr;
......@@ -39,5 +38,3 @@ struct _virLogDaemonClient {
extern virLogDaemonPtr logDaemon;
virLogHandlerPtr virLogDaemonGetHandler(virLogDaemonPtr dmn);
#endif /* LIBVIRT_LOG_DAEMON_H */
......@@ -19,10 +19,9 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_LOG_DAEMON_CONFIG_H
# define LIBVIRT_LOG_DAEMON_CONFIG_H
#pragma once
# include "internal.h"
#include "internal.h"
typedef struct _virLogDaemonConfig virLogDaemonConfig;
typedef virLogDaemonConfig *virLogDaemonConfigPtr;
......@@ -45,5 +44,3 @@ void virLogDaemonConfigFree(virLogDaemonConfigPtr data);
int virLogDaemonConfigLoadFile(virLogDaemonConfigPtr data,
const char *filename,
bool allow_missing);
#endif /* LIBVIRT_LOG_DAEMON_CONFIG_H */
......@@ -18,12 +18,9 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_LOG_DAEMON_DISPATCH_H
# define LIBVIRT_LOG_DAEMON_DISPATCH_H
#pragma once
# include "rpc/virnetserverprogram.h"
#include "rpc/virnetserverprogram.h"
extern virNetServerProgramProc virLogManagerProtocolProcs[];
extern size_t virLogManagerProtocolNProcs;
#endif /* LIBVIRT_LOG_DAEMON_DISPATCH_H */
......@@ -18,11 +18,10 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_LOG_HANDLER_H
# define LIBVIRT_LOG_HANDLER_H
#pragma once
# include "internal.h"
# include "virjson.h"
#include "internal.h"
#include "virjson.h"
typedef struct _virLogHandler virLogHandler;
typedef virLogHandler *virLogHandlerPtr;
......@@ -76,5 +75,3 @@ int virLogHandlerDomainAppendLogFile(virLogHandlerPtr handler,
unsigned int flags);
virJSONValuePtr virLogHandlerPreExecRestart(virLogHandlerPtr handler);
#endif /* LIBVIRT_LOG_HANDLER_H */
......@@ -18,12 +18,11 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_LOG_MANAGER_H
# define LIBVIRT_LOG_MANAGER_H
#pragma once
# include "internal.h"
#include "internal.h"
# include "logging/log_protocol.h"
#include "logging/log_protocol.h"
typedef struct _virLogManager virLogManager;
typedef virLogManager *virLogManagerPtr;
......@@ -61,5 +60,3 @@ int virLogManagerDomainAppendMessage(virLogManagerPtr mgr,
const char *path,
const char *message,
unsigned int flags);
#endif /* LIBVIRT_LOG_MANAGER_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册