2002-01-12 16:36:56 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2001-08-17 05:46:24 +00:00
|
|
|
#ifndef _LEDIT_H
|
|
|
|
#define _LEDIT_H
|
|
|
|
|
|
|
|
int yes_no(char *);
|
|
|
|
void errmsg(const char *, ...);
|
2002-05-04 19:45:19 +00:00
|
|
|
int check_free(void);
|
|
|
|
void open_bbs(void);
|
2001-08-17 05:46:24 +00:00
|
|
|
void show_field(int, int, char *, int, int);
|
|
|
|
void newinsert(int, int, int);
|
|
|
|
char *edit_field(int, int, int, int, char *);
|
|
|
|
char *select_record(int, int);
|
2002-02-18 15:19:10 +00:00
|
|
|
char *select_filearea(int, int);
|
2001-08-17 05:46:24 +00:00
|
|
|
char *select_area(int, int);
|
|
|
|
char *select_pick(int, int);
|
2002-06-17 19:53:22 +00:00
|
|
|
char *select_aka(int, int);
|
2001-08-17 05:46:24 +00:00
|
|
|
char *select_show(int);
|
|
|
|
int select_menu(int);
|
|
|
|
int select_tag(int);
|
|
|
|
void show_str(int, int, int, char *);
|
|
|
|
char *edit_str(int, int, int, char *, char *);
|
2002-06-24 20:34:07 +00:00
|
|
|
char *edit_pth(int, int, int, char *, char *, mode_t);
|
2002-02-16 23:16:42 +00:00
|
|
|
void test_jam(char *);
|
2001-08-17 05:46:24 +00:00
|
|
|
char *edit_jam(int, int, int, char *, char *);
|
|
|
|
char *edit_ups(int, int, int, char *, char *);
|
|
|
|
char *getboolean(int val);
|
|
|
|
void show_bool(int, int, int);
|
|
|
|
int edit_bool(int, int, int, char *);
|
2005-10-11 20:49:41 +00:00
|
|
|
char *getloglevel(int val);
|
|
|
|
void show_logl(int, int, int);
|
|
|
|
int edit_logl(int, char *);
|
|
|
|
char *getflag(unsigned int, unsigned int);
|
2001-08-17 05:46:24 +00:00
|
|
|
void show_sec(int, int, securityrec);
|
|
|
|
securityrec edit_sec(int, int, securityrec, char *);
|
|
|
|
securityrec edit_usec(int, int, securityrec, char *);
|
2002-09-28 22:18:49 +00:00
|
|
|
securityrec edit_asec(securityrec, char *);
|
2002-09-29 20:08:32 +00:00
|
|
|
securityrec edit_nsec(securityrec, char *);
|
2001-08-17 05:46:24 +00:00
|
|
|
char *get_secstr(securityrec);
|
|
|
|
void show_int(int, int, int);
|
|
|
|
int edit_int(int, int, int, char *);
|
2007-11-25 15:49:46 +00:00
|
|
|
void show_uint(int, int, unsigned int);
|
|
|
|
unsigned int edit_uint(int, int, unsigned int, char *);
|
2004-02-05 21:05:31 +00:00
|
|
|
int edit_int_range(int, int, int, int, int, char *);
|
2001-08-17 05:46:24 +00:00
|
|
|
void show_ushort(int, int, unsigned short);
|
|
|
|
unsigned short edit_ushort(int, int, unsigned short, char *);
|
|
|
|
void show_sbit(int, int, unsigned short, unsigned short);
|
|
|
|
unsigned short toggle_sbit(int, int, unsigned short, unsigned short, char *);
|
2005-10-11 20:49:41 +00:00
|
|
|
void show_lbit(int, int, int, int);
|
|
|
|
int toggle_lbit(int, int, int, int, char *);
|
2001-08-17 05:46:24 +00:00
|
|
|
char *getmsgtype(int);
|
|
|
|
void show_msgtype(int, int, int);
|
|
|
|
int edit_msgtype(int, int, int);
|
|
|
|
char *getemailmode(int);
|
|
|
|
void show_emailmode(int, int, int);
|
|
|
|
int edit_emailmode(int, int, int);
|
|
|
|
char *getmsgkinds(int);
|
|
|
|
void show_msgkinds(int, int, int);
|
|
|
|
int edit_msgkinds(int, int, int);
|
|
|
|
char *getservice(int);
|
|
|
|
void show_service(int, int, int);
|
|
|
|
int edit_service(int, int, int);
|
|
|
|
char *getnewsmode(int);
|
|
|
|
void show_newsmode(int, int, int);
|
|
|
|
int edit_newsmode(int, int, int);
|
2002-03-05 21:32:52 +00:00
|
|
|
char *getmsgeditor(int);
|
|
|
|
void show_msgeditor(int, int, int);
|
|
|
|
int edit_msgeditor(int, int, int);
|
2001-08-17 05:46:24 +00:00
|
|
|
char *getlinetype(int);
|
|
|
|
void show_linetype(int, int, int);
|
|
|
|
int edit_linetype(int, int, int);
|
|
|
|
char *getmagictype(int);
|
|
|
|
void show_magictype(int, int, int);
|
|
|
|
int edit_magictype(int, int, int);
|
2004-08-07 13:12:03 +00:00
|
|
|
char *get_asktype(int);
|
2004-08-07 13:03:36 +00:00
|
|
|
void show_asktype(int, int, int);
|
2004-08-07 13:38:45 +00:00
|
|
|
int edit_asktype(int, int, int, char *);
|
2002-06-24 20:34:07 +00:00
|
|
|
char *get_sessiontype(int);
|
|
|
|
void show_sessiontype(int, int, int);
|
|
|
|
int edit_sessiontype(int, int, int);
|
2008-02-17 16:10:18 +00:00
|
|
|
char *get_scannertype(int);
|
|
|
|
void show_scannertype(int, int, int);
|
|
|
|
int edit_scannertype(int, int, int);
|
2002-06-24 20:34:07 +00:00
|
|
|
char *get_routetype(int);
|
|
|
|
void show_routetype(int, int, int);
|
|
|
|
int edit_routetype(int, int, int);
|
2001-08-17 05:46:24 +00:00
|
|
|
void show_aka(int, int, fidoaddr);
|
2002-01-12 16:36:56 +00:00
|
|
|
void edit_color(int *, int *, char *, char *);
|
2001-09-27 20:35:25 +00:00
|
|
|
char *get_color(int);
|
2001-08-17 05:46:24 +00:00
|
|
|
char *getmenutype(int);
|
2004-02-23 14:46:06 +00:00
|
|
|
void show_charset(int, int, int);
|
|
|
|
int edit_charset(int, int, int);
|
2001-08-17 05:46:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Macro's for the edit functions
|
|
|
|
*/
|
|
|
|
#define E_STR(y,x,l,str,help) strcpy(str, edit_str(y,x,l,str,(char *)help)); break;
|
2002-06-24 20:34:07 +00:00
|
|
|
#define E_PTH(y,x,l,str,help,mode) strcpy(str, edit_pth(y,x,l,str,(char *)help,mode)); break;
|
2001-08-17 05:46:24 +00:00
|
|
|
#define E_UPS(y,x,l,str,help) strcpy(str, edit_ups(y,x,l,str,(char *)help)); break;
|
|
|
|
#define E_JAM(y,x,l,str,help) strcpy(str, edit_jam(y,x,l,str,(char *)help)); break;
|
|
|
|
#define E_BOOL(y,x,bool,help) bool = edit_bool(y,x,bool,(char *)help); break;
|
|
|
|
#define E_INT(y,x,value,help) value = edit_int(y,x,value,(char *)help); break;
|
2007-11-25 15:49:46 +00:00
|
|
|
#define E_UINT(y,x,value,help) value = edit_uint(y,x,value,(char *)help); break;
|
2004-02-05 21:05:31 +00:00
|
|
|
#define E_IRC(y,x,value,min,max,help) value = edit_int_range(y,x,value,min,max,(char *)help); break;
|
2001-08-17 05:46:24 +00:00
|
|
|
#define E_LOGL(grade,txt,af) grade = edit_logl(grade,(char *)txt); af(); break;
|
2004-10-27 11:08:09 +00:00
|
|
|
#define S_COL(y,x,name,fg,bg) set_color(fg,bg); mbse_mvprintw(y,x,name);
|
2001-08-17 05:46:24 +00:00
|
|
|
#define E_SEC(y,x,sec,hdr,af) sec = edit_sec(y,x,sec,(char *)hdr); af(); break;
|
|
|
|
#define E_USEC(y,x,sec,hdr,af) sec = edit_usec(y,x,sec,(char *)hdr); af(); break;
|
|
|
|
|
|
|
|
#endif /* _LEDIT_H */
|
|
|
|
|