*API BREAK* see the discussion in the mailing list. misc and e_modules will follow

SVN revision: 30970
This commit is contained in:
Peter Wehrfritz 2007-07-25 17:01:04 +00:00
parent 7b95e2b3f0
commit a6553c1a58
23 changed files with 101 additions and 101 deletions

View File

@ -1688,7 +1688,7 @@ e_config_profile_list(void)
{ {
char *file; char *file;
ecore_list_goto_first(files); ecore_list_first_goto(files);
while ((file = ecore_list_current(files))) while ((file = ecore_list_current(files)))
{ {
snprintf(buf, sizeof(buf), "%s/.e/e/config/%s", homedir, file); snprintf(buf, sizeof(buf), "%s/.e/e/config/%s", homedir, file);
@ -1726,7 +1726,7 @@ e_config_profile_del(char *prof)
{ {
char *file; char *file;
ecore_list_goto_first(files); ecore_list_first_goto(files);
while ((file = ecore_list_current(files))) while ((file = ecore_list_current(files)))
{ {
snprintf(buf, sizeof(buf), "%s/.e/e/config/%s/%s", snprintf(buf, sizeof(buf), "%s/.e/e/config/%s/%s",

View File

@ -75,9 +75,9 @@ e_configure_registry_item_add(const char *path, int pri, const char *label, cons
E_Configure_It *eci; E_Configure_It *eci;
/* path is "category/item" */ /* path is "category/item" */
cat = ecore_file_get_dir(path); cat = ecore_file_dir_get(path);
if (!cat) return; if (!cat) return;
item = ecore_file_get_file(path); item = ecore_file_file_get(path);
eci = E_NEW(E_Configure_It, 1); eci = E_NEW(E_Configure_It, 1);
if (!eci) goto done; if (!eci) goto done;
@ -124,9 +124,9 @@ e_configure_registry_item_del(const char *path)
const char *item; const char *item;
/* path is "category/item" */ /* path is "category/item" */
cat = ecore_file_get_dir(path); cat = ecore_file_dir_get(path);
if (!cat) return; if (!cat) return;
item = ecore_file_get_file(path); item = ecore_file_file_get(path);
for (l = _e_configure_registry; l; l = l->next) for (l = _e_configure_registry; l; l = l->next)
{ {
E_Configure_Cat *ecat; E_Configure_Cat *ecat;
@ -192,7 +192,7 @@ e_configure_registry_category_del(const char *path)
Evas_List *l; Evas_List *l;
char *cat; char *cat;
cat = ecore_file_get_dir(path); cat = ecore_file_dir_get(path);
if (!cat) return; if (!cat) return;
for (l = _e_configure_registry; l; l = l->next) for (l = _e_configure_registry; l; l = l->next)
{ {
@ -222,9 +222,9 @@ e_configure_registry_call(const char *path, E_Container *con, const char *params
const char *item; const char *item;
/* path is "category/item" */ /* path is "category/item" */
cat = ecore_file_get_dir(path); cat = ecore_file_dir_get(path);
if (!cat) return; if (!cat) return;
item = ecore_file_get_file(path); item = ecore_file_file_get(path);
for (l = _e_configure_registry; l; l = l->next) for (l = _e_configure_registry; l; l = l->next)
{ {
E_Configure_Cat *ecat; E_Configure_Cat *ecat;
@ -262,9 +262,9 @@ e_configure_registry_exists(const char *path)
int ret = 0; int ret = 0;
/* path is "category/item" */ /* path is "category/item" */
cat = ecore_file_get_dir(path); cat = ecore_file_dir_get(path);
if (!cat) return 0; if (!cat) return 0;
item = ecore_file_get_file(path); item = ecore_file_file_get(path);
for (l = _e_configure_registry; l; l = l->next) for (l = _e_configure_registry; l; l = l->next)
{ {
E_Configure_Cat *ecat; E_Configure_Cat *ecat;

View File

@ -265,7 +265,7 @@ _e_desktop_edit_create_data(E_Config_Dialog *cfd)
{ {
/* file not in user's dir, so create new desktop that points there */ /* file not in user's dir, so create new desktop that points there */
if (!ecore_file_exists(dir)) ecore_file_mkdir(dir); if (!ecore_file_exists(dir)) ecore_file_mkdir(dir);
file = ecore_file_get_file(cfdata->editor->desktop->orig_path); file = ecore_file_file_get(cfdata->editor->desktop->orig_path);
snprintf(path, sizeof(path), "%s/%s", dir, file); snprintf(path, sizeof(path), "%s/%s", dir, file);
/* /*
* if a file already exists in the user dir with this name, we * if a file already exists in the user dir with this name, we
@ -585,7 +585,7 @@ _e_desktop_editor_cb_icon_select(void *data1, void *data2)
/* XXX change this to a generic icon selector (that can do either /* XXX change this to a generic icon selector (that can do either
* files from a dir, or icons in the current theme */ * files from a dir, or icons in the current theme */
if (cfdata->icon) if (cfdata->icon)
dir = ecore_file_get_dir(cfdata->icon); dir = ecore_file_dir_get(cfdata->icon);
if (dir) if (dir)
{ {
@ -639,7 +639,7 @@ _e_desktop_editor_cb_exec_select(void *data1, void *data2)
/* absolute path to exe */ /* absolute path to exe */
if (cfdata->exec) if (cfdata->exec)
dir = ecore_file_get_dir(cfdata->exec); dir = ecore_file_dir_get(cfdata->exec);
if (dir) if (dir)
{ {

View File

@ -877,7 +877,7 @@ _e_exebuf_matches_update(void)
{ {
Efreet_Desktop *desktop; Efreet_Desktop *desktop;
ecore_list_goto_first(list); ecore_list_first_goto(list);
while ((desktop = ecore_list_next(list))) while ((desktop = ecore_list_next(list)))
{ {
char *exe; char *exe;
@ -902,7 +902,7 @@ _e_exebuf_matches_update(void)
{ {
Efreet_Desktop *desktop; Efreet_Desktop *desktop;
ecore_list_goto_first(list); ecore_list_first_goto(list);
while ((desktop = ecore_list_next(list))) while ((desktop = ecore_list_next(list)))
{ {
char *exe; char *exe;
@ -927,7 +927,7 @@ _e_exebuf_matches_update(void)
{ {
Efreet_Desktop *desktop; Efreet_Desktop *desktop;
ecore_list_goto_first(list); ecore_list_first_goto(list);
while ((desktop = ecore_list_next(list))) while ((desktop = ecore_list_next(list)))
{ {
char *exe; char *exe;
@ -952,7 +952,7 @@ _e_exebuf_matches_update(void)
{ {
Efreet_Desktop *desktop; Efreet_Desktop *desktop;
ecore_list_goto_first(list); ecore_list_first_goto(list);
while ((desktop = ecore_list_next(list))) while ((desktop = ecore_list_next(list)))
{ {
char *exe; char *exe;
@ -982,7 +982,7 @@ _e_exebuf_matches_update(void)
for (l = exe_list; l; l = l->next) for (l = exe_list; l; l = l->next)
{ {
path = l->data; path = l->data;
file = (char *)ecore_file_get_file(path); file = (char *)ecore_file_file_get(path);
if (file) if (file)
{ {
if (e_util_glob_match(file, buf)) if (e_util_glob_match(file, buf))

View File

@ -2010,7 +2010,7 @@ _e_fm2_file_force_update(const char *path)
char *dir; char *dir;
Evas_List *l; Evas_List *l;
dir = ecore_file_get_dir(path); dir = ecore_file_dir_get(path);
if (!dir) return; if (!dir) return;
for (l = _e_fm2_list; l; l = l->next) for (l = _e_fm2_list; l; l = l->next)
{ {
@ -2020,7 +2020,7 @@ _e_fm2_file_force_update(const char *path)
{ {
E_Fm2_Icon *ic; E_Fm2_Icon *ic;
ic = _e_fm2_icon_find(l->data, ecore_file_get_file(path)); ic = _e_fm2_icon_find(l->data, ecore_file_file_get(path));
if (ic) if (ic)
{ {
E_Fm2_Finfo finf; E_Fm2_Finfo finf;
@ -2034,7 +2034,7 @@ _e_fm2_file_force_update(const char *path)
if (ic->info.real_link) if (ic->info.real_link)
finf.rlnk = evas_stringshare_add(ic->info.real_link); finf.rlnk = evas_stringshare_add(ic->info.real_link);
ic->removable_state_change = 1; ic->removable_state_change = 1;
_e_fm2_live_file_changed(l->data, ecore_file_get_file(path), _e_fm2_live_file_changed(l->data, ecore_file_file_get(path),
&finf); &finf);
if (ic->info.link) if (ic->info.link)
evas_stringshare_del(ic->info.link); evas_stringshare_del(ic->info.link);
@ -2083,7 +2083,7 @@ _e_storage_write(E_Storage *s)
FILE *f; FILE *f;
const char *id; const char *id;
id = ecore_file_get_file(s->udi); id = ecore_file_file_get(s->udi);
printf("sto write %s\n", id); printf("sto write %s\n", id);
snprintf(buf, sizeof(buf), "%s/.e/e/fileman/favorites/|%s.desktop", snprintf(buf, sizeof(buf), "%s/.e/e/fileman/favorites/|%s.desktop",
e_user_homedir_get(), id); e_user_homedir_get(), id);
@ -2134,7 +2134,7 @@ _e_storage_erase(E_Storage *s)
char buf[PATH_MAX]; char buf[PATH_MAX];
const char *id; const char *id;
id = ecore_file_get_file(s->udi); id = ecore_file_file_get(s->udi);
snprintf(buf, sizeof(buf), "%s/Desktop/|%s.desktop", snprintf(buf, sizeof(buf), "%s/Desktop/|%s.desktop",
e_user_homedir_get(), id); e_user_homedir_get(), id);
ecore_file_unlink(buf); ecore_file_unlink(buf);
@ -2150,7 +2150,7 @@ _e_volume_write(E_Volume *v)
FILE *f; FILE *f;
const char *id; const char *id;
id = ecore_file_get_file(v->storage->udi); id = ecore_file_file_get(v->storage->udi);
printf("vol write %s\n", id); printf("vol write %s\n", id);
snprintf(buf, sizeof(buf), "%s/.e/e/fileman/favorites/|%s.desktop", snprintf(buf, sizeof(buf), "%s/.e/e/fileman/favorites/|%s.desktop",
e_user_homedir_get(), id); e_user_homedir_get(), id);
@ -2205,7 +2205,7 @@ _e_volume_erase(E_Volume *v)
char buf[PATH_MAX]; char buf[PATH_MAX];
const char *id; const char *id;
id = ecore_file_get_file(v->storage->udi); id = ecore_file_file_get(v->storage->udi);
snprintf(buf, sizeof(buf), "%s/Desktop/|%s.desktop", snprintf(buf, sizeof(buf), "%s/Desktop/|%s.desktop",
e_user_homedir_get(), id); e_user_homedir_get(), id);
ecore_file_unlink(buf); ecore_file_unlink(buf);
@ -2290,7 +2290,7 @@ e_fm2_client_data(Ecore_Ipc_Event_Client_Data *e)
finf.lnk = lnk; finf.lnk = lnk;
finf.rlnk = rlnk; finf.rlnk = rlnk;
evdir = ecore_file_get_dir(path); evdir = ecore_file_dir_get(path);
if ((sd->id == e->ref_to) && if ((sd->id == e->ref_to) &&
((!strcmp(evdir, "") || (!strcmp(dir, evdir))))) ((!strcmp(evdir, "") || (!strcmp(dir, evdir)))))
{ {
@ -2299,13 +2299,13 @@ e_fm2_client_data(Ecore_Ipc_Event_Client_Data *e)
if (e->minor == 3)/*file add*/ if (e->minor == 3)/*file add*/
{ {
_e_fm2_live_file_add _e_fm2_live_file_add
(obj, ecore_file_get_file(path), (obj, ecore_file_file_get(path),
NULL, 0, &finf); NULL, 0, &finf);
} }
else if (e->minor == 5)/*file change*/ else if (e->minor == 5)/*file change*/
{ {
_e_fm2_live_file_changed _e_fm2_live_file_changed
(obj, (char *)ecore_file_get_file(path), (obj, (char *)ecore_file_file_get(path),
&finf); &finf);
} }
} }
@ -2325,7 +2325,7 @@ e_fm2_client_data(Ecore_Ipc_Event_Client_Data *e)
} }
if (path[0] != 0) if (path[0] != 0)
{ {
file = ecore_file_get_file(path); file = ecore_file_file_get(path);
if ((!strcmp(file, ".order"))) if ((!strcmp(file, ".order")))
sd->order_file = 1; sd->order_file = 1;
else else
@ -2383,11 +2383,11 @@ e_fm2_client_data(Ecore_Ipc_Event_Client_Data *e)
break; break;
case 4:/*file del*/ case 4:/*file del*/
path = e->data; path = e->data;
evdir = ecore_file_get_dir(path); evdir = ecore_file_dir_get(path);
if ((sd->id == e->ref_to) && (!strcmp(dir, evdir))) if ((sd->id == e->ref_to) && (!strcmp(dir, evdir)))
{ {
_e_fm2_live_file_del _e_fm2_live_file_del
(obj, ecore_file_get_file(path)); (obj, ecore_file_file_get(path));
} }
free(evdir); free(evdir);
break; break;
@ -3409,7 +3409,7 @@ _e_fm2_file_fm2_find(const char *file)
char *dir; char *dir;
Evas_List *l; Evas_List *l;
dir = ecore_file_get_dir(file); dir = ecore_file_dir_get(file);
if (!dir) return NULL; if (!dir) return NULL;
for (l = _e_fm2_list; l; l = l->next) for (l = _e_fm2_list; l; l = l->next)
{ {
@ -3462,7 +3462,7 @@ _e_fm2_uri_icon_list_get(Evas_List *uri)
fm = _e_fm2_file_fm2_find(path); fm = _e_fm2_file_fm2_find(path);
if (fm) if (fm)
{ {
file = ecore_file_get_file(path); file = ecore_file_file_get(path);
ic = _e_fm2_icon_find(fm, file); ic = _e_fm2_icon_find(fm, file);
} }
} }
@ -4846,7 +4846,7 @@ _e_fm2_cb_dnd_drop(void *data, const char *type, void *event)
fp = _e_fm2_icon_desktop_url_eval(ll->data); fp = _e_fm2_icon_desktop_url_eval(ll->data);
if (!fp) continue; if (!fp) continue;
snprintf(buf, sizeof(buf), "%s/%s", snprintf(buf, sizeof(buf), "%s/%s",
sd->realpath, ecore_file_get_file(fp)); sd->realpath, ecore_file_file_get(fp));
printf("mv %s %s\n", (char *)fp, buf); printf("mv %s %s\n", (char *)fp, buf);
if ((ic) && (sd->config->view.mode == E_FM2_VIEW_MODE_CUSTOM_ICONS)) if ((ic) && (sd->config->view.mode == E_FM2_VIEW_MODE_CUSTOM_ICONS))
{ {
@ -4904,7 +4904,7 @@ _e_fm2_cb_dnd_drop(void *data, const char *type, void *event)
if (!fp) continue; if (!fp) continue;
/* move the file into the subdir */ /* move the file into the subdir */
snprintf(buf, sizeof(buf), "%s/%s/%s", snprintf(buf, sizeof(buf), "%s/%s/%s",
sd->realpath, sd->drop_icon->info.file, ecore_file_get_file(fp)); sd->realpath, sd->drop_icon->info.file, ecore_file_file_get(fp));
printf("mv %s %s\n", (char *)fp, buf); printf("mv %s %s\n", (char *)fp, buf);
_e_fm2_client_file_move(sd->id, fp, buf, "", 0, -9999, -9999, sd->w, sd->h); _e_fm2_client_file_move(sd->id, fp, buf, "", 0, -9999, -9999, sd->w, sd->h);
evas_stringshare_del(fp); evas_stringshare_del(fp);
@ -4924,7 +4924,7 @@ _e_fm2_cb_dnd_drop(void *data, const char *type, void *event)
fp = _e_fm2_icon_desktop_url_eval(ll->data); fp = _e_fm2_icon_desktop_url_eval(ll->data);
if (!fp) continue; if (!fp) continue;
snprintf(buf, sizeof(buf), "%s/%s", snprintf(buf, sizeof(buf), "%s/%s",
sd->realpath, ecore_file_get_file(fp)); sd->realpath, ecore_file_file_get(fp));
if (sd->config->view.link_drop) if (sd->config->view.link_drop)
{ {
printf("ln -s %s %s\n", (char *)fp, buf); printf("ln -s %s %s\n", (char *)fp, buf);
@ -4946,7 +4946,7 @@ _e_fm2_cb_dnd_drop(void *data, const char *type, void *event)
fp = _e_fm2_icon_desktop_url_eval(ll->data); fp = _e_fm2_icon_desktop_url_eval(ll->data);
if (!fp) continue; if (!fp) continue;
snprintf(buf, sizeof(buf), "%s/%s", snprintf(buf, sizeof(buf), "%s/%s",
sd->realpath, ecore_file_get_file(fp)); sd->realpath, ecore_file_file_get(fp));
if (sd->config->view.link_drop) if (sd->config->view.link_drop)
{ {
printf("ln -s %s %s\n", (char *)fp, buf); printf("ln -s %s %s\n", (char *)fp, buf);
@ -4970,7 +4970,7 @@ _e_fm2_cb_dnd_drop(void *data, const char *type, void *event)
if (!fp) continue; if (!fp) continue;
/* move the file into the subdir */ /* move the file into the subdir */
snprintf(buf, sizeof(buf), "%s/%s", snprintf(buf, sizeof(buf), "%s/%s",
sd->realpath, ecore_file_get_file(fp)); sd->realpath, ecore_file_file_get(fp));
printf("mv %s %s\n", (char *)fp, buf); printf("mv %s %s\n", (char *)fp, buf);
_e_fm2_client_file_move(sd->id, fp, buf, "", 0, -9999, -9999, sd->w, sd->h); _e_fm2_client_file_move(sd->id, fp, buf, "", 0, -9999, -9999, sd->w, sd->h);
evas_stringshare_del(fp); evas_stringshare_del(fp);
@ -4986,7 +4986,7 @@ _e_fm2_cb_dnd_drop(void *data, const char *type, void *event)
if (!fp) continue; if (!fp) continue;
/* move the file into the subdir */ /* move the file into the subdir */
snprintf(buf, sizeof(buf), "%s/%s", snprintf(buf, sizeof(buf), "%s/%s",
sd->realpath, ecore_file_get_file(fp)); sd->realpath, ecore_file_file_get(fp));
printf("mv %s %s\n", (char *)fp, buf); printf("mv %s %s\n", (char *)fp, buf);
_e_fm2_client_file_move(sd->id, fp, buf, "", 0, -9999, -9999, sd->w, sd->h); _e_fm2_client_file_move(sd->id, fp, buf, "", 0, -9999, -9999, sd->w, sd->h);
evas_stringshare_del(fp); evas_stringshare_del(fp);

View File

@ -274,7 +274,7 @@ _e_dbus_cb_dev_all(void *user_data, void *reply_data, DBusError *error)
return; return;
} }
ecore_list_goto_first(ret->strings); ecore_list_first_goto(ret->strings);
while ((device = ecore_list_next(ret->strings))) while ((device = ecore_list_next(ret->strings)))
{ {
// printf("DB INIT DEV+: %s\n", device); // printf("DB INIT DEV+: %s\n", device);
@ -302,7 +302,7 @@ _e_dbus_cb_dev_store(void *user_data, void *reply_data, DBusError *error)
return; return;
} }
ecore_list_goto_first(ret->strings); ecore_list_first_goto(ret->strings);
while ((device = ecore_list_next(ret->strings))) while ((device = ecore_list_next(ret->strings)))
{ {
// printf("DB STORE+: %s\n", device); // printf("DB STORE+: %s\n", device);
@ -324,7 +324,7 @@ _e_dbus_cb_dev_vol(void *user_data, void *reply_data, DBusError *error)
return; return;
} }
ecore_list_goto_first(ret->strings); ecore_list_first_goto(ret->strings);
while ((device = ecore_list_next(ret->strings))) while ((device = ecore_list_next(ret->strings)))
{ {
// printf("DB VOL+: %s\n", device); // printf("DB VOL+: %s\n", device);
@ -1032,7 +1032,7 @@ _e_ipc_cb_server_data(void *data, int type, void *event)
dst = src + strlen(src) + 1; dst = src + strlen(src) + 1;
ecore_file_mv(src, dst); ecore_file_mv(src, dst);
/* FIXME: send back if succeeded or failed - why */ /* FIXME: send back if succeeded or failed - why */
_e_path_fix_order(dst, ecore_file_get_file(src), 2, -9999, -9999); _e_path_fix_order(dst, ecore_file_file_get(src), 2, -9999, -9999);
} }
break; break;
case 6: /* fop mv file/dir */ case 6: /* fop mv file/dir */
@ -1216,8 +1216,8 @@ _e_cb_file_monitor(void *data, Ecore_File_Monitor *em, Ecore_File_Event event, c
const char *file; const char *file;
Evas_List *l; Evas_List *l;
dir = ecore_file_get_dir(path); dir = ecore_file_dir_get(path);
file = ecore_file_get_file(path); file = ecore_file_file_get(path);
/* FIXME: get no create events if dir is empty */ /* FIXME: get no create events if dir is empty */
if ((event == ECORE_FILE_EVENT_CREATED_FILE) || if ((event == ECORE_FILE_EVENT_CREATED_FILE) ||
(event == ECORE_FILE_EVENT_CREATED_DIRECTORY)) (event == ECORE_FILE_EVENT_CREATED_DIRECTORY))
@ -1880,10 +1880,10 @@ _e_path_fix_order(const char *path, const char *rel, int rel_to, int x, int y)
if (!path) return; if (!path) return;
if (!rel[0]) return; if (!rel[0]) return;
f = ecore_file_get_file(path); f = ecore_file_file_get(path);
if (!f) return; if (!f) return;
if (!strcmp(f, rel)) return; if (!strcmp(f, rel)) return;
d = ecore_file_get_dir(path); d = ecore_file_dir_get(path);
if (!d) return; if (!d) return;
snprintf(buf, sizeof(buf), "%s/.order", d); snprintf(buf, sizeof(buf), "%s/.order", d);
if (ecore_file_exists(buf)) if (ecore_file_exists(buf))

View File

@ -200,7 +200,7 @@ e_fwin_new(E_Container *con, const char *dev, const char *path)
snprintf(buf, sizeof(buf), "_fwin::/%s", e_fm2_real_path_get(fwin->fm_obj)); snprintf(buf, sizeof(buf), "_fwin::/%s", e_fm2_real_path_get(fwin->fm_obj));
e_win_name_class_set(fwin->win, "E", buf); e_win_name_class_set(fwin->win, "E", buf);
file = ecore_file_get_file(e_fm2_real_path_get(fwin->fm_obj)); file = ecore_file_file_get(e_fm2_real_path_get(fwin->fm_obj));
if (file) if (file)
snprintf(buf, sizeof(buf), "%s", file); snprintf(buf, sizeof(buf), "%s", file);
else else
@ -313,7 +313,7 @@ e_fwin_zone_new(E_Zone *zone, const char *dev, const char *path)
e_fm2_path_set(fwin->fm_obj, dev, path); e_fm2_path_set(fwin->fm_obj, dev, path);
file = ecore_file_get_file(e_fm2_real_path_get(fwin->fm_obj)); file = ecore_file_file_get(e_fm2_real_path_get(fwin->fm_obj));
if (file) if (file)
snprintf(buf, sizeof(buf), "%s", file); snprintf(buf, sizeof(buf), "%s", file);
else else
@ -652,7 +652,7 @@ _e_fwin_cb_open(void *data, E_Dialog *dia)
if (selected) if (selected)
{ {
files = ecore_list_new(); files = ecore_list_new();
ecore_list_set_free_cb(files, free); ecore_list_free_cb_set(files, free);
for (l = selected; l; l = l->next) for (l = selected; l; l = l->next)
{ {
E_Fwin_Exec_Type ext; E_Fwin_Exec_Type ext;
@ -1030,7 +1030,7 @@ _e_fwin_file_open_dialog(E_Fwin *fwin, Evas_List *files, int always)
ml = efreet_util_desktop_mime_list(l->data); ml = efreet_util_desktop_mime_list(l->data);
if (ml) if (ml)
{ {
ecore_list_goto_first(ml); ecore_list_first_goto(ml);
while ((desktop = ecore_list_next(ml))) while ((desktop = ecore_list_next(ml)))
apps = evas_list_append(apps, desktop); apps = evas_list_append(apps, desktop);
ecore_list_destroy(ml); ecore_list_destroy(ml);
@ -1066,7 +1066,7 @@ _e_fwin_file_open_dialog(E_Fwin *fwin, Evas_List *files, int always)
chdir(e_fm2_real_path_get(fwin->fm_obj)); chdir(e_fm2_real_path_get(fwin->fm_obj));
files_list = ecore_list_new(); files_list = ecore_list_new();
ecore_list_set_free_cb(files_list, free); ecore_list_free_cb_set(files_list, free);
for (l = files; l; l = l->next) for (l = files; l; l = l->next)
{ {
ici = l->data; ici = l->data;

View File

@ -195,7 +195,7 @@ _load_modules(E_Config_Dialog_Data *cfdata)
if (!ecore_file_is_dir(epd->dir)) continue; if (!ecore_file_is_dir(epd->dir)) continue;
dirs = ecore_file_ls(epd->dir); dirs = ecore_file_ls(epd->dir);
if (!dirs) continue; if (!dirs) continue;
ecore_list_goto_first(dirs); ecore_list_first_goto(dirs);
while ((mod = ecore_list_next(dirs))) while ((mod = ecore_list_next(dirs)))
{ {
E_Module *module; E_Module *module;
@ -343,7 +343,7 @@ _get_icon(Efreet_Desktop *desk)
char *path; char *path;
char buf[4096]; char buf[4096];
path = ecore_file_get_dir(desk->orig_path); path = ecore_file_dir_get(desk->orig_path);
snprintf(buf, sizeof(buf), "%s/%s.edj", path, desk->icon); snprintf(buf, sizeof(buf), "%s/%s.edj", path, desk->icon);
icon = buf; icon = buf;
free(path); free(path);
@ -391,7 +391,7 @@ _cb_monitor(void *data, Ecore_File_Monitor *monitor, Ecore_File_Event event, con
switch (event) switch (event)
{ {
case ECORE_FILE_EVENT_CREATED_DIRECTORY: case ECORE_FILE_EVENT_CREATED_DIRECTORY:
file = ecore_file_get_file(path); file = ecore_file_file_get(path);
if (mod_mon) ecore_file_monitor_del(mod_mon); if (mod_mon) ecore_file_monitor_del(mod_mon);
mod_mon = ecore_file_monitor_add(path, _cb_mod_monitor, cfdata); mod_mon = ecore_file_monitor_add(path, _cb_mod_monitor, cfdata);
break; break;
@ -417,7 +417,7 @@ _cb_mod_monitor(void *data, Ecore_File_Monitor *monitor, Ecore_File_Event event,
switch (event) switch (event)
{ {
case ECORE_FILE_EVENT_CREATED_DIRECTORY: case ECORE_FILE_EVENT_CREATED_DIRECTORY:
file = ecore_file_get_file(path); file = ecore_file_file_get(path);
if (!e_util_glob_case_match(file, MODULE_ARCH)) break; if (!e_util_glob_case_match(file, MODULE_ARCH)) break;
if (dir_mon) ecore_file_monitor_del(dir_mon); if (dir_mon) ecore_file_monitor_del(dir_mon);
dir_mon = ecore_file_monitor_add(path, _cb_dir_monitor, cfdata); dir_mon = ecore_file_monitor_add(path, _cb_dir_monitor, cfdata);

View File

@ -536,7 +536,7 @@ _e_int_menus_apps_scan(E_Menu *m, Efreet_Menu *menu)
{ {
Efreet_Menu *entry; Efreet_Menu *entry;
ecore_list_goto_first(menu->entries); ecore_list_first_goto(menu->entries);
while ((entry = ecore_list_next(menu->entries))) while ((entry = ecore_list_next(menu->entries)))
{ {
mi = e_menu_item_new(m); mi = e_menu_item_new(m);

View File

@ -588,7 +588,7 @@ _e_intl_language_dir_scan(const char *dir)
files = ecore_file_ls(dir); files = ecore_file_ls(dir);
if (!files) return NULL; if (!files) return NULL;
ecore_list_goto_first(files); ecore_list_first_goto(files);
if (files) if (files)
{ {
while ((file = ecore_list_next(files))) while ((file = ecore_list_next(files)))
@ -1126,7 +1126,7 @@ _e_intl_imc_dir_scan(const char *dir)
files = ecore_file_ls(dir); files = ecore_file_ls(dir);
if (!files) return NULL; if (!files) return NULL;
ecore_list_goto_first(files); ecore_list_first_goto(files);
if (files) if (files)
{ {
while ((file = ecore_list_next(files))) while ((file = ecore_list_next(files)))

View File

@ -7556,7 +7556,7 @@ break;
{ {
const char *i; const char *i;
const char *f; const char *f;
f = ecore_file_get_file(s); f = ecore_file_file_get(s);
i = e_path_find(path_init, f); i = e_path_find(path_init, f);
if (!e_util_edje_collection_exists(i, "init/splash")) if (!e_util_edje_collection_exists(i, "init/splash"))
{ {

View File

@ -190,12 +190,12 @@ init_done:
m->name = evas_stringshare_add(name); m->name = evas_stringshare_add(name);
if (modpath) if (modpath)
{ {
s = ecore_file_get_dir(modpath); s = ecore_file_dir_get(modpath);
if (s) if (s)
{ {
char *s2; char *s2;
s2 = ecore_file_get_dir(s); s2 = ecore_file_dir_get(s);
free(s); free(s);
if (s2) if (s2)
{ {

View File

@ -178,7 +178,7 @@ _e_order_read(E_Order *eo)
eo->desktops = evas_list_free(eo->desktops); eo->desktops = evas_list_free(eo->desktops);
if (!eo->path) return; if (!eo->path) return;
dir = ecore_file_get_dir(eo->path); dir = ecore_file_dir_get(eo->path);
f = fopen(eo->path, "rb"); f = fopen(eo->path, "rb");
if (f) if (f)
{ {
@ -204,9 +204,9 @@ _e_order_read(E_Order *eo)
if (buf[0] == '/') if (buf[0] == '/')
desktop = efreet_desktop_get(buf); desktop = efreet_desktop_get(buf);
if (!desktop) if (!desktop)
desktop = efreet_desktop_get(ecore_file_get_file(buf)); desktop = efreet_desktop_get(ecore_file_file_get(buf));
if (!desktop) if (!desktop)
desktop = efreet_util_desktop_file_id_find(ecore_file_get_file(buf)); desktop = efreet_util_desktop_file_id_find(ecore_file_file_get(buf));
if (desktop) eo->desktops = evas_list_append(eo->desktops, desktop); if (desktop) eo->desktops = evas_list_append(eo->desktops, desktop);
} }
} }

View File

@ -261,7 +261,7 @@ _e_prefix_share_hunt(void)
{ {
char *file; char *file;
ecore_list_goto_first(files); ecore_list_first_goto(files);
while ((file = ecore_list_current(files))) while ((file = ecore_list_current(files)))
{ {
snprintf(buf2, sizeof(buf2), "%s/%s/"MAGIC_DAT, buf, file); snprintf(buf2, sizeof(buf2), "%s/%s/"MAGIC_DAT, buf, file);

View File

@ -81,7 +81,7 @@ _e_wid_fsel_favorites_add(void *data1, void *data2)
if (!ecore_file_is_dir(current_path)) return; if (!ecore_file_is_dir(current_path)) return;
homedir = e_user_homedir_get(); homedir = e_user_homedir_get();
snprintf(buf, sizeof(buf), "%s/.e/e/fileman/favorites/%s", snprintf(buf, sizeof(buf), "%s/.e/e/fileman/favorites/%s",
homedir, ecore_file_get_file(current_path)); homedir, ecore_file_file_get(current_path));
if (stat(buf, &st) < 0) symlink(current_path, buf); if (stat(buf, &st) < 0) symlink(current_path, buf);
else else
{ {
@ -90,13 +90,13 @@ _e_wid_fsel_favorites_add(void *data1, void *data2)
snprintf(buf, sizeof(buf), snprintf(buf, sizeof(buf),
"%s/.e/e/fileman/favorites/%s-%d", "%s/.e/e/fileman/favorites/%s-%d",
homedir, homedir,
ecore_file_get_file(current_path), i); ecore_file_file_get(current_path), i);
i++; i++;
} }
symlink(current_path, buf); symlink(current_path, buf);
} }
fname = alloca(strlen(ecore_file_get_file(buf)) + 1); fname = alloca(strlen(ecore_file_file_get(buf)) + 1);
strcpy(fname, ecore_file_get_file(buf)); strcpy(fname, ecore_file_file_get(buf));
snprintf(buf, sizeof(buf), "%s/.e/e/fileman/favorites/.order", homedir); snprintf(buf, sizeof(buf), "%s/.e/e/fileman/favorites/.order", homedir);
if (ecore_file_exists(buf)) if (ecore_file_exists(buf))
{ {

View File

@ -228,7 +228,7 @@ _load_menu(const char *path)
menu = efreet_menu_parse(path); menu = efreet_menu_parse(path);
if (!menu) return apps; if (!menu) return apps;
ecore_list_goto_first(menu->entries); ecore_list_first_goto(menu->entries);
while ((entry = ecore_list_next(menu->entries))) while ((entry = ecore_list_next(menu->entries)))
{ {
if (entry->type != EFREET_MENU_ENTRY_DESKTOP) continue; if (entry->type != EFREET_MENU_ENTRY_DESKTOP) continue;
@ -350,7 +350,7 @@ _save_menu(E_Config_Dialog_Data *cfdata)
int ret; int ret;
menu = efreet_menu_new(); menu = efreet_menu_new();
ecore_list_goto_first(cfdata->apps); ecore_list_first_goto(cfdata->apps);
while ((desk = ecore_list_next(cfdata->apps))) while ((desk = ecore_list_next(cfdata->apps)))
efreet_menu_desktop_insert(menu, desk, -1); efreet_menu_desktop_insert(menu, desk, -1);
@ -368,7 +368,7 @@ _save_order(E_Config_Dialog_Data *cfdata)
order = e_order_new(cfdata->once->filename); order = e_order_new(cfdata->once->filename);
if (!order) return 0; if (!order) return 0;
e_order_clear(order); e_order_clear(order);
ecore_list_goto_first(cfdata->apps); ecore_list_first_goto(cfdata->apps);
while ((desk = ecore_list_next(cfdata->apps))) while ((desk = ecore_list_next(cfdata->apps)))
e_order_append(order, desk); e_order_append(order, desk);
@ -392,7 +392,7 @@ _fill_categories(E_Config_Dialog_Data *cfdata)
cats = efreet_util_desktop_categories_list(); cats = efreet_util_desktop_categories_list();
ecore_list_sort(cats, ECORE_COMPARE_CB(strcmp), ECORE_SORT_MIN); ecore_list_sort(cats, ECORE_COMPARE_CB(strcmp), ECORE_SORT_MIN);
ecore_list_goto_first(cats); ecore_list_first_goto(cats);
while ((category = ecore_list_next(cats))) while ((category = ecore_list_next(cats)))
e_widget_ilist_append(cfdata->o_apps, NULL, category, e_widget_ilist_append(cfdata->o_apps, NULL, category,
_category_cb_selected, cfdata, category); _category_cb_selected, cfdata, category);
@ -431,7 +431,7 @@ _fill_apps(E_Config_Dialog_Data *cfdata)
desktops = (Ecore_List *)efreet_util_desktop_category_list(cfdata->category); desktops = (Ecore_List *)efreet_util_desktop_category_list(cfdata->category);
ecore_list_sort(desktops, ECORE_COMPARE_CB(_cb_desktop_name_sort), ECORE_SORT_MIN); ecore_list_sort(desktops, ECORE_COMPARE_CB(_cb_desktop_name_sort), ECORE_SORT_MIN);
ecore_list_goto_first(desktops); ecore_list_first_goto(desktops);
while ((desktop = ecore_list_next(desktops))) while ((desktop = ecore_list_next(desktops)))
{ {
Evas_Object *icon; Evas_Object *icon;
@ -467,7 +467,7 @@ _fill_list(E_Config_Dialog_Data *cfdata)
edje_freeze(); edje_freeze();
e_widget_ilist_freeze(cfdata->o_list); e_widget_ilist_freeze(cfdata->o_list);
ecore_list_goto_first(cfdata->apps); ecore_list_first_goto(cfdata->apps);
while ((desktop = ecore_list_next(cfdata->apps))) while ((desktop = ecore_list_next(cfdata->apps)))
{ {
Evas_Object *icon = NULL; Evas_Object *icon = NULL;
@ -648,7 +648,7 @@ _cb_up(void *data, void *data2)
{ {
i = ecore_list_index(cfdata->apps); i = ecore_list_index(cfdata->apps);
ecore_list_remove(cfdata->apps); ecore_list_remove(cfdata->apps);
ecore_list_goto_index(cfdata->apps, (i - 1)); ecore_list_index_goto(cfdata->apps, (i - 1));
ecore_list_insert(cfdata->apps, desk); ecore_list_insert(cfdata->apps, desk);
} }
} }
@ -694,7 +694,7 @@ _cb_down(void *data, void *data2)
{ {
i = ecore_list_index(cfdata->apps); i = ecore_list_index(cfdata->apps);
ecore_list_remove(cfdata->apps); ecore_list_remove(cfdata->apps);
ecore_list_goto_index(cfdata->apps, (i + 1)); ecore_list_index_goto(cfdata->apps, (i + 1));
ecore_list_insert(cfdata->apps, desk); ecore_list_insert(cfdata->apps, desk);
} }
} }

View File

@ -67,7 +67,7 @@ _fill_data(E_Config_Dialog_Data *cfdata)
{ {
Efreet_Icon_Theme *theme; Efreet_Icon_Theme *theme;
ecore_list_goto_first(icon_themes); ecore_list_first_goto(icon_themes);
while ((theme = ecore_list_next(icon_themes))) while ((theme = ecore_list_next(icon_themes)))
cfdata->icon_themes = evas_list_append(cfdata->icon_themes, theme); cfdata->icon_themes = evas_list_append(cfdata->icon_themes, theme);
cfdata->icon_themes = evas_list_sort(cfdata->icon_themes, cfdata->icon_themes = evas_list_sort(cfdata->icon_themes,
@ -365,7 +365,7 @@ _ilist_cb_change(void *data, Evas_Object *obj)
char *path; char *path;
int first = 1; int first = 1;
ecore_list_goto_first(theme->paths.path); ecore_list_first_goto(theme->paths.path);
while ((path = ecore_list_next(theme->paths.path))) while ((path = ecore_list_next(theme->paths.path)))
{ {
length += strlen(theme->paths.path) + 16; length += strlen(theme->paths.path) + 16;
@ -394,7 +394,7 @@ _ilist_cb_change(void *data, Evas_Object *obj)
const char *inherit; const char *inherit;
int first = 1; int first = 1;
ecore_list_goto_first(theme->inherits); ecore_list_first_goto(theme->inherits);
while ((inherit = ecore_list_next(theme->inherits))) while ((inherit = ecore_list_next(theme->inherits)))
{ {
length += strlen(theme->paths.path) + 32; length += strlen(theme->paths.path) + 32;
@ -421,7 +421,7 @@ _ilist_cb_change(void *data, Evas_Object *obj)
free(text); free(text);
if (dir) if (dir)
{ {
dir = ecore_file_get_dir(dir); dir = ecore_file_dir_get(dir);
e_fm2_path_set(cfdata->gui.o_fm, dir, "/"); e_fm2_path_set(cfdata->gui.o_fm, dir, "/");
free(dir); free(dir);
} }

View File

@ -214,7 +214,7 @@ _imc_import_cb_changed(void *data, Evas_Object *obj)
{ {
char *strip; char *strip;
file = ecore_file_get_file(import->cfdata->file); file = ecore_file_file_get(import->cfdata->file);
strip = ecore_file_strip_ext(file); strip = ecore_file_strip_ext(file);
if (!strip) if (!strip)
{ {
@ -258,7 +258,7 @@ _imc_import_cb_ok(void *data, void *data2)
E_Input_Method_Config *imc; E_Input_Method_Config *imc;
char *strip; char *strip;
file = ecore_file_get_file(import->cfdata->file); file = ecore_file_file_get(import->cfdata->file);
strip = ecore_file_strip_ext(file); strip = ecore_file_strip_ext(file);
if (!strip) if (!strip)

View File

@ -237,7 +237,7 @@ _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
{ {
const char *f; const char *f;
f = ecore_file_get_file(cfdata->splash); f = ecore_file_file_get(cfdata->splash);
e_config->init_default_theme = evas_stringshare_add(f); e_config->init_default_theme = evas_stringshare_add(f);
} }
} }

View File

@ -213,7 +213,7 @@ _theme_import_cb_changed(void *data, Evas_Object *obj)
{ {
char *strip; char *strip;
file = ecore_file_get_file(import->cfdata->file); file = ecore_file_file_get(import->cfdata->file);
strip = ecore_file_strip_ext(file); strip = ecore_file_strip_ext(file);
if (!strip) if (!strip)
{ {
@ -259,7 +259,7 @@ _theme_import_cb_ok(void *data, void *data2)
{ {
char *strip; char *strip;
file = ecore_file_get_file(import->cfdata->file); file = ecore_file_file_get(import->cfdata->file);
snprintf(buf, sizeof(buf), "%s/.e/e/themes/%s", homedir, file); snprintf(buf, sizeof(buf), "%s/.e/e/themes/%s", homedir, file);
strip = ecore_file_strip_ext(file); strip = ecore_file_strip_ext(file);

View File

@ -308,7 +308,7 @@ _import_edj_gen(Import *import)
FILE *f; FILE *f;
evas = e_win_evas_get(import->win); evas = e_win_evas_get(import->win);
file = ecore_file_get_file(import->cfdata->file); file = ecore_file_file_get(import->cfdata->file);
homedir = e_user_homedir_get(); homedir = e_user_homedir_get();
fstrip = ecore_file_strip_ext(file); fstrip = ecore_file_strip_ext(file);
if (!fstrip) return; if (!fstrip) return;
@ -335,7 +335,7 @@ _import_edj_gen(Import *import)
return; return;
} }
imgdir = ecore_file_get_dir(import->cfdata->file); imgdir = ecore_file_dir_get(import->cfdata->file);
if (!imgdir) ipart[0] = '\0'; if (!imgdir) ipart[0] = '\0';
else else
{ {
@ -526,7 +526,7 @@ _import_cb_ok(void *data, void *data2)
if (path) import->cfdata->file = strdup(path); if (path) import->cfdata->file = strdup(path);
if (import->cfdata->file) if (import->cfdata->file)
{ {
file = ecore_file_get_file(import->cfdata->file); file = ecore_file_file_get(import->cfdata->file);
if (!e_util_glob_case_match(file, "*.edj")) if (!e_util_glob_case_match(file, "*.edj"))
_import_edj_gen(import); _import_edj_gen(import);
else else

View File

@ -135,7 +135,7 @@ _fill_data(E_Config_Dialog_Data *cfdata)
{ {
int len; int len;
sprintf(path, "%s", ecore_file_get_file(name)); sprintf(path, "%s", ecore_file_file_get(name));
len = strlen(path); len = strlen(path);
if (len > 6) if (len > 6)
path[len - 6] = '\0'; path[len - 6] = '\0';
@ -151,7 +151,7 @@ _fill_data(E_Config_Dialog_Data *cfdata)
ecore_list_destroy(therms); ecore_list_destroy(therms);
} }
ecore_list_goto_first(cfdata->sensors); ecore_list_first_goto(cfdata->sensors);
while ((name = ecore_list_next(cfdata->sensors))) while ((name = ecore_list_next(cfdata->sensors)))
{ {
if (!strcmp(cfdata->inst->sensor_name, name)) if (!strcmp(cfdata->inst->sensor_name, name))
@ -188,7 +188,7 @@ _create_data(E_Config_Dialog *cfd)
cfdata = E_NEW(E_Config_Dialog_Data, 1); cfdata = E_NEW(E_Config_Dialog_Data, 1);
cfdata->inst = cfd->data; cfdata->inst = cfd->data;
cfdata->sensors = ecore_list_new(); cfdata->sensors = ecore_list_new();
ecore_list_set_free_cb(cfdata->sensors, free); ecore_list_free_cb_set(cfdata->sensors, free);
_fill_data(cfdata); _fill_data(cfdata);
return cfdata; return cfdata;
} }
@ -320,7 +320,7 @@ _advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data
e_widget_framelist_object_append(of, ob); e_widget_framelist_object_append(of, ob);
e_widget_list_object_append(o, of, 1, 1, 0.5); e_widget_list_object_append(o, of, 1, 1, 0.5);
if (!ecore_list_is_empty(cfdata->sensors)) if (!ecore_list_empty_is(cfdata->sensors))
{ {
/* TODO: Notify user which thermal system is in use */ /* TODO: Notify user which thermal system is in use */
/* TODO: Let the user choose the wanted thermal system */ /* TODO: Let the user choose the wanted thermal system */
@ -329,7 +329,7 @@ _advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data
of = e_widget_framelist_add(evas, _("Sensors"), 0); of = e_widget_framelist_add(evas, _("Sensors"), 0);
rg = e_widget_radio_group_new(&(cfdata->sensor)); rg = e_widget_radio_group_new(&(cfdata->sensor));
ecore_list_goto_first(cfdata->sensors); ecore_list_first_goto(cfdata->sensors);
while ((name = ecore_list_next(cfdata->sensors))) while ((name = ecore_list_next(cfdata->sensors)))
{ {
ob = e_widget_radio_add(evas, _(name), n, rg); ob = e_widget_radio_add(evas, _(name), n, rg);
@ -409,7 +409,7 @@ _advanced_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
if (cfdata->inst->sensor_name) if (cfdata->inst->sensor_name)
evas_stringshare_del(cfdata->inst->sensor_name); evas_stringshare_del(cfdata->inst->sensor_name);
cfdata->inst->sensor_name = cfdata->inst->sensor_name =
evas_stringshare_add(ecore_list_goto_index(cfdata->sensors, cfdata->sensor)); evas_stringshare_add(ecore_list_index_goto(cfdata->sensors, cfdata->sensor));
temperature_face_update_config(cfdata->inst); temperature_face_update_config(cfdata->inst);
e_config_save_queue(); e_config_save_queue();

View File

@ -212,7 +212,7 @@ _temperature_sensor_init(Config_Face *inst)
inst->sensor_name = evas_stringshare_add("tz0"); inst->sensor_name = evas_stringshare_add("tz0");
#else #else
therms = ecore_file_ls("/proc/acpi/thermal_zone"); therms = ecore_file_ls("/proc/acpi/thermal_zone");
if ((therms) && (!ecore_list_is_empty(therms))) if ((therms) && (!ecore_list_empty_is(therms)))
{ {
char *name; char *name;
@ -259,7 +259,7 @@ _temperature_sensor_init(Config_Face *inst)
{ {
int len; int len;
sprintf(path, "%s", ecore_file_get_file(name)); sprintf(path, "%s", ecore_file_file_get(name));
len = strlen(path); len = strlen(path);
if (len > 6) if (len > 6)
path[len - 6] = '\0'; path[len - 6] = '\0';
@ -553,7 +553,7 @@ temperature_get_i2c_files()
result = ecore_list_new(); result = ecore_list_new();
if (result) if (result)
{ {
ecore_list_set_free_cb(result, free); ecore_list_free_cb_set(result, free);
/* Look through all the i2c devices. */ /* Look through all the i2c devices. */
therms = ecore_file_ls("/sys/bus/i2c/devices"); therms = ecore_file_ls("/sys/bus/i2c/devices");
@ -589,7 +589,7 @@ temperature_get_i2c_files()
} }
ecore_list_destroy(therms); ecore_list_destroy(therms);
} }
ecore_list_goto_first(result); ecore_list_first_goto(result);
} }
return result; return result;