mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
util: dbus: 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
e7bacd3db9
commit
c664bbff2a
@ -19,8 +19,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_VIRDBUS_H
|
#pragma once
|
||||||
# define LIBVIRT_VIRDBUS_H
|
|
||||||
|
|
||||||
#ifdef WITH_DBUS
|
#ifdef WITH_DBUS
|
||||||
# undef interface /* Work around namespace pollution in mingw's rpc.h */
|
# undef interface /* Work around namespace pollution in mingw's rpc.h */
|
||||||
@ -75,4 +74,3 @@ int virDBusIsServiceEnabled(const char *name);
|
|||||||
int virDBusIsServiceRegistered(const char *name);
|
int virDBusIsServiceRegistered(const char *name);
|
||||||
|
|
||||||
bool virDBusErrorIsUnknownMethod(virErrorPtr err);
|
bool virDBusErrorIsUnknownMethod(virErrorPtr err);
|
||||||
#endif /* LIBVIRT_VIRDBUS_H */
|
|
||||||
|
@ -23,8 +23,7 @@
|
|||||||
# error "virdbuspriv.h may only be included by virdbus.c or test suites"
|
# error "virdbuspriv.h may only be included by virdbus.c or test suites"
|
||||||
#endif /* LIBVIRT_VIRDBUSPRIV_H_ALLOW */
|
#endif /* LIBVIRT_VIRDBUSPRIV_H_ALLOW */
|
||||||
|
|
||||||
#ifndef LIBVIRT_VIRDBUSPRIV_H
|
#pragma once
|
||||||
# define LIBVIRT_VIRDBUSPRIV_H
|
|
||||||
|
|
||||||
#include "virdbus.h"
|
#include "virdbus.h"
|
||||||
|
|
||||||
@ -55,5 +54,3 @@ int virDBusMessageDecodeArgs(DBusMessage* msg,
|
|||||||
int virDBusMessageEncode(DBusMessage* msg,
|
int virDBusMessageEncode(DBusMessage* msg,
|
||||||
const char *types,
|
const char *types,
|
||||||
...);
|
...);
|
||||||
|
|
||||||
#endif /* LIBVIRT_VIRDBUSPRIV_H */
|
|
||||||
|
Loading…
Reference in New Issue
Block a user