X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-context.c;h=87346b5d20718bb35e3b4fc8a2385e985dbaef0a;hb=ab4955d02a15b13d5dcfdfe8de1529db6538ac27;hp=174ac163813db051c3796deadfbb1422870827f1;hpb=863d6041e2ff2daa97fb1befb79dc3a69093e112;p=src%2Fapp-framework-binder.git diff --git a/src/afb-context.c b/src/afb-context.c index 174ac163..87346b5d 100644 --- a/src/afb-context.c +++ b/src/afb-context.c @@ -177,4 +177,9 @@ int afb_context_change_loa(struct afb_context *context, unsigned loa) return 1; } +unsigned afb_context_get_loa(struct afb_context *context) +{ + return context->loa_changing || context->loa_changed ? context->loa_out : context->loa_in; +} +