diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/eina/src/examples/eina_log_01.c | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/eina/src/examples/eina_log_01.c')
-rw-r--r-- | libraries/eina/src/examples/eina_log_01.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libraries/eina/src/examples/eina_log_01.c b/libraries/eina/src/examples/eina_log_01.c new file mode 100644 index 0000000..7a20ca9 --- /dev/null +++ b/libraries/eina/src/examples/eina_log_01.c | |||
@@ -0,0 +1,27 @@ | |||
1 | //Compile with: | ||
2 | //gcc -Wall -o eina_log_01 eina_log_01.c `pkg-config --cflags --libs eina` | ||
3 | |||
4 | #include <stdlib.h> | ||
5 | #include <stdio.h> | ||
6 | |||
7 | #include <Eina.h> | ||
8 | |||
9 | void test_warn(void) | ||
10 | { | ||
11 | EINA_LOG_WARN("Here is a warning message"); | ||
12 | } | ||
13 | |||
14 | int main(void) | ||
15 | { | ||
16 | if (!eina_init()) | ||
17 | { | ||
18 | printf("log during the initialization of Eina_Log module\n"); | ||
19 | return EXIT_FAILURE; | ||
20 | } | ||
21 | |||
22 | test_warn(); | ||
23 | |||
24 | eina_shutdown(); | ||
25 | |||
26 | return EXIT_SUCCESS; | ||
27 | } | ||