| 107 GGPInfo *accdata = purple_connection_get_protocol_data(gc); |
107 GGPInfo *accdata = purple_connection_get_protocol_data(gc); |
| 108 ggp_edisc_session_data *sdata = g_new0(ggp_edisc_session_data, 1); |
108 ggp_edisc_session_data *sdata = g_new0(ggp_edisc_session_data, 1); |
| 109 |
109 |
| 110 accdata->edisc_data = sdata; |
110 accdata->edisc_data = sdata; |
| 111 |
111 |
| 112 sdata->session = soup_session_new_with_options( |
112 sdata->session = soup_session_new_with_options("proxy-resolver", resolver, |
| 113 SOUP_SESSION_PROXY_RESOLVER, resolver, |
113 NULL); |
| 114 SOUP_SESSION_ADD_FEATURE_BY_TYPE, SOUP_TYPE_COOKIE_JAR, NULL); |
114 soup_session_add_feature_by_type(sdata->session, SOUP_TYPE_COOKIE_JAR); |
| 115 sdata->xfers_initialized = g_hash_table_new(g_str_hash, g_str_equal); |
115 sdata->xfers_initialized = g_hash_table_new(g_str_hash, g_str_equal); |
| 116 sdata->xfers_history = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); |
116 sdata->xfers_history = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); |
| 117 } |
117 } |
| 118 |
118 |
| 119 void ggp_edisc_cleanup(PurpleConnection *gc) |
119 void ggp_edisc_cleanup(PurpleConnection *gc) |