add C interface on static_runner new function 38/21638/1
Antoine ELIAS [Wed, 9 Dec 2020 11:29:00 +0000 (12:29 +0100)]
Change-Id: I30f85a1ebe4849da62f50aadfdaadc6be9967136

scilab/modules/core/includes/runner.hxx
scilab/modules/core/src/cpp/runner.cpp

index bf8ec20..7089de5 100644 (file)
@@ -101,6 +101,7 @@ extern "C"
 {
     void StaticRunner_launch(void);
     int StaticRunner_isRunnerAvailable(void);
+    int StaticRunner_isRunning(void);
     int StaticRunner_isInterruptibleCommand(void);
     command_origin_t StaticRunner_getCommandOrigin(void);
     void StaticRunner_setCommandOrigin(command_origin_t _origin);
index dede1be..d69411e 100644 (file)
@@ -291,6 +291,11 @@ void StaticRunner_launch(void)
     StaticRunner::launch();
 }
 
+int StaticRunner_isRunning(void)
+{
+    return StaticRunner::isRunning() ? 1 : 0;
+}
+
 int StaticRunner_isRunnerAvailable(void)
 {
     return StaticRunner::isRunnerAvailable() ? 1 : 0;