diff options
author | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
commit | 07274513e984f0b5544586c74508ccd16e7dcafa (patch) | |
tree | b32ff2a9136fbc1a4a6a0ed1e4d79cde0f5f16d9 /libraries/eina/src/examples/eina_file_01.c | |
parent | Added Irrlicht 1.8, but without all the Windows binaries. (diff) | |
download | SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.zip SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.gz SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.bz2 SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.xz |
Remove EFL, since it's been released now.
Diffstat (limited to 'libraries/eina/src/examples/eina_file_01.c')
-rw-r--r-- | libraries/eina/src/examples/eina_file_01.c | 45 |
1 files changed, 0 insertions, 45 deletions
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 @@ | |||
1 | //Compile with: | ||
2 | //gcc -g eina_file_01.c -o eina_file_01 `pkg-config --cflags --libs eina` | ||
3 | |||
4 | #include <stdio.h> | ||
5 | #include <Eina.h> | ||
6 | |||
7 | static void | ||
8 | _print_cb(const char *name, const char *path, void *data) | ||
9 | { | ||
10 | printf("file %s in %s\n", name, path); | ||
11 | } | ||
12 | |||
13 | int | ||
14 | main(int argc, char **argv) | ||
15 | { | ||
16 | Eina_Iterator *it; | ||
17 | const char *f_name; | ||
18 | const Eina_File_Direct_Info *f_info; | ||
19 | |||
20 | eina_init(); | ||
21 | |||
22 | eina_file_dir_list("/home/", EINA_FALSE, _print_cb, NULL); | ||
23 | |||
24 | it = eina_file_ls("/home/"); | ||
25 | EINA_ITERATOR_FOREACH(it, f_name) | ||
26 | { | ||
27 | printf("%s\n", f_name); | ||
28 | eina_stringshare_del(f_name); | ||
29 | } | ||
30 | eina_iterator_free(it); | ||
31 | |||
32 | it = eina_file_stat_ls("/home/"); | ||
33 | EINA_ITERATOR_FOREACH(it, f_info) | ||
34 | printf("%s if of type %d\n", f_info->path, f_info->type); | ||
35 | eina_iterator_free(it); | ||
36 | |||
37 | it = eina_file_direct_ls("/home/"); | ||
38 | EINA_ITERATOR_FOREACH(it, f_info) | ||
39 | printf("%s if of type %d\n", f_info->path, f_info->type); | ||
40 | eina_iterator_free(it); | ||
41 | |||
42 | eina_shutdown(); | ||
43 | |||
44 | return 0; | ||
45 | } | ||