summaryrefslogtreecommitdiff
path: root/src/bin/main.c
blob: 814c0ade199906300802319454042b8f8074b652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "launcher.h"

Eina_Bool
launcher_game_add(void *data,
                  int type EINA_UNUSED,
                  void *event)
{
   Launcher *launcher;
   Vog_Game *va;

   launcher = data;
   va = event;

   DBG("launcher[%p] va[%p][%s]", launcher, va, va->name);

   return EINA_TRUE;
}

int main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
{
   Launcher *launcher;

   eina_init();
   ecore_init();
   vog_init();

   l_log_dom_global = eina_log_domain_register("vog", EINA_COLOR_YELLOW);

   launcher = calloc(1, sizeof(Launcher));
   launcher->vog = vog_new();
   launcher->ev.vega = ecore_event_handler_add(VOG_EVENT_GAME_ADD,
                                               launcher_game_add,
                                               launcher);
   ecore_main_loop_begin();

   vog_shutdown();
   ecore_shutdown();
   eina_shutdown();
   return 0;
}