1 /*
2  *  Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3  *  Copyright (C) 2011-2011 - DIGITEO - Bruno JOFRET
4  *
5  * Copyright (C) 2012 - 2016 - Scilab Enterprises
6  *
7  * This file is hereby licensed under the terms of the GNU GPL v2.0,
8  * pursuant to article 5.3.4 of the CeCILL v.2.1.
9  * This file was originally licensed under the terms of the CeCILL v2.1,
10  * and continues to be available under such terms.
11  * For more information, see the COPYING file which you should have received
12  * along with this program.
13  *
14  */
15 #ifndef __GATEWAY_PROTOTYPE_H__
16 #define __GATEWAY_PROTOTYPE_H__
17 
18 typedef void* scilabEnv;
19 typedef int* scilabVar;
20 typedef int* scilabOpt;
21 
22 typedef int (*OLDGW_FUNC)(char *fname, void* pvApiCtx);
23 typedef int(*GW_C_FUNC)(scilabEnv env, int nin, scilabVar* in, int nopt, scilabOpt opt, int nout, scilabVar* out);
24 typedef int (*MEXGW_FUNC)(int nlhs, int* plhs[], int nrhs, int* prhs[]);
25 
26 #define STACK_GATEWAY_PROTOTYPE(__gateway__) int __gateway__(char* fname, void* pvApiCtx)
27 #define C_GATEWAY_PROTOTYPE(__gateway__) int __gateway__(scilabEnv env, int nin, scilabVar* in, int nopt, scilabOpt opt, int nout, scilabVar* out)
28 #define MEX_GATEWAY_PROTOTYPE(__gateway__) int (__gateway__) (int nlhs, int* plhs[], int nrhs, int* prhs[]);
29 
30 #endif /* !__GATEWAY_PROTOTYPE_H__ */
31