typedef struct alert_node ALERT;
typedef struct cstat_node CLSTATUS;
typedef struct exec_node EXEC;
typedef struct form_node _FORM;
typedef struct fstat_node FSTATUS;
typedef struct pfstat_node PFSTATUS;
typedef struct pstat_node PSTATUS;
typedef struct pwstat_node PWSTATUS;
typedef struct rstat_node RSTATUS;
struct alert_node
{
short active;
EXEC *exec;
char *msgfile;
};
struct cstat_node
{
short status;
char *rej_reason;
time_t rej_date;
CLASS *class;
};
struct exec_node
{
int pid;
int status;
long key;
short Errno;
short type;
ushort flags;
MESG *md;
union ex
{
RSTATUS *request;
FSTATUS *form;
PWSTATUS *pwheel;
PSTATUS *printer;
} ex;
};
#define EX_INTERF 1
#define EX_SLOWF 2
#define EX_ALERT 3
#define EX_FALERT 4
#define EX_PALERT 5
#define EX_NOTIFY 6
#define EX_FAULT_MESSAGE 7
#define EX_FORM_MESSAGE 8
#define EXF_RESTART 0x0001
#define EXF_KILLED 0x0002
#define EXF_GONE 0x0004
#define FLT_FILES 1
#define FLT_CHANGE 2
struct fstat_node
{
_FORM *form;
ALERT *alert;
short requests;
short requests_last;
short trigger;
short mounted;
char **users_allowed;
char **users_denied;
char *cpi;
char *lpi;
char *plen;
char *pwid;
};
struct pfstat_node
{
FSTATUS *form;
short isAvailable;
};
struct pstat_node
{
short status;
RSTATUS *request;
PRINTER *printer;
ALERT *alert;
EXEC *exec;
PFSTATUS *forms;
char *pwheel_name;
PWSTATUS *pwheel;
char *dis_reason;
char *rej_reason;
char **users_allowed;
char **users_denied;
char **forms_allowed;
char **forms_denied;
char *cpi;
char *lpi;
char *plen;
char *pwid;
time_t dis_date;
time_t rej_date;
short last_dial_rc;
short nretry;
short nrequests;
char *fault_reason;
EXEC *fault_exec;
short numForms;
char **paper_allowed;
};
struct pwstat_node
{
PWHEEL *pwheel;
ALERT *alert;
short requests;
short requests_last;
short trigger;
short mounted;
};
#define send mputm
struct rstat_node
{
long status;
MESG *md;
char *req_file;
char *slow;
char *fast;
short copies;
short reason;
SECURE *secure;
REQUEST *request;
PSTATUS *printer;
FSTATUS *form;
char *pwheel_name;
PWSTATUS *pwheel;
EXEC *exec;
char *printer_type;
char *output_type;
char *cpi;
char *lpi;
char *plen;
char *pwid;
RSTATUS *next;
RSTATUS *prev;
short msgType;
short trayNum;
char *formName;
};
# define RSS_PWMAND 0x00000008
# define RSS_SEND_FAULT_MESSAGE 0x00000040
# define RSS_SEND_FORM_MESSAGE 0x00000080
struct form_node
{
SCALED plen;
SCALED pwid;
SCALED lpi;
SCALED cpi;
int np;
char *chset;
short mandatory;
char *rcolor;
char *comment;
char *conttype;
char *name;
FALERT alert;
char *paper;
short isDefault;
};