summaryrefslogtreecommitdiffstats
path: root/conf.d/project/lua.d/onload-audio-controls.lua
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-08-16 10:49:51 +0200
committerFulup Ar Foll <fulup@iot.bzh>2017-08-16 10:49:51 +0200
commit4ca8fd4015479fa758a789d137a693c30fec8cae (patch)
tree45cac25de622ded5802f69f71ce958d3633ab22a /conf.d/project/lua.d/onload-audio-controls.lua
parent716d28f99637d6f2b8eb2758c2da41da67b8027c (diff)
Moved FileConfigScan to AudioCommon and Documentation
Diffstat (limited to 'conf.d/project/lua.d/onload-audio-controls.lua')
-rw-r--r--conf.d/project/lua.d/onload-audio-controls.lua23
1 files changed, 21 insertions, 2 deletions
diff --git a/conf.d/project/lua.d/onload-audio-controls.lua b/conf.d/project/lua.d/onload-audio-controls.lua
index 2fbf4f5..b6fd811 100644
--- a/conf.d/project/lua.d/onload-audio-controls.lua
+++ b/conf.d/project/lua.d/onload-audio-controls.lua
@@ -22,13 +22,32 @@ function Audio_Init_CB (status, result, context)
print ("--inlua:Audio_Init_CB-- result=", Dump_Table(result))
print ("--inlua:Audio_Init_CB-- context=", Dump_Table(context))
- -- (Fulup Bug) AFB:debug ("Audio_Init_Hal result=%s context=%s", result, context)
- AFB:debug ("Audio_Init_Hal result=%s context=%s", {["ret1"]=5678, ["ret2"]="abcd"}, context)
+
+ -- AFB:notice ("Audio_Init_Hal result='%s' context='%s'", result, context)
+ -- AFB:debug ("Audio_Init_Hal result=%s context=%s", {["ret1"]=5678, ["ret2"]="abcd"}, context)
end
-- Function call at binding load time
function Audio_Init_Hal(args, query)
+
+ local nextT = {
+ ["next1"]=1234,
+ ["next2"]="nested",
+ ["next3"]=9999,
+ }
+
+ local response = {
+ ["arg1"]=1234,
+ ["arg2"]=nextT,
+ ["arg3"]=5678,
+ }
+
+ print ("--inlua:Audio_Init-- response=", Dump_Table(response))
+
+ AFB:notice ("**** in-lua table='%s' ****", response)
+
+
AFB:notice ("--LUA:Audio_Init_Hal args=%s query=%s", args, query);
-- query asynchronously loaded HAL