aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/eina/src/examples/eina_log_02.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-04 18:41:13 +1000
committerDavid Walter Seikel2012-01-04 18:41:13 +1000
commitdd7595a3475407a7fa96a97393bae8c5220e8762 (patch)
treee341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/eina/src/examples/eina_log_02.c
parentAdd the skeleton. (diff)
downloadSledjHamr-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 '')
-rw-r--r--libraries/eina/src/examples/eina_log_02.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/libraries/eina/src/examples/eina_log_02.c b/libraries/eina/src/examples/eina_log_02.c
new file mode 100644
index 0000000..a056729
--- /dev/null
+++ b/libraries/eina/src/examples/eina_log_02.c
@@ -0,0 +1,38 @@
1//Compile with:
2//gcc -Wall -o eina_log_02 eina_log_02.c `pkg-config --cflags --libs eina`
3
4#include <stdlib.h>
5#include <stdio.h>
6
7#include <Eina.h>
8
9void test(int i)
10{
11 EINA_LOG_DBG("Entering test");
12
13 if (i < 0)
14 {
15 EINA_LOG_ERR("Argument is negative");
16 return;
17 }
18
19 EINA_LOG_INFO("argument non negative");
20
21 EINA_LOG_DBG("Exiting test");
22}
23
24int main(void)
25{
26 if (!eina_init())
27 {
28 printf("log during the initialization of Eina_Log module\n");
29 return EXIT_FAILURE;
30 }
31
32 test(-1);
33 test(0);
34
35 eina_shutdown();
36
37 return EXIT_SUCCESS;
38}