aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/msn.h
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-04-12 12:27:31 -0300
committerdequis <dx@dxzone.com.ar>2015-04-12 12:27:31 -0300
commit951aefdab1f09f35f2deef8c490b590313c94192 (patch)
treea1cd6d8934c383f75a4e1b64e3c93bf5d7ef96fa /protocols/msn/msn.h
parent5fbf8152c7e760ca2c4140f54ba56c62bcd2571b (diff)
msn/gw.c: ensure that the im_connection still exists in callbacks
Diffstat (limited to 'protocols/msn/msn.h')
-rw-r--r--protocols/msn/msn.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/msn/msn.h b/protocols/msn/msn.h
index ba7e4247..75dc2b7e 100644
--- a/protocols/msn/msn.h
+++ b/protocols/msn/msn.h
@@ -136,7 +136,9 @@ struct msn_gw {
int poll_timeout;
b_event_handler callback;
- gpointer data;
+
+ struct im_connection *ic;
+ struct msn_data *md;
gboolean open;
gboolean waiting;
@@ -264,7 +266,7 @@ const struct msn_away_state *msn_away_state_by_name(char *name);
const struct msn_status_code *msn_status_by_number(int number);
/* gw.c */
-struct msn_gw *msn_gw_new(struct msn_data *md);
+struct msn_gw *msn_gw_new(struct im_connection *ic);
void msn_gw_free(struct msn_gw *gw);
void msn_gw_open(struct msn_gw *gw);
ssize_t msn_gw_read(struct msn_gw *gw, char **buf);