diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-11-20 10:26:39 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-11-20 10:26:39 +0000 |
commit | 16aee3fa4491b3b3444b664e3ea753271140b225 (patch) | |
tree | c6e5fbc3d3fe3b91f5a495595e7d86801d426972 /telepathy-glib/dbus.h | |
parent | 0a6e78d2b4b1deb4532689a800272d3a212eb2e3 (diff) | |
download | telepathy-glib-16aee3fa4491b3b3444b664e3ea753271140b225.tar.gz |
Add TpDBusDaemon, a TpProxy for the D-Bus daemon
20071120102639-53eee-94eff41beaca31fc57801fb8e260d459cdce1aae.gz
Diffstat (limited to 'telepathy-glib/dbus.h')
-rw-r--r-- | telepathy-glib/dbus.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/telepathy-glib/dbus.h b/telepathy-glib/dbus.h index b979397af..cec23f673 100644 --- a/telepathy-glib/dbus.h +++ b/telepathy-glib/dbus.h @@ -21,8 +21,7 @@ #ifndef __TELEPATHY_DBUS_H__ #define __TELEPATHY_DBUS_H__ -#include <glib.h> -#include <dbus/dbus-glib.h> +#include <telepathy-glib/proxy.h> G_BEGIN_DECLS @@ -30,7 +29,31 @@ void tp_dbus_g_method_return_not_implemented (DBusGMethodInvocation *context); DBusGConnection * tp_get_bus (void); DBusGProxy * tp_get_bus_proxy (void); +typedef struct _TpDBusDaemon TpDBusDaemon; +typedef struct _TpDBusDaemonClass TpDBusDaemonClass; +GType tp_dbus_daemon_get_type (void); + +#define TP_TYPE_DBUS_DAEMON \ + (tp_dbus_daemon_get_type ()) +#define TP_DBUS_DAEMON(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), TP_TYPE_DBUS_DAEMON, \ + TpDBusDaemon)) +#define TP_DBUS_DAEMON_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), TP_TYPE_DBUS_DAEMON, \ + TpDBusDaemonClass)) +#define TP_IS_DBUS_DAEMON(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), TP_TYPE_DBUS_DAEMON)) +#define TP_IS_DBUS_DAEMON_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), TP_TYPE_DBUS_DAEMON)) +#define TP_DBUS_DAEMON_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), TP_TYPE_DBUS_DAEMON, \ + TpDBusDaemonClass)) + +TpDBusDaemon *tp_dbus_daemon_new (DBusGConnection *connection); + G_END_DECLS +#include <telepathy-glib/_gen/tp-cli-dbus-daemon.h> + #endif /* __TELEPATHY_DBUS_H__ */ |