X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fbase%2Fappcore_base.c;h=e4208e79e25849183b0a5a84a95e9aa2bf31a925;hb=d82ac10ce2075e4ee89ea37594e05cfc4adc3d87;hp=00ab25e220d0b71d170d73004fbb1d79f6a0eb6f;hpb=2d7b58b2d4c0888571886446facc7bb78eea5812;p=platform%2Fcore%2Fappfw%2Fapp-core.git diff --git a/src/base/appcore_base.c b/src/base/appcore_base.c index 00ab25e..e4208e7 100644 --- a/src/base/appcore_base.c +++ b/src/base/appcore_base.c @@ -868,6 +868,9 @@ EXPORT_API int appcore_base_init(appcore_base_ops ops, int argc, char **argv, vo __context.suspended_state = false; __context.allowed_bg = false; + if (__context.ops.init) + __context.ops.init(argc, argv, data); + if (__context.ops.set_i18n) __context.ops.set_i18n(__context.data); @@ -928,6 +931,9 @@ EXPORT_API void appcore_base_fini(void) } __context.dirty = false; + + if (__context.ops.finish) + __context.ops.finish(); } EXPORT_API int appcore_base_flush_memory(void) @@ -1238,6 +1244,8 @@ EXPORT_API appcore_base_ops appcore_base_get_default_ops(void) ops.terminate = __on_terminate; ops.receive = __on_receive; ops.set_i18n = __on_set_i18n; + ops.init = NULL; + ops.finish = NULL; ops.run = NULL; ops.exit = NULL; ops.set_event = __on_set_event;