Mon, 20 Aug 2012 16:07:55 +0200
Gadu-Gadu: public directory search with gg10.5 api
#ifndef _GGP_PUBDIR_PRPL_H #define _GGP_PUBDIR_PRPL_H #include <internal.h> #include <libgadu.h> typedef enum { GGP_PUBDIR_GENDER_UNSPECIFIED, GGP_PUBDIR_GENDER_FEMALE, GGP_PUBDIR_GENDER_MALE, } ggp_pubdir_gender; typedef struct { uin_t uin; gchar *label; ggp_pubdir_gender gender; gchar *city; time_t birth; unsigned int age; } ggp_pubdir_record; typedef struct _ggp_pubdir_search_form ggp_pubdir_search_form; typedef void (*ggp_pubdir_request_cb)(PurpleConnection *gc, int records_count, const ggp_pubdir_record *records, int next_offset, void *user_data); void ggp_pubdir_get_info(PurpleConnection *gc, uin_t uin, ggp_pubdir_request_cb cb, void *user_data); void ggp_pubdir_get_info_prpl(PurpleConnection *gc, const char *name); void ggp_pubdir_request_buddy_alias(PurpleConnection *gc, PurpleBuddy *buddy); void ggp_pubdir_search(PurpleConnection *gc, const ggp_pubdir_search_form *form); #endif /* _GGP_PUBDIR_PRPL_H */