comparison 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
comparison
equal deleted inserted replaced
32692:0f94ec89f0bc 32827:4a34689eeb33
141 purple_prpl_got_user_status(account, purple_account_get_username(account), 141 purple_prpl_got_user_status(account, purple_account_get_username(account),
142 status_id, 142 status_id,
143 msg ? "message" : NULL, msg, NULL); 143 msg ? "message" : NULL, msg, NULL);
144 } 144 }
145 145
146 guint ggp_http_input_add(struct gg_http *http_req, PurpleInputFunction func,
147 gpointer user_data)
148 {
149 PurpleInputCondition cond = 0;
150 int check = http_req->check;
151
152 if (check & GG_CHECK_READ)
153 cond |= PURPLE_INPUT_READ;
154 if (check & GG_CHECK_WRITE)
155 cond |= PURPLE_INPUT_WRITE;
156
157 return purple_input_add(http_req->fd, cond, func, user_data);
158 }
146 159
147 /* vim: set ts=8 sts=0 sw=8 noet: */ 160 /* vim: set ts=8 sts=0 sw=8 noet: */