00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef DBUS_GLIB_UTILS_H
00025 #define DBUS_GLIB_UTILS_H
00026
00027 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00028
00029 #include <dbus/dbus.h>
00030 #include <glib-object.h>
00031
00032 G_BEGIN_DECLS
00033
00034 char **_dbus_gutils_split_path (const char *path);
00035
00036 char *_dbus_gutils_wincaps_to_uscore (const char *uscore);
00037
00038
00039
00040
00041
00042 #define _DBUS_POINTER_SHIFT(p) ((void*) (((char*)p) + sizeof (void*)))
00043 #define _DBUS_POINTER_UNSHIFT(p) ((void*) (((char*)p) - sizeof (void*)))
00044
00045 #define DBUS_CONNECTION_FROM_G_CONNECTION(x) ((DBusConnection*) _DBUS_POINTER_UNSHIFT(x))
00046 #define DBUS_MESSAGE_FROM_G_MESSAGE(x) ((DBusMessage*) _DBUS_POINTER_UNSHIFT(x))
00047 #define DBUS_PENDING_CALL_FROM_G_PENDING_CALL(x) ((DBusPendingCall*) _DBUS_POINTER_UNSHIFT(x))
00048
00049 #define DBUS_G_CONNECTION_FROM_CONNECTION(x) ((DBusGConnection*) _DBUS_POINTER_SHIFT(x))
00050 #define DBUS_G_MESSAGE_FROM_MESSAGE(x) ((DBusGMessage*) _DBUS_POINTER_SHIFT(x))
00051 #define DBUS_G_PENDING_CALL_FROM_PENDING_CALL(x) ((DBusGPendingCall*) _DBUS_POINTER_SHIFT(x))
00052
00053 G_END_DECLS
00054
00055 #endif
00056
00057 #endif