diff options
author | Shashank | 2017-05-29 12:40:26 +0530 |
---|---|---|
committer | Shashank | 2017-05-29 12:40:26 +0530 |
commit | 0345245e860375a32c9a437c4a9d9cae807134e9 (patch) | |
tree | ad51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /modules/xcos/includes | |
download | scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2 scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip |
CMSCOPE changed
Diffstat (limited to 'modules/xcos/includes')
-rwxr-xr-x | modules/xcos/includes/dynlib_xcos.h | 28 | ||||
-rwxr-xr-x | modules/xcos/includes/gw_xcos.h | 52 | ||||
-rwxr-xr-x | modules/xcos/includes/xcosUtilities.hxx | 50 |
3 files changed, 130 insertions, 0 deletions
diff --git a/modules/xcos/includes/dynlib_xcos.h b/modules/xcos/includes/dynlib_xcos.h new file mode 100755 index 000000000..33072f70f --- /dev/null +++ b/modules/xcos/includes/dynlib_xcos.h @@ -0,0 +1,28 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) DIGITEO - 2009 - Allan CORNET +* +* This file must be used under the terms of the CeCILL. +* This source file is licensed as described in the file COPYING, which +* you should have received as part of this distribution. The terms +* are also available at +* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +* +*/ + +/*--------------------------------------------------------------------------*/ +#ifndef __DYNLIB_XCOS_H__ +#define __DYNLIB_XCOS_H__ + +#ifdef _MSC_VER +#ifdef XCOS_EXPORTS +#define XCOS_IMPEXP __declspec(dllexport) +#else +#define XCOS_IMPEXP __declspec(dllimport) +#endif +#else +#define XCOS_IMPEXP +#endif + +#endif /* __DYNLIB_XCOS_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/xcos/includes/gw_xcos.h b/modules/xcos/includes/gw_xcos.h new file mode 100755 index 000000000..f45517896 --- /dev/null +++ b/modules/xcos/includes/gw_xcos.h @@ -0,0 +1,52 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO - 2009-2010 - Allan CORNET <allan.cornet@scilab.org> + * Copyright (C) DIGITEO - 2010-2010 - Clément DAVID <clement.david@scilab.org> + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +#ifndef __GW_XCOS__ +#define __GW_XCOS__ +/*--------------------------------------------------------------------------*/ +#include "dynlib_xcos.h" +/*--------------------------------------------------------------------------*/ +XCOS_IMPEXP int gw_xcos(void); + +/*--------------------------------------------------------------------------*/ +int sci_Xcos(char *fname, unsigned long l); +int sci_xcosNotify(char *fname, unsigned long l); +int sci_warnBlockByUID(char *fname, unsigned long l); +int sci_closeXcosFromScilab(char *fname, unsigned long l); +int sci_xcosDiagramToScilab(char *fname, unsigned long l); +int sci_xcosDiagramOpen(char *fname, unsigned long l); +int sci_xcosDiagramClose(char *fname, unsigned long l); +int sci_xcosPalLoad(char *fname, unsigned long l); +int sci_xcosPalCategoryAdd(char *fname, unsigned long l); +int sci_xcosPalDelete(char *fname, unsigned long l); +int sci_xcosPalMove(char *fname, unsigned long l); +int sci_xcosPalEnable(char *fname, unsigned long l); +int sci_xcosPalDisable(char *fname, unsigned long l); +int sci_xcosPalGenerateIcon(char *fname, unsigned long l); +int sci_xcosConfigureXmlFile(char *fname, unsigned long l); +int sci_xcosAddToolsMenu(char *fname, unsigned long l); +int sci_xcosUpdateBlock(char *fname, unsigned long l); +int sci_loadXcos(char *fname, unsigned long l); +int sci_xcosSimulationStarted(char *fname, unsigned long l); +int sci_xcosPalGet(char *fname, unsigned long l); + +/*--------------------------------------------------------------------------*/ +/** +* xcos already started +* @return 1 if xcos started else 0 +*/ +int xcosStarted(void); + +/*--------------------------------------------------------------------------*/ +#endif /* __GW_XCOS__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/xcos/includes/xcosUtilities.hxx b/modules/xcos/includes/xcosUtilities.hxx new file mode 100755 index 000000000..218340d23 --- /dev/null +++ b/modules/xcos/includes/xcosUtilities.hxx @@ -0,0 +1,50 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +#ifndef __XCOS_UTILITIES_HXX__ +#define __XCOS_UTILITIES_HXX__ + +/** + * Read a single boolean on the stack. + * + * @param _pvCtx private api context (opaque structure) + * @param rhsPosition the position on the stack. + * @param[out] out the read value. + * @param fname the function name used for the call. + * @return status of the operation (<> 0 on error) + */ +int readSingleBoolean(void* _pvCtx, int rhsPosition, bool* out, const char* fname); + +/** + * Read a single string on the stack. + * + * @param _pvCtx private api context (opaque structure) + * @param rhsPosition the position on the stack. + * @param[out] out the read value. + * @param fname the function name used for the call. + * @return status of the operation (<> 0 on error) + */ +int readSingleString(void* _pvCtx, int rhsPosition, char** out, const char* fname); + +/** + * Read a vector of string on the stack. + * + * @param _pvCtx private api context (opaque structure) + * @param rhsPosition the position on the stack. + * @param[out] out the read value. + * @param[out] vectorLength the length of the vector. + * @param fname the function name used for the call. + * @return status of the operation (<> 0 on error) + */ +int readVectorString(void* _pvCtx, int rhsPosition, char*** out, int* vectorLength, char* fname); + +#endif /* !__XCOS_UTILITIES_HXX__ */ |