X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=test%2Fvideo_util_test.c;h=6895ba09f641dcc4ec0ff0ac3900d52c6bf93e3e;hb=788c163f7bfad861710c3ccb80dab681f0f53ad1;hp=1e4403972a9740e957753b4c4875e84717d9509a;hpb=168484e5c5f68536ceb99ac0119f40e9fb22605d;p=platform%2Fcore%2Fapi%2Fvideo-util.git diff --git a/test/video_util_test.c b/test/video_util_test.c index 1e44039..6895ba0 100644 --- a/test/video_util_test.c +++ b/test/video_util_test.c @@ -19,8 +19,6 @@ #include #include #include -#include -#include #include #define PACKAGE "video_util_test" @@ -72,26 +70,10 @@ typedef struct { static void display_sub_basic(); -static int _create_app(void *data) -{ - LOGD("My app is going alive!\n"); - return 0; -} - -static int _terminate_app(void *data) -{ - LOGD("My app is going gone!\n"); - return 0; -} - -struct appcore_ops ops = { - .create = _create_app, - .terminate = _terminate_app, -}; void _quit_program(void) { - elm_exit(); + exit(0); } bool test_transcode_spec_cb(int value, void *user_data) @@ -667,14 +649,17 @@ gboolean input(GIOChannel *channel) int main(int argc, char *argv[]) { GIOChannel *stdin_channel; + GMainLoop *loop = g_main_loop_new(NULL, 0); stdin_channel = g_io_channel_unix_new(0); g_io_channel_set_flags(stdin_channel, G_IO_FLAG_NONBLOCK, NULL); g_io_add_watch(stdin_channel, G_IO_IN, (GIOFunc)input, NULL); displaymenu(); - ops.data = NULL; + g_main_loop_run(loop); + g_print("STOP main loop\n"); - return appcore_efl_main(PACKAGE, &argc, &argv, &ops); + g_main_loop_unref(loop); + return 0; }