MagiDoor.h 905 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef __MAGIDOOR_H__
  2. #define __MAGIDOOR_H__
  3. #include <stdint.h>
  4. #define MAGIDOOR_VERSION_MAJOR 1
  5. #define MAGIDOOR_VERSION_MINOR 2
  6. #define TRUE 1
  7. #define FALSE 0
  8. typedef struct MDDoorControl {
  9. char user_alias[32];
  10. char user_firstname[32];
  11. char user_lastname[32];
  12. int user_timeleft;
  13. char sysop_name[32];
  14. int node;
  15. char user_location[32];
  16. int user_seclevel;
  17. int socket;
  18. } MDDoorControl_t;
  19. extern MDDoorControl_t mdcontrol;
  20. extern void md_init(const char *dropfile, int socket);
  21. extern void md_exit(int exitcode);
  22. extern void md_putchar(char c);
  23. extern void md_printf(const char *fmt, ...);
  24. extern char md_getc();
  25. extern int md_getstring(char *ptr, int maxlen, char minchar, char maxchar);
  26. extern void md_sendfile(const char *filename, int pause);
  27. extern void md_clr_scr();
  28. extern void md_set_cursor(int y, int x);
  29. extern char md_get_answer(char *options);
  30. #endif