mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
src/logging: 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
250721afbb
commit
64ac2b7786
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user