home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.7z / ftp.whtech.com / emulators / v9t9 / linux / sources / V9t9 / source / v9t9.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-10-19  |  707 b   |  45 lines

  1.  
  2.  
  3. /*
  4.         V9t9.H
  5.         ======
  6.  
  7. */
  8.  
  9. #ifndef __V9t9_H__
  10. #define __V9t9_H__
  11.  
  12. #include "OSLib.h"
  13.  
  14. #include "centry.h"
  15.  
  16. extern OSPathSpec v9t9_homedir;
  17. extern OSSpec v9t9_progspec;
  18.  
  19. // frontend must set these up
  20. extern int v9t9_argc;
  21. extern char **v9t9_argv;
  22.  
  23. extern char *sessionspath, *configspath;
  24.  
  25. //    call to set up globals
  26. int        v9t9_config(int argc, char **argv);
  27. //    call after system init
  28. int        v9t9_init(void);
  29.  
  30. int        v9t9_restart(void);
  31. void    v9t9_restop(void);
  32.  
  33. //    returns em_xxx flag
  34. int        v9t9_execute(void);
  35. void    v9t9_term(int exitcode);
  36.  
  37. // terminate via SIGINT (ctrl-c, etc)
  38. void     v9t9_sigint(int exitcode);
  39. // terminate via SIGTERM (OS shutdown)
  40. void     v9t9_sigterm(int exitcode);
  41.  
  42. #include "cexit.h"
  43.  
  44. #endif
  45.