X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gweb%2Fgweb.h;h=104345e81c39d8ae37b4ee1b02be5ffd2e44799a;hb=335e7562aafe49d4f91184ebe4d84d1aa99b9ca7;hp=3a76778d17ddaf9e4b2b663ca45c727dc560fcbc;hpb=99f50b43bada3c69794e54bfb8f09f6f24da607c;p=framework%2Fconnectivity%2Fconnman.git diff --git a/gweb/gweb.h b/gweb/gweb.h index 3a76778..104345e 100644 --- a/gweb/gweb.h +++ b/gweb/gweb.h @@ -2,7 +2,7 @@ * * Web service library with GLib integration * - * Copyright (C) 2009-2010 Intel Corporation. All rights reserved. + * Copyright (C) 2009-2012 Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -40,6 +40,9 @@ typedef struct _GWebParser GWebParser; typedef gboolean (*GWebResultFunc)(GWebResult *result, gpointer user_data); +typedef gboolean (*GWebRouteFunc)(const char *addr, int ai_family, + int if_index, gpointer user_data); + typedef gboolean (*GWebInputFunc)(const guint8 **data, gsize *length, gpointer user_data); @@ -52,8 +55,12 @@ void g_web_unref(GWeb *web); void g_web_set_debug(GWeb *web, GWebDebugFunc func, gpointer user_data); +gboolean g_web_supports_tls(void); + gboolean g_web_set_proxy(GWeb *web, const char *proxy); +gboolean g_web_set_address_family(GWeb *web, int family); + gboolean g_web_add_nameserver(GWeb *web, const char *address); gboolean g_web_set_accept(GWeb *web, const char *format, ...) @@ -68,10 +75,14 @@ void g_web_set_close_connection(GWeb *web, gboolean enabled); gboolean g_web_get_close_connection(GWeb *web); guint g_web_request_get(GWeb *web, const char *url, - GWebResultFunc func, gpointer user_data); + GWebResultFunc func, GWebRouteFunc route, + gpointer user_data); guint g_web_request_post(GWeb *web, const char *url, const char *type, GWebInputFunc input, GWebResultFunc func, gpointer user_data); +guint g_web_request_post_file(GWeb *web, const char *url, + const char *type, const char *file, + GWebResultFunc func, gpointer user_data); gboolean g_web_cancel_request(GWeb *web, guint id);