summaryrefslogtreecommitdiff
path: root/tutorial/c/hello-cmdline/src/cmdline_main.c
blob: 0169c964c1ea3f37a70a94d10bdb3f51b865a357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <Eina.h>
#include <Efl_Core.h>

EAPI_MAIN void
efl_main(void *data EINA_UNUSED, const Efl_Event *ev)
{
   Efl_Loop_Arguments *args = ev->info;

   if (eina_array_count(args->argv) == 1)
     {
        printf("Hello World!\n");
     }
   else
     {
        printf("Hello %s!\n", (char *) eina_array_data_get(args->argv, 1));
     }

   efl_exit(0);
}
EFL_MAIN()