#include <dbus/dbus.h>
#include <dbus/dbus-string.h>
#include <dbus/dbus-mainloop.h>
+#include <dbus/dbus-pipe.h>
typedef struct BusActivation BusActivation;
typedef struct BusConnections BusConnections;
# define _DBUS_GNUC_EXTENSION
#endif
+#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
+#define _DBUS_GNUC_PRINTF( format_idx, arg_idx ) \
+ __attribute__((__format__ (__printf__, format_idx, arg_idx)))
+#define _DBUS_GNUC_NORETURN \
+ __attribute__((__noreturn__))
+#else /* !__GNUC__ */
+#define _DBUS_GNUC_PRINTF( format_idx, arg_idx )
+#define _DBUS_GNUC_NORETURN
+#endif /* !__GNUC__ */
+
+/** @def _DBUS_GNUC_PRINTF
+ * used to tell gcc about printf format strings
+ */
+/** @def _DBUS_GNUC_NORETURN
+ * used to tell gcc about functions that never return, such as _dbus_abort()
+ */
+
+
/* Normally docs are in .c files, but there isn't a .c file for this. */
/**
* @defgroup DBusMacros Utility macros
#include "dbus-string.h"
#include "dbus-internals.h"
#include "dbus-pipe.h"
+#include "dbus-sysdeps-unix.h"
-#include <io.h>
+#include <errno.h>
/**
* write data to a pipe.
#include <config.h>
-#include <dbus/dbus-memory.h>
+#include <dbus/dbus-macros.h>
#include <dbus/dbus-types.h>
-#include <dbus/dbus-sysdeps.h>
+#include <dbus/dbus-memory.h>
#include <stdarg.h>
/**
* DBusString object
*/
+
+typedef struct DBusString DBusString;
+
struct DBusString
{
const void *dummy1; /**< placeholder */
/** @} */
#include <dbus/dbus-errors.h>
+#include <dbus/dbus-string.h>
#include <dbus/dbus-pipe.h>
/* this is perhaps bogus, but strcmp() etc. are faster if we use the
/* Forward declarations */
-/** An opaque string type */
-typedef struct DBusString DBusString;
/** An opaque list type */
typedef struct DBusList DBusList;