lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #ifndef _h_EJ |
| 2 | #define _h_EJ 1 |
| 3 | |
| 4 | #ifndef UEMF |
| 5 | #include "basic/basic.h" |
| 6 | #include "emf/emf.h" |
| 7 | #else |
| 8 | #include "uemf.h" |
| 9 | #endif |
| 10 | |
| 11 | extern void ejSetVar(int eid, char_t *var, char_t *value); |
| 12 | extern int ejGetVar(int eid, char_t *var, char_t **value); |
| 13 | extern char_t *ejEval(int eid, char_t *script, char_t **emsg); |
| 14 | |
| 15 | extern int ejArgs(int argc, char_t **argv, char_t *fmt, ...); |
| 16 | extern void ejSetResult(int eid, char_t *s); |
| 17 | extern int ejOpenEngine(sym_fd_t variables, sym_fd_t functions); |
| 18 | extern void ejCloseEngine(int eid); |
| 19 | extern int ejSetGlobalFunction(int eid, char_t *name, int (*fn)(int eid, void *handle, int argc, char_t **argv)); |
| 20 | |
| 21 | |
| 22 | #endif /* _h_EJ */ |
| 23 | |