1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Frameworks/libpurple.framework/Versions/0.6.2/Headers/dbus-maybe.h Fri Aug 21 13:25:11 2009 -0700
1.3 @@ -0,0 +1,35 @@
1.4 +/* This file contains macros that wrap calls to the purple dbus module.
1.5 + These macros call the appropriate functions if the build includes
1.6 + dbus support and do nothing otherwise. See "dbus-server.h" for
1.7 + documentation. */
1.8 +
1.9 +#ifndef _PURPLE_DBUS_MAYBE_H_
1.10 +#define _PURPLE_DBUS_MAYBE_H_
1.11 +
1.12 +#ifdef HAVE_DBUS
1.13 +
1.14 +#ifndef DBUS_API_SUBJECT_TO_CHANGE
1.15 +#define DBUS_API_SUBJECT_TO_CHANGE
1.16 +#endif
1.17 +
1.18 +#include "dbus-server.h"
1.19 +
1.20 +/* this provides a type check */
1.21 +#define PURPLE_DBUS_REGISTER_POINTER(ptr, type) { \
1.22 + type *typed_ptr = ptr; \
1.23 + purple_dbus_register_pointer(typed_ptr, PURPLE_DBUS_TYPE(type)); \
1.24 +}
1.25 +#define PURPLE_DBUS_UNREGISTER_POINTER(ptr) purple_dbus_unregister_pointer(ptr)
1.26 +
1.27 +#else /* !HAVE_DBUS */
1.28 +
1.29 +#define PURPLE_DBUS_REGISTER_POINTER(ptr, type) { \
1.30 + if (ptr) {} \
1.31 +}
1.32 +
1.33 +#define PURPLE_DBUS_UNREGISTER_POINTER(ptr)
1.34 +#define DBUS_EXPORT
1.35 +
1.36 +#endif /* HAVE_DBUS */
1.37 +
1.38 +#endif