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);
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)
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)
{
// 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,
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,
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);
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)
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,
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;
}
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;
}
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;
}