This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/mbtask/taskregs.h

62 lines
2.3 KiB
C
Raw Normal View History

2001-08-17 05:46:24 +00:00
#ifndef _TASKREGS_H
#define _TASKREGS_H
2002-06-05 21:07:36 +00:00
/* $Id$ */
2001-08-17 05:46:24 +00:00
#define MAXCLIENT 100
/*
* Connected clients information
*/
#define RB 5
typedef struct _reg_info {
pid_t pid; /* Pid or zero if free */
char tty[7]; /* Connected tty */
char uname[36]; /* User name */
char prg[15]; /* Program name */
char city[36]; /* Users city */
char doing[36]; /* What is going on */
time_t started; /* Startime connection */
time_t lastcon; /* Last connection */
int altime; /* Alarm time */
unsigned silent : 1; /* Do not disturb */
unsigned ismsg : 1; /* Message waiting */
2002-03-23 13:12:29 +00:00
unsigned istcp : 1; /* Is a TCP/IP session */
unsigned paging : 1; /* Is paging sysop */
unsigned haspaged : 1; /* Has paged sysop */
2001-08-17 05:46:24 +00:00
int ptr_in; /* Input buffer pointer */
int ptr_out; /* Output buffer ptr */
char fname[RB][36]; /* Message from user */
char msg[RB][81]; /* The message itself */
char reason[81]; /* Chat reason */
2001-08-17 05:46:24 +00:00
} reg_info;
2002-03-23 13:12:29 +00:00
2001-08-17 05:46:24 +00:00
int reg_newcon(char *);
int reg_closecon(char *);
void reg_check(void);
int reg_doing(char *);
2002-03-23 13:12:29 +00:00
int reg_ip(char *);
2001-08-17 05:46:24 +00:00
int reg_nop(char *);
int reg_timer(int, char *);
int reg_tty(char *);
int reg_user(char *);
2003-03-20 22:43:40 +00:00
int reg_silent(char *); /* Set/Reset do not disturb */
2003-03-24 19:44:38 +00:00
char *reg_ipm(char *); /* Check for personal message */
int reg_spm(char *); /* Send personal message */
2003-03-20 22:43:40 +00:00
char *reg_fre(void); /* Check if system is free */
char *get_reginfo(int); /* Get registration info */
int reg_sysop(char *); /* Registrate sysop presence */
int reg_page(char *); /* Page sysop for chat */
int reg_cancel(char *); /* Cancel sysop page */
char *reg_checkpage(char *); /* Check paging status */
2003-04-02 21:36:47 +00:00
int reg_ispaging(char *); /* Check if user with pid paged */
void reg_sysoptalk(char *); /* Is now talking to the sysop */
2001-08-17 05:46:24 +00:00
#endif