@since (both functions and typedef)

On Wed, Feb 8, 2012 at 2:25 PM, Enlightenment SVN
<no-re...@enlightenment.org> wrote:
> Log:
> add ecore_con_url_http_version_set() to be able to specify request
>  version
>
>
>
> Author:       raster
> Date:         2012-02-08 05:25:08 -0800 (Wed, 08 Feb 2012)
> New Revision: 67759
> Trac:         http://trac.enlightenment.org/e/changeset/67759
>
> Modified:
>  trunk/ecore/ChangeLog trunk/ecore/src/lib/ecore_con/Ecore_Con.h 
> trunk/ecore/src/lib/ecore_con/ecore_con_url.c
>
> Modified: trunk/ecore/ChangeLog
> ===================================================================
> --- trunk/ecore/ChangeLog       2012-02-08 12:25:50 UTC (rev 67758)
> +++ trunk/ecore/ChangeLog       2012-02-08 13:25:08 UTC (rev 67759)
> @@ -477,3 +477,8 @@
>  2012-02-07  Jihoon Kim (jihoon)
>
>         * Support ecore_imf_context_input_panel_show/hide in XIM and SCIM 
> module.
> +
> +2012-02-08 Carsten Haitzler (The Rasterman)
> +
> +        * Add ecore_con_url_http_version_set() to set url request version
> +
>
> Modified: trunk/ecore/src/lib/ecore_con/Ecore_Con.h
> ===================================================================
> --- trunk/ecore/src/lib/ecore_con/Ecore_Con.h   2012-02-08 12:25:50 UTC (rev 
> 67758)
> +++ trunk/ecore/src/lib/ecore_con/Ecore_Con.h   2012-02-08 13:25:08 UTC (rev 
> 67759)
> @@ -1335,6 +1335,32 @@
>  } Ecore_Con_Url_Time;
>
>  /**
> + * @typedef Ecore_Con_Url_Http_Version
> + * @enum _Ecore_Con_Url_Http_Version
> + * The http version to use
> + */
> +typedef enum _Ecore_Con_Url_Http_Version
> +{
> +   /**
> +    * HTTP version 1.0
> +    */
> +   ECORE_CON_URL_HTTP_VERSION_1_0,
> +   /**
> +    * HTTP version 1.1 (default)
> +    */
> +   ECORE_CON_URL_HTTP_VERSION_1_1
> +} Ecore_Con_Url_Http_Version;
> +
> +/**
> + * Change the HTTP version used for the request
> + * @param version The version to be used
> + * @return EINA_TRUE on success, EINA_FALSE on failure to change version
> + *
> + * @see ecore_con_url_pipeline_get()
> + */
> +EAPI Eina_Bool         ecore_con_url_http_version_set(Ecore_Con_Url 
> *url_con, Ecore_Con_Url_Http_Version version);
> +
> +/**
>  * Initialises the Ecore_Con_Url library.
>  * @return Number of times the library has been initialised without being
>  *          shut down.
>
> Modified: trunk/ecore/src/lib/ecore_con/ecore_con_url.c
> ===================================================================
> --- trunk/ecore/src/lib/ecore_con/ecore_con_url.c       2012-02-08 12:25:50 
> UTC (rev 67758)
> +++ trunk/ecore/src/lib/ecore_con/ecore_con_url.c       2012-02-08 13:25:08 
> UTC (rev 67759)
> @@ -1097,6 +1097,34 @@
>  }
>
>  EAPI Eina_Bool
> +ecore_con_url_http_version_set(Ecore_Con_Url *url_con, 
> Ecore_Con_Url_Http_Version version)
> +{
> +   int res = -1;
> +
> +   switch (version)
> +     {
> +      case ECORE_CON_URL_HTTP_VERSION_1_0:
> +        res = curl_easy_setopt(url_con->curl_easy,
> +                               CURLOPT_HTTP_VERSION,
> +                               CURL_HTTP_VERSION_1_0);
> +        break;
> +      case ECORE_CON_URL_HTTP_VERSION_1_1:
> +        res = curl_easy_setopt(url_con->curl_easy,
> +                               CURLOPT_HTTP_VERSION,
> +                               CURL_HTTP_VERSION_1_1);
> +        break;
> +      default:
> +        break;
> +     }
> +   if (res != CURLE_OK)
> +     {
> +        ERR("curl http version setting failed: %s", curl_easy_strerror(res));
> +        return EINA_FALSE;
> +     }
> +   return EINA_TRUE;
> +}
> +
> +EAPI Eina_Bool
>  ecore_con_url_proxy_set(Ecore_Con_Url *url_con, const char *proxy)
>  {
>  #ifdef HAVE_CURL
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to