From 07274513e984f0b5544586c74508ccd16e7dcafa Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 13 Jan 2013 17:29:19 +1000 Subject: Remove EFL, since it's been released now. --- libraries/eina/src/examples/eina_file_01.c | 45 ------------------------------ 1 file changed, 45 deletions(-) delete mode 100644 libraries/eina/src/examples/eina_file_01.c (limited to 'libraries/eina/src/examples/eina_file_01.c') diff --git a/libraries/eina/src/examples/eina_file_01.c b/libraries/eina/src/examples/eina_file_01.c deleted file mode 100644 index 2c945b3..0000000 --- a/libraries/eina/src/examples/eina_file_01.c +++ /dev/null @@ -1,45 +0,0 @@ -//Compile with: -//gcc -g eina_file_01.c -o eina_file_01 `pkg-config --cflags --libs eina` - -#include -#include - -static void -_print_cb(const char *name, const char *path, void *data) -{ - printf("file %s in %s\n", name, path); -} - -int -main(int argc, char **argv) -{ - Eina_Iterator *it; - const char *f_name; - const Eina_File_Direct_Info *f_info; - - eina_init(); - - eina_file_dir_list("/home/", EINA_FALSE, _print_cb, NULL); - - it = eina_file_ls("/home/"); - EINA_ITERATOR_FOREACH(it, f_name) - { - printf("%s\n", f_name); - eina_stringshare_del(f_name); - } - eina_iterator_free(it); - - it = eina_file_stat_ls("/home/"); - EINA_ITERATOR_FOREACH(it, f_info) - printf("%s if of type %d\n", f_info->path, f_info->type); - eina_iterator_free(it); - - it = eina_file_direct_ls("/home/"); - EINA_ITERATOR_FOREACH(it, f_info) - printf("%s if of type %d\n", f_info->path, f_info->type); - eina_iterator_free(it); - - eina_shutdown(); - - return 0; -} -- cgit v1.1