add function to get the current LOA
[src/app-framework-binder.git] / src / afb-context.c
index 174ac16..87346b5 100644 (file)
@@ -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;
+}
+