url: Added underscore(_) to elm internal functions, elm_url_xxx.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Tue, 21 Jan 2014 14:23:37 +0000 (23:23 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Tue, 21 Jan 2014 14:23:37 +0000 (23:23 +0900)
- _elm_url_download, _elm_url_cancel, _elm_url_get
- other internal functions in elm_priv.h also have same prefix.

src/lib/elm_image.c
src/lib/elm_photocam.c
src/lib/elm_priv.h
src/lib/elm_url.c

index c669ea2bead0c8f0d26431f4d0f523bec4a48872..e4e59d1e5029feb467f39a762f4820d78a7cb33b 100644 (file)
@@ -496,7 +496,7 @@ _elm_image_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
    ecore_timer_del(sd->anim_timer);
    evas_object_del(sd->img);
    evas_object_del(sd->prev_img);
-   if (sd->remote) elm_url_cancel(sd->remote);
+   if (sd->remote) _elm_url_cancel(sd->remote);
    free(sd->remote_data);
    eina_stringshare_del(sd->key);
 
@@ -922,10 +922,10 @@ _elm_image_smart_download_done(void *data, Elm_Url *url EINA_UNUSED, Eina_Binbuf
    if (sd->remote_data) free(sd->remote_data);
    length = eina_binbuf_length_get(download);
    sd->remote_data = eina_binbuf_string_steal(download);
-   f = eina_file_virtualize(elm_url_get(url),
+   f = eina_file_virtualize(_elm_url_get(url),
                             sd->remote_data, length,
                             EINA_FALSE);
-   _elm_image_smart_internal_file_set(obj, sd, elm_url_get(url), f, sd->key, &ret);
+   _elm_image_smart_internal_file_set(obj, sd, _elm_url_get(url), f, sd->key, &ret);
    eina_file_close(f);
 
    if (!ret)
@@ -992,7 +992,7 @@ _elm_image_smart_file_set(Eo *obj, void *_pd, va_list *list)
 
    unsigned int i;
 
-   if (sd->remote) elm_url_cancel(sd->remote);
+   if (sd->remote) _elm_url_cancel(sd->remote);
    sd->remote = NULL;
 
    for (i = 0; i < sizeof (remote_uri) / sizeof (remote_uri[0]); ++i)
@@ -1000,7 +1000,7 @@ _elm_image_smart_file_set(Eo *obj, void *_pd, va_list *list)
        {
           // Found a remote target !
           evas_object_hide(sd->img);
-          sd->remote = elm_url_download(file,
+          sd->remote = _elm_url_download(file,
                                         _elm_image_smart_download_done,
                                         _elm_image_smart_download_cancel,
                                         _elm_image_smart_download_progress,
@@ -1027,7 +1027,7 @@ _elm_image_smart_mmap_set(Eo *obj, void *_pd, va_list *list)
 
   Elm_Image_Smart_Data *sd = _pd;
 
-  if (sd->remote) elm_url_cancel(sd->remote);
+  if (sd->remote) _elm_url_cancel(sd->remote);
   sd->remote = NULL;
 
   _elm_image_smart_internal_file_set(obj, sd,
index bde52adb1fd2ea1a0aecdc29092e5d29e0296d89..661e18394720fb3e7519d8a57ec20c0ddc5779d2 100644 (file)
@@ -1413,7 +1413,7 @@ _elm_photocam_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
 
    if (sd->f) eina_file_close(sd->f);
    free(sd->remote_data);
-   if (sd->remote) elm_url_cancel(sd->remote);
+   if (sd->remote) _elm_url_cancel(sd->remote);
    eina_stringshare_del(sd->file);
    ecore_job_del(sd->calc_job);
    ecore_timer_del(sd->scr_timer);
@@ -1560,10 +1560,10 @@ _elm_photocam_download_done(void *data, Elm_Url *url EINA_UNUSED, Eina_Binbuf *d
    if (sd->remote_data) free(sd->remote_data);
    length = eina_binbuf_length_get(download);
    sd->remote_data = eina_binbuf_string_steal(download);
-   f = eina_file_virtualize(elm_url_get(url),
+   f = eina_file_virtualize(_elm_url_get(url),
                             sd->remote_data, length,
                             EINA_FALSE);
-   _internal_file_set(obj, sd, elm_url_get(url), f, &ret);
+   _internal_file_set(obj, sd, _elm_url_get(url), f, &ret);
    eina_file_close(f);
 
    if (ret != EVAS_LOAD_ERROR_NONE)
@@ -1634,14 +1634,14 @@ _file_set(Eo *obj, void *_pd, va_list *list)
    sd->f = NULL;
 
    free(sd->remote_data);
-   if (sd->remote) elm_url_cancel(sd->remote);
+   if (sd->remote) _elm_url_cancel(sd->remote);
    sd->remote = NULL;
 
    for (i = 0; i < sizeof (remote_uri) / sizeof (remote_uri[0]); ++i)
      if (strncmp(remote_uri[i], file, strlen(remote_uri[i])) == 0)
        {
           // Found a remote target !
-          sd->remote = elm_url_download(file,
+          sd->remote = _elm_url_download(file,
                                         _elm_photocam_download_done,
                                         _elm_photocam_download_cancel,
                                         _elm_photocam_download_progress,
index c2e19484b30de6fa58ccf1d76e1cf48ca8042720..0c997edd66b44a4aaf7c9043cba5231fea0d5bb0 100644 (file)
@@ -475,9 +475,9 @@ typedef void (*Elm_Url_Done)(void *data, Elm_Url *url, Eina_Binbuf *download);
 typedef void (*Elm_Url_Cancel)(void *data, Elm_Url *url, int error);
 typedef void (*Elm_Url_Progress)(void *data, Elm_Url *url, double now, double total);
 
-Elm_Url *elm_url_download(const char *url, Elm_Url_Done done_cb, Elm_Url_Cancel cancel_cb, Elm_Url_Progress progress_cb, const void *data);
-void elm_url_cancel(Elm_Url *r);
-const char *elm_url_get(Elm_Url *r);
+Elm_Url *_elm_url_download(const char *url, Elm_Url_Done done_cb, Elm_Url_Cancel cancel_cb, Elm_Url_Progress progress_cb, const void *data);
+void _elm_url_cancel(Elm_Url *r);
+const char *_elm_url_get(Elm_Url *r);
 
 extern char *_elm_appname;
 extern Elm_Config *_elm_config;
index 2f25ed2dc0571717b7e7ee13898753afafb3d39b..95d38010d8d23ece0c73cd1ce63a4dd3d8b3dea0 100644 (file)
@@ -88,7 +88,7 @@ _elm_url_data(void *data, int type EINA_UNUSED, void *event)
 }
 
 Elm_Url *
-elm_url_download(const char *url, Elm_Url_Done done_cb, Elm_Url_Cancel cancel_cb, Elm_Url_Progress progress_cb, const void *data)
+_elm_url_download(const char *url, Elm_Url_Done done_cb, Elm_Url_Cancel cancel_cb, Elm_Url_Progress progress_cb, const void *data)
 {
    Ecore_Con_Url *target;
    Elm_Url *r;
@@ -139,14 +139,14 @@ elm_url_download(const char *url, Elm_Url_Done done_cb, Elm_Url_Cancel cancel_cb
 }
 
 void
-elm_url_cancel(Elm_Url *r)
+_elm_url_cancel(Elm_Url *r)
 {
    r->cb.cancel((void*) r->data, r, 0);
    _elm_url_free(r);
 }
 
 const char *
-elm_url_get(Elm_Url *r)
+_elm_url_get(Elm_Url *r)
 {
    return r->url;
 }