diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2017-11-08 14:59:06 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2017-12-03 12:58:53 +0000 |
commit | 4080e622b7661c0f2305c3d4d84021a456a76ceb (patch) | |
tree | e4217e1c22b42af4fbc90c00e56b49272122deae /src/host/layer23/src/mobile/settings.c | |
parent | 32dec4236e5bf3753bd84715d5e099272ea5d481 (diff) |
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
Diffstat (limited to 'src/host/layer23/src/mobile/settings.c')
-rw-r--r-- | src/host/layer23/src/mobile/settings.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <string.h> #include <osmocom/core/talloc.h> +#include <osmocom/bb/mobile/app_mobile.h> #include <osmocom/bb/common/logging.h> #include <osmocom/bb/common/osmocom_data.h> #include <osmocom/bb/common/networks.h> @@ -143,6 +144,8 @@ int gsm_settings_exit(struct osmocom_ms *ms) talloc_free(abbrev); } + script_lua_close(ms); + return 0; } |