1 /* Copyright INRIA */ 2 /* Allan CORNET 2006 */ 3 4 #ifndef SCICOS_DEF 5 #define SCICOS_DEF 6 7 8 #if _LCC_ & FORDLL 9 #define IMPORT __declspec (dllimport) 10 #else 11 #ifdef SCICOS_EXPORTS 12 #define IMPORT_SCICOS 13 #else 14 #ifdef FORDLL 15 #define IMPORT_SCICOS extern __declspec (dllimport) 16 #else 17 #define IMPORT_SCICOS 18 #endif 19 #endif 20 #endif 21 22 23 24 typedef struct 25 { 26 int counter; 27 } COSDEBUGCOUNTER_struct; 28 29 30 typedef struct 31 { 32 int solver; 33 } SOLVER_struct; 34 35 36 typedef struct 37 { 38 int kfun; 39 } CURBLK_struct; 40 41 42 typedef struct 43 { 44 double scale; 45 } RTFACTOR_struct; 46 47 48 49 typedef struct 50 { 51 int ptr; 52 } SCSPTR_struct; 53 54 55 typedef struct 56 { 57 int idb; 58 } DBCOS_struct; 59 60 61 typedef struct 62 { 63 double atol, rtol, ttol, deltat; 64 } COSTOL_struct; 65 66 /*! 67 * \brief Storage for the halt flag. 68 */ 69 typedef struct 70 { 71 /*! 72 * \brief halt the simulation flag 73 * \a 0 is used to continue the simulation 74 * \a 1 is used to halt the simulation 75 * \a 2 is used to switch to the final time then halt the simulation 76 */ 77 int halt; 78 } COSHLT_struct; 79 80 81 typedef struct 82 { 83 int cosd; 84 } COSDEBUG_struct; 85 86 #define COSERR_len 4096 87 typedef struct 88 { 89 char buf[COSERR_len]; 90 } COSERR_struct; 91 92 typedef struct 93 { 94 int isrun; 95 } COSIM_struct; 96 97 98 #endif /*SCICOS_DEF*/ 99