X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fevmgr.c;h=744d08ba02e89da032fc74894e61178cc62330a8;hb=f9c743046f94769c25ffc5bfd8d190c53cc4d613;hp=557a9f3ae6819da030995baa41055aef7a500ae9;hpb=02fe255525d3805350676445b5c8854afa46cbe4;p=src%2Fapp-framework-binder.git diff --git a/src/evmgr.c b/src/evmgr.c index 557a9f3a..744d08ba 100644 --- a/src/evmgr.c +++ b/src/evmgr.c @@ -47,6 +47,14 @@ struct evmgr #define EVLOOP_STATE_WAIT 1U #define EVLOOP_STATE_RUN 2U +/** + * prepare the evmgr to run + */ +void evmgr_prepare_run(struct evmgr *evmgr) +{ + evmgr->state = EVLOOP_STATE_WAIT|EVLOOP_STATE_RUN; +} + /** * Run the event loop is set. */