Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
add function to get the current LOA
[src/app-framework-binder.git]
/
src
/
afb-context.c
diff --git
a/src/afb-context.c
b/src/afb-context.c
index
174ac16
..
87346b5
100644
(file)
--- 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;
}
return 1;
}
+unsigned afb_context_get_loa(struct afb_context *context)
+{
+ return context->loa_changing || context->loa_changed ? context->loa_out : context->loa_in;
+}
+