private.h 901 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * standalone.h
  3. */
  4. #include "lub/c_decl.h"
  5. #include "clish/shell.h"
  6. _BEGIN_C_DECL struct Tcl_Interp;
  7. typedef struct tclish_cookie_s tclish_cookie_t;
  8. struct tclish_cookie_s {
  9. struct Tcl_Interp *interp;
  10. };
  11. /* utility functions */
  12. extern void clish_startup(int argc, const char **argv);
  13. extern void clish_shutdown(void);
  14. extern void tclish_show_result(struct Tcl_Interp *interp);
  15. /* storage */
  16. extern struct termios clish_default_tty_termios;
  17. /* clish callback functions */
  18. extern clish_shell_access_fn_t clish_access_callback;
  19. extern clish_shell_script_fn_t clish_script_callback;
  20. extern clish_shell_config_fn_t clish_config_callback;
  21. /* tclish callback functions */
  22. extern clish_shell_init_fn_t tclish_init_callback;
  23. extern clish_shell_access_fn_t tclish_access_callback;
  24. extern clish_shell_script_fn_t tclish_script_callback;
  25. extern clish_shell_fini_fn_t tclish_fini_callback;
  26. _END_C_DECL