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:

committed by
Guillaume Desmottes

parent
36a624aafd
commit
1938a5bcb0
@ -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__ */
|
||||
|
Reference in New Issue
Block a user