summaryrefslogtreecommitdiff
path: root/src/bin/main.c
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2013-08-05 12:21:37 +0300
committerYakov Goldberg <yakov.g@samsung.com>2013-08-05 12:21:37 +0300
commitbc5f9971a8407caeaadcd65c93a90b13715f086c (patch)
treea6a2098e0c0e8893506116447dfe93f828452428 /src/bin/main.c
parentab1bb9c587cb008b47d7ae0aad6dc2f2179a60a5 (diff)
prepare handling/checking created objects in manager
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
Diffstat (limited to 'src/bin/main.c')
-rw-r--r--src/bin/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index ade4d72..9567310 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -26,7 +26,9 @@ _generate(const char *filename, const char* path, const char *project)
26 26
27 gui_context_validate(ctx); 27 gui_context_validate(ctx);
28 28
29 manager_init();
29 generator_ctx_source_generate(ctx, path, project); 30 generator_ctx_source_generate(ctx, path, project);
31 manager_shutdown();
30 gui_context_del(ctx); 32 gui_context_del(ctx);
31 return 0; 33 return 0;
32} 34}
@@ -45,12 +47,14 @@ _simulate(const char *filename)
45 if (!gui_parser_json_file_read(ctx, filename)) 47 if (!gui_parser_json_file_read(ctx, filename))
46 goto end; 48 goto end;
47 49
50 manager_init();
48 gui_context_validate(ctx); 51 gui_context_validate(ctx);
49 if (!simulator_ctx_call(ctx)) 52 if (!simulator_ctx_call(ctx))
50 goto end; 53 goto end;
51 54
52 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 55 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
53 elm_run(); 56 elm_run();
57 manager_shutdown();
54 elm_exit(); 58 elm_exit();
55 59
56end: 60end:
@@ -126,8 +130,10 @@ main(int argc, char **argv)
126 130
127 if (mode == NULL) 131 if (mode == NULL)
128 { 132 {
133 manager_init();
129 egui_start(filename); 134 egui_start(filename);
130 elm_run(); 135 elm_run();
136 manager_shutdown();
131 //egui_stop(); 137 //egui_stop();
132 } 138 }
133 else if (!strcmp(mode, "-s")) 139 else if (!strcmp(mode, "-s"))