[Phonehome-commits] r75 - trunk/client/src
pamadio at garage.maemo.org
pamadio at garage.maemo.org
Sun Oct 19 13:43:23 EEST 2008
Author: pamadio
Date: 2008-10-19 13:43:22 +0300 (Sun, 19 Oct 2008)
New Revision: 75
Modified:
trunk/client/src/dsk_mgr.c
Log:
proxy on all xmlrpc calls
Modified: trunk/client/src/dsk_mgr.c
===================================================================
--- trunk/client/src/dsk_mgr.c 2008-10-19 09:57:16 UTC (rev 74)
+++ trunk/client/src/dsk_mgr.c 2008-10-19 10:43:22 UTC (rev 75)
@@ -410,7 +410,16 @@
char *uri = xmlrpc_server;
//soup_session=soup_session_sync_new_with_options(SOUP_SESSION_MAX_CONNS,5);
- soup_session=soup_session_sync_new();
+ //soup_session=soup_session_sync_new();
+ if(proxy_mode==CON_IC_PROXY_MODE_NONE) {
+ soup_session=soup_session_sync_new();
+ } else if (proxy_mode==CON_IC_PROXY_MODE_MANUAL){
+ g_print("using a manual proxy:%s\n",soup_proxy_uri_string);
+ soup_session=soup_session_sync_new_with_options(SOUP_SESSION_PROXY_URI,soup_proxy_uri,NULL);
+ } else {
+ g_print("Automatic proxy mode not supported\n");
+ return FALSE;
+ }
while (new_head != NULL)
{
@@ -755,7 +764,16 @@
guint rpc_status;
SoupXmlrpcValue *value=NULL;
char *uri = xmlrpc_server;
- soup_session=soup_session_sync_new();
+ //soup_session=soup_session_sync_new();
+ if(proxy_mode==CON_IC_PROXY_MODE_NONE) {
+ soup_session=soup_session_sync_new();
+ } else if (proxy_mode==CON_IC_PROXY_MODE_MANUAL){
+ g_print("using a manual proxy:%s\n",soup_proxy_uri_string);
+ soup_session=soup_session_sync_new_with_options(SOUP_SESSION_PROXY_URI,soup_proxy_uri,NULL);
+ } else {
+ g_print("Automatic proxy mode not supported\n");
+ return FALSE;
+ }
width = 640; height = 480; bpp = 24;
More information about the Phonehome-commits
mailing list