Diff between 2908491c7efee5e14e880aa7a49ee6e5f098a24d and 1428d8461e92650f4414b3443bc6adc7cce70c49

Changed Files

File Additions Deletions Status
src/shared/shell.c +5 -0 modified
src/shared/shell.h +2 -0 modified

Full Patch

diff --git a/src/shared/shell.c b/src/shared/shell.c
index 246de20..c314871 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -1670,3 +1670,8 @@ void *bt_shell_get_env(const char *name)
 
 	return env->value;
 }
+
+int bt_shell_get_timeout(void)
+{
+	return data.timeout;
+}
diff --git a/src/shared/shell.h b/src/shared/shell.h
index a9a635b..b03250c 100644
--- a/src/shared/shell.h
+++ b/src/shared/shell.h
@@ -85,4 +85,6 @@ bool bt_shell_detach(void);
 void bt_shell_set_env(const char *name, void *value);
 void *bt_shell_get_env(const char *name);
 
+int bt_shell_get_timeout(void);
+
 void bt_shell_cleanup(void);