From 4080e622b7661c0f2305c3d4d84021a456a76ceb Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 8 Nov 2017 14:59:06 +0100 Subject: mobile: Add initial support for scripting support Right now the script will be executed once it is loaded. Make sure to write it into the config file last. Expose various log commands for logging. Jump through some hoops and get the filename and line number from lua. Change-Id: I456f6b6b5e1a14ed6c8cb0dcc5140093d3c61ef6 --- src/host/layer23/src/mobile/settings.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/host/layer23/src/mobile/settings.c') diff --git a/src/host/layer23/src/mobile/settings.c b/src/host/layer23/src/mobile/settings.c index 2b518379..6d50c6b3 100644 --- a/src/host/layer23/src/mobile/settings.c +++ b/src/host/layer23/src/mobile/settings.c @@ -24,6 +24,7 @@ #include #include +#include #include #include #include @@ -143,6 +144,8 @@ int gsm_settings_exit(struct osmocom_ms *ms) talloc_free(abbrev); } + script_lua_close(ms); + return 0; } -- cgit v1.2.3