EFL 1.7 svn doobies
[profile/ivi/eina.git] / src / examples / eina_log_01.c
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 }