Wrap tp_connection_get_contacts_by_handle

GArray support is broken in Gjs. This commit wraps
tp_connection_get_contacts_by_handle so we can retrieve TpContact objects.
This commit is contained in:
Morten Mjelva
2011-02-07 16:21:30 +01:00
committed by Guillaume Desmottes
parent 36a624aafd
commit 1938a5bcb0
2 changed files with 73 additions and 0 deletions

View File

@ -8,6 +8,8 @@
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gtk/gtk.h>
#include <telepathy-glib/telepathy-glib.h>
G_BEGIN_DECLS
typedef struct _ShellGlobal ShellGlobal;
@ -142,6 +144,17 @@ void shell_global_play_theme_sound (ShellGlobal *global,
void shell_global_init_xdnd (ShellGlobal *global);
typedef void (*ShellGetTpContactCb) (TpConnection *connection,
GList *contacts,
TpHandle *failed);
void shell_get_tp_contacts (TpConnection *self,
guint n_handles,
const TpHandle *handles,
guint n_features,
const TpContactFeature *features,
ShellGetTpContactCb callback);
G_END_DECLS
#endif /* __SHELL_GLOBAL_H__ */