ecore con url - curl is actually optional and only needs to init on use
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 14 Sep 2020 10:09:08 +0000 (11:09 +0100)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 20 Sep 2020 21:15:35 +0000 (06:15 +0900)
ecore_con_utl_init is kind of pointless when we can init at the first
use of a url and just have it fail. the problem is anyone initting
ecore_con's url stuff will then pull in curl at that point and not
laer "on first use" which is kind of nw how the dlopen fun was
intended, so push it off until then.

src/lib/ecore_con/ecore_con_url.c

index b0fa699..1d8d0a5 100644 (file)
@@ -49,11 +49,6 @@ ecore_con_url_init(void)
    if (!ecore_con_init()) goto ecore_con_init_failed;
    if (!emile_init()) goto emile_init_failed;
    if (!emile_cipher_init()) goto emile_cipher_init_failed;
-   //TIZEN_ONLY(20180517): disable unused initialization.
-   //It is not usually used API, so always initialization is unnecessary.
-   //Disable libcurl library initialization to reduce memory usage.
-   //_c_init();
-   //
    ECORE_CON_EVENT_URL_DATA = ecore_event_type_new();
    ECORE_CON_EVENT_URL_COMPLETE = ecore_event_type_new();
    ECORE_CON_EVENT_URL_PROGRESS = ecore_event_type_new();
@@ -83,7 +78,6 @@ ecore_con_url_shutdown(void)
                           ECORE_CON_EVENT_URL_COMPLETE,
                           ECORE_CON_EVENT_URL_PROGRESS);
 
-   _c_shutdown();
    emile_shutdown(); /* no emile_cipher_shutdown(), handled here */
    ecore_con_shutdown();
    ecore_shutdown();