* Bug #10433 fixed - Xcos stop simulation button
[scilab.git] / scilab / modules / xcos / sci_gateway / cpp / sci_xcosSimulationStarted.cpp
1 /*
2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2012 - Scilab Enterprises - Alexandre HERISSE
4 *
5 * This file must be used under the terms of the CeCILL.
6 * This source file is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution.  The terms
8 * are also available at
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10 *
11 */
12 /*--------------------------------------------------------------------------*/
13 #include "Xcos.hxx"
14 #include "xcosUtilities.hxx"
15 extern "C"
16 {
17 #include "gw_xcos.h"
18 #include "api_scilab.h"
19 #include "localization.h"
20 #include "Scierror.h"
21 #include "MALLOC.h"
22 #include "freeArrayOfString.h"
23 #include "getScilabJavaVM.h"
24 }
25 /*--------------------------------------------------------------------------*/
26 using namespace org_scilab_modules_xcos;
27 /*--------------------------------------------------------------------------*/
28 int sci_xcosSimulationStarted(char *fname, unsigned long fname_len)
29 {
30     CheckRhs(0, 0);
31     CheckLhs(0, 1);
32
33     /* call the implementation */
34     Xcos::xcosSimulationStarted(getScilabJavaVM());
35
36     LhsVar(1) = 0;
37     PutLhsVar();
38
39     return 0;
40 }
41 /*--------------------------------------------------------------------------*/