*
*/
-#ifndef LIBVIRT_VIRDBUS_H
-# define LIBVIRT_VIRDBUS_H
+#pragma once
-# ifdef WITH_DBUS
-# undef interface /* Work around namespace pollution in mingw's rpc.h */
-# include <dbus/dbus.h>
-# else
-# define DBusConnection void
-# define DBusMessage void
-# endif
-# include "internal.h"
+#ifdef WITH_DBUS
+# undef interface /* Work around namespace pollution in mingw's rpc.h */
+# include <dbus/dbus.h>
+#else
+# define DBusConnection void
+# define DBusMessage void
+#endif
+#include "internal.h"
-# include <stdarg.h>
+#include <stdarg.h>
void virDBusSetSharedBus(bool shared);
int virDBusIsServiceRegistered(const char *name);
bool virDBusErrorIsUnknownMethod(virErrorPtr err);
-#endif /* LIBVIRT_VIRDBUS_H */
# error "virdbuspriv.h may only be included by virdbus.c or test suites"
#endif /* LIBVIRT_VIRDBUSPRIV_H_ALLOW */
-#ifndef LIBVIRT_VIRDBUSPRIV_H
-# define LIBVIRT_VIRDBUSPRIV_H
+#pragma once
-# include "virdbus.h"
+#include "virdbus.h"
-# if defined(WITH_DBUS) && !HAVE_DBUSBASICVALUE
+#if defined(WITH_DBUS) && !HAVE_DBUSBASICVALUE
/* Copied (and simplified) from dbus 1.6.12, for use with older dbus headers */
typedef union
{
double dbl; /**< as double */
unsigned char byt; /**< as byte */
} DBusBasicValue;
-# endif
+#endif
int virDBusMessageEncodeArgs(DBusMessage* msg,
const char *types,
int virDBusMessageEncode(DBusMessage* msg,
const char *types,
...);
-
-#endif /* LIBVIRT_VIRDBUSPRIV_H */