From: Mohamed Abbas <mab...@linux.intel.com>

Add the API needed to support proxy when request a page.
---
 gweb/gweb.c      |    5 ++++-
 gweb/gweb.h      |    2 +-
 tools/web-test.c |    2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/gweb/gweb.c b/gweb/gweb.c
index eea6276..004f33a 100644
--- a/gweb/gweb.c
+++ b/gweb/gweb.c
@@ -159,13 +159,16 @@ static void flush_sessions(GWeb *web)
        web->session_list = NULL;
 }
 
-GWeb *g_web_new(int index)
+GWeb *g_web_new(int index, const char *proxy)
 {
        GWeb *web;
 
        if (index < 0)
                return NULL;
 
+       if (proxy != NULL)
+               return NULL;
+
        web = g_try_new0(GWeb, 1);
        if (web == NULL)
                return NULL;
diff --git a/gweb/gweb.h b/gweb/gweb.h
index 61e488c..ada1434 100644
--- a/gweb/gweb.h
+++ b/gweb/gweb.h
@@ -51,7 +51,7 @@ typedef gboolean (*GWebReceivedFunc)(const guint8 *str, int 
len,
                                                GWebDataType data_type,
                                                gpointer user_data);
 
-GWeb *g_web_new(int index);
+GWeb *g_web_new(int index, const char *proxy);
 
 GWeb *g_web_ref(GWeb *web);
 void g_web_unref(GWeb *web);
diff --git a/tools/web-test.c b/tools/web-test.c
index 3f88a2d..2a7409b 100644
--- a/tools/web-test.c
+++ b/tools/web-test.c
@@ -112,7 +112,7 @@ int main(int argc, char *argv[])
                return 1;
        }
 
-       web = g_web_new(index);
+       web = g_web_new(index, NULL);
        if (web == NULL) {
                printf("failed to web service\n");
                return 1;
-- 
1.7.2.3

_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to