summaryrefslogtreecommitdiffstats
path: root/scilab
diff options
context:
space:
mode:
authorAntoine ELIAS <antoine.elias@esi-group.com>2020-12-09 12:29:00 +0100
committerAntoine ELIAS <antoine.elias@esi-group.com>2020-12-09 12:29:18 +0100
commitb40e91a8ec2424c159681bad6dddd31a053d1f61 (patch)
treea1e64d0d367372e37b6ce8723e93b9adab1cd14a /scilab
parent2b962febcc3937007cc71d5e4f38e8b012e5c8b1 (diff)
downloadscilab-b40e91a8ec2424c159681bad6dddd31a053d1f61.zip
scilab-b40e91a8ec2424c159681bad6dddd31a053d1f61.tar.gz
add C interface on static_runner new function
Change-Id: I30f85a1ebe4849da62f50aadfdaadc6be9967136
Diffstat (limited to 'scilab')
-rw-r--r--scilab/modules/core/includes/runner.hxx1
-rw-r--r--scilab/modules/core/src/cpp/runner.cpp5
2 files changed, 6 insertions, 0 deletions
diff --git a/scilab/modules/core/includes/runner.hxx b/scilab/modules/core/includes/runner.hxx
index bf8ec20..7089de5 100644
--- a/scilab/modules/core/includes/runner.hxx
+++ b/scilab/modules/core/includes/runner.hxx
@@ -101,6 +101,7 @@ extern "C"
101{ 101{
102 void StaticRunner_launch(void); 102 void StaticRunner_launch(void);
103 int StaticRunner_isRunnerAvailable(void); 103 int StaticRunner_isRunnerAvailable(void);
104 int StaticRunner_isRunning(void);
104 int StaticRunner_isInterruptibleCommand(void); 105 int StaticRunner_isInterruptibleCommand(void);
105 command_origin_t StaticRunner_getCommandOrigin(void); 106 command_origin_t StaticRunner_getCommandOrigin(void);
106 void StaticRunner_setCommandOrigin(command_origin_t _origin); 107 void StaticRunner_setCommandOrigin(command_origin_t _origin);
diff --git a/scilab/modules/core/src/cpp/runner.cpp b/scilab/modules/core/src/cpp/runner.cpp
index dede1be..d69411e 100644
--- a/scilab/modules/core/src/cpp/runner.cpp
+++ b/scilab/modules/core/src/cpp/runner.cpp
@@ -291,6 +291,11 @@ void StaticRunner_launch(void)
291 StaticRunner::launch(); 291 StaticRunner::launch();
292} 292}
293 293
294int StaticRunner_isRunning(void)
295{
296 return StaticRunner::isRunning() ? 1 : 0;
297}
298
294int StaticRunner_isRunnerAvailable(void) 299int StaticRunner_isRunnerAvailable(void)
295{ 300{
296 return StaticRunner::isRunnerAvailable() ? 1 : 0; 301 return StaticRunner::isRunnerAvailable() ? 1 : 0;