Mercurial > pidgin.yaz
diff libpurple/protocols/gg/gg-utils.c @ 32827:4a34689eeb33 default tip
merged from im.pidgin.pidgin
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 19 Nov 2011 14:42:54 +0900 |
parents | 03a55a2997d1 |
children |
line wrap: on
line diff
--- a/libpurple/protocols/gg/gg-utils.c Mon Sep 26 14:57:21 2011 +0900 +++ b/libpurple/protocols/gg/gg-utils.c Sat Nov 19 14:42:54 2011 +0900 @@ -143,5 +143,18 @@ msg ? "message" : NULL, msg, NULL); } +guint ggp_http_input_add(struct gg_http *http_req, PurpleInputFunction func, + gpointer user_data) +{ + PurpleInputCondition cond = 0; + int check = http_req->check; + + if (check & GG_CHECK_READ) + cond |= PURPLE_INPUT_READ; + if (check & GG_CHECK_WRITE) + cond |= PURPLE_INPUT_WRITE; + + return purple_input_add(http_req->fd, cond, func, user_data); +} /* vim: set ts=8 sts=0 sw=8 noet: */