diff -Nuard gg2-2.2.2.orig/src/plugins/dbus/libofi.h gg2-2.2.2/src/plugins/dbus/libofi.h --- gg2-2.2.2.orig/src/plugins/dbus/libofi.h 1970-01-01 01:00:00.000000000 +0100 +++ gg2-2.2.2/src/plugins/dbus/libofi.h 2004-11-03 00:24:56.000000000 +0100 @@ -0,0 +1,45 @@ +/* + ORG.FREEDESKTOP.IM interface common header file. + licence: BSD + Authors : + Marcin Krzyżanowski + Igor Popik + + You can freely distribute it and use in any application +*/ + +#ifndef LIBOFI_H +#define LIBOFI_H 1 + +#ifdef HAVE_CONFIG_H +# include +#endif + +/* define this one by yourself */ +/* #define DBUS_ORG_FREEDESKTOP_IM_SERVICE "org.freedesktop.im.SampleApplicationService" */ + +/* const */ + +#define DBUS_ORG_FREEDESKTOP_IM_INTERFACE "org.freedesktop.im" +#define DBUS_ORG_FREEDESKTOP_IM_OBJECT "/org/freedesktop/im" + +/* methods */ +#define DBUS_ORG_FREEDESKTOP_IM_GET_PRESENCE "getPresence" +typedef enum +{ + OFI_IM_PRESENCE_NOT_FOUND = 1, + OFI_IM_PRESENCE_AVAILABLE, + OFI_IM_PRESENCE_AWAY, + OFI_IM_PRESENCE_OFFLINE +} ofiPresenceEnum; + +#define DBUS_ORG_FREEDESKTOP_IM_GET_PROTOCOLS "getProtocols" +#define DBUS_ORG_FREEDESKTOP_IM_OPEN_CHAT "openChat" + + + +char ** +org_freedesktop_im_getServices(DBusConnection *bus); + +#endif + diff -Nuard gg2-2.2.2.orig/src/plugins/dbus/Makefile.am gg2-2.2.2/src/plugins/dbus/Makefile.am --- gg2-2.2.2.orig/src/plugins/dbus/Makefile.am 2004-11-05 16:24:16.168717440 +0100 +++ gg2-2.2.2/src/plugins/dbus/Makefile.am 2004-11-05 16:21:17.000000000 +0100 @@ -4,7 +4,8 @@ noinst_LIBRARIES = libdbus_plugin_la_SOURCES = dbus_plugin.c \ - dbus_plugin.h + dbus_plugin.h \ + libofi.h libdbus_plugin_la_CFLAGS = $(DBUS_CFLAGS) libdbus_plugin_la_LIBADD = $(DBUS_LIBS) $(top_builddir)/lib/libgg2_core.la