diff options
author | eionrobb <eionrobb@8ca6c67d-4297-256d-f884-781da6d5760b> | 2010-09-27 08:31:55 +0400 |
---|---|---|
committer | eionrobb <eionrobb@8ca6c67d-4297-256d-f884-781da6d5760b> | 2010-09-27 08:31:55 +0400 |
commit | e495efe1f2f5635c959da63e647d4c80b60eed34 (patch) | |
tree | 0df6c8cfdea7d801f68e2714fc3a0771b0f54ba8 /libsteamworks.h | |
parent | ae1ef4fcabc35f8162129ce2c66e52a081c0da3a (diff) |
Add prelim support for chat rooms and better game name detection.
Diffstat (limited to 'libsteamworks.h')
-rwxr-xr-x | libsteamworks.h | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/libsteamworks.h b/libsteamworks.h index 12b0868..de9db23 100755 --- a/libsteamworks.h +++ b/libsteamworks.h @@ -29,20 +29,32 @@ extern "C" { void steamworks_set_status(PurpleAccount *account, PurpleStatus *status); void steamworks_add_buddy(PurpleConnection *, PurpleBuddy *buddy, PurpleGroup *group); void steamworks_remove_buddy(PurpleConnection *, PurpleBuddy *buddy, PurpleGroup *group); + void steamworks_alias_buddy(PurpleConnection *, const char *who, const char *alias); + void steamworks_ignore_buddy(PurpleConnection *, const char *name); + void steamworks_unignore_buddy(PurpleConnection *, const char *name); + int steamworks_chat_send(PurpleConnection *, int id, const char *message, PurpleMessageFlags flags); + GList *steamworks_chat_info(PurpleConnection *); + GHashTable *steamworks_chat_defaults(PurpleConnection *, const char *chat_name); + void steamworks_reject_chat(PurpleConnection *, GHashTable *components); + gchar *steamworks_get_chat_name(GHashTable *components); + void steamworks_chat_invite(PurpleConnection *, int id, const char *message, const char *who); + void steamworks_chat_leave(PurpleConnection *, int id); + void steamworks_join_chat(PurpleConnection *, GHashTable *components); + void steamworks_tooltip_text(PurpleBuddy *buddy, PurpleNotifyUserInfo *user_info, gboolean full); static PurplePluginProtocolInfo prpl_info = { - (PurpleProtocolOptions) (0),// options + (PurpleProtocolOptions) (OPT_PROTO_CHAT_TOPIC),// options NULL, // user_splits NULL, // protocol_options {"png,jpeg",0,0,64,64,0,PURPLE_ICON_SCALE_DISPLAY},// icon_spec steamworks_list_icon, // list_icon NULL, // list_emblem steamworks_status_text, // status_text - NULL, // tooltip_text + steamworks_tooltip_text, // tooltip_text steamworks_status_types, // status_types NULL, // blist_node_menu - NULL, // chat_info - NULL, // chat_info_defaults + steamworks_chat_info, // chat_info + steamworks_chat_defaults, // chat_info_defaults steamworks_login, // login steamworks_close, // close steamworks_send_im, // send_im @@ -57,22 +69,22 @@ extern "C" { steamworks_remove_buddy, // remove_buddy NULL, // remove_buddies NULL, // add_permit - NULL, // add_deny + steamworks_ignore_buddy, // add_deny NULL, // rem_permit - NULL, // rem_deny + steamworks_unignore_buddy,// rem_deny NULL, // set_permit_deny - NULL, // join_chat - NULL, // reject_chat - NULL, // get_chat_name - NULL, // chat_invite - NULL, // chat_leave + steamworks_join_chat, // join_chat + steamworks_reject_chat, // reject_chat + steamworks_get_chat_name, // get_chat_name + steamworks_chat_invite, // chat_invite + steamworks_chat_leave, // chat_leave NULL, // chat_whisper - NULL, // chat_send + steamworks_chat_send, // chat_send NULL, // keepalive NULL, // register_user NULL, // get_cb_info NULL, // get_cb_away - NULL, // alias_buddy + steamworks_alias_buddy, // alias_buddy NULL, // group_buddy NULL, // rename_group NULL, // buddy_free |