Hi Mohamed,

> Add new API to support http download.
> ---
>  gweb/gweb.h |   14 +++++++++++++-
>  1 files changed, 13 insertions(+), 1 deletions(-)
> 
> diff --git a/gweb/gweb.h b/gweb/gweb.h
> index 1ab2a9f..286b747 100644
> --- a/gweb/gweb.h
> +++ b/gweb/gweb.h
> @@ -38,11 +38,20 @@ typedef enum {
>       G_WEB_METHOD_GET,
>  } GWebMethod;
>  
> +typedef enum {
> +     G_WEB_DATA_HEADER,
> +     G_WEB_DATA_BODY,
> +} GWebDataType;
> +
>  typedef void (*GWebResultFunc)(uint16_t status, gpointer user_data);
>  
>  typedef void (*GWebDebugFunc)(const char *str, gpointer user_data);
>  
> -GWeb *g_web_new(int index);
> +typedef gboolean (*GWebReceivedFunc)(const guint8 *str, int len,
> +                                             GWebDataType data_type,
> +                                             gpointer user_data);
> +
> +GWeb *g_web_new(int index, const char *proxy);
>  
>  GWeb *g_web_ref(GWeb *web);
>  void g_web_unref(GWeb *web);
> @@ -51,7 +60,10 @@ void g_web_set_debug(GWeb *web, GWebDebugFunc func, 
> gpointer user_data);
>  
>  gboolean g_web_add_nameserver(GWeb *web, const char *address);
>  
> +void g_web_allow_deader(GWeb *web, gboolean allow);
> +

???? ;)

Regards

Marcel


_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to