internal.h 953 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * internal.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_script_fn_t clish_dryrun_callback;
  21. extern clish_shell_config_fn_t clish_config_callback;
  22. /* tclish callback functions */
  23. extern clish_shell_init_fn_t tclish_init_callback;
  24. extern clish_shell_access_fn_t tclish_access_callback;
  25. extern clish_shell_script_fn_t tclish_script_callback;
  26. extern clish_shell_fini_fn_t tclish_fini_callback;
  27. _END_C_DECL