mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-28 08:04:47 +02:00
add function prototypes, fix up arguments of catch_sighup
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@35 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
5af442ca9d
commit
11282a35d6
@ -70,12 +70,6 @@ extern int slave;
|
|||||||
extern struct termios tt;
|
extern struct termios tt;
|
||||||
extern struct winsize win;
|
extern struct winsize win;
|
||||||
|
|
||||||
/* local functions */
|
|
||||||
static void writefile (int);
|
|
||||||
static void write_canned_rcfile (char *);
|
|
||||||
static int userexist (char *);
|
|
||||||
static int passwordgood (char *, char *);
|
|
||||||
|
|
||||||
/* global variables */
|
/* global variables */
|
||||||
|
|
||||||
int caught_sighup = 0;
|
int caught_sighup = 0;
|
||||||
@ -139,7 +133,7 @@ gen_inprogress_lock ()
|
|||||||
/* ************************************************************* */
|
/* ************************************************************* */
|
||||||
|
|
||||||
void
|
void
|
||||||
catch_sighup ()
|
catch_sighup (int signum)
|
||||||
{
|
{
|
||||||
caught_sighup = 1;
|
caught_sighup = 1;
|
||||||
if (pid_game)
|
if (pid_game)
|
||||||
|
@ -42,4 +42,29 @@ struct dg_game
|
|||||||
#define LOC_SPOOLDIR "/var/mail"
|
#define LOC_SPOOLDIR "/var/mail"
|
||||||
#define LOC_CANNED "/dgl-default-rcfile"
|
#define LOC_CANNED "/dgl-default-rcfile"
|
||||||
#define LOC_BANNER "/dgl-banner"
|
#define LOC_BANNER "/dgl-banner"
|
||||||
|
|
||||||
|
/* dgamelaunch.c function prototypes */
|
||||||
|
extern void ttyrec_getmaster(void);
|
||||||
|
extern void gen_ttyrec_filename(void);
|
||||||
|
extern void gen_inprogress_lock(void);
|
||||||
|
extern void catch_sighup(int signum);
|
||||||
|
extern void loadbanner(struct dg_banner *ban);
|
||||||
|
extern void drawbanner(unsigned int start_line, unsigned int howmany);
|
||||||
|
extern struct dg_game **populate_games(int *l);
|
||||||
|
extern void inprogressmenu(void);
|
||||||
|
extern void changepw(void);
|
||||||
|
extern void domailuser(char *username);
|
||||||
|
extern void drawmenu(void);
|
||||||
|
extern void freefile(void);
|
||||||
|
extern void initncurses(void);
|
||||||
|
extern struct dg_user *deep_copy(struct dg_user *src);
|
||||||
|
extern void login(void);
|
||||||
|
extern void newuser(void);
|
||||||
|
extern int passwordgood(char *cname, char *cpw);
|
||||||
|
extern int readfile(int nolock);
|
||||||
|
extern int userexist(char *cname);
|
||||||
|
extern void write_canned_rcfile(char *target);
|
||||||
|
extern void editoptions(void);
|
||||||
|
extern void writefile(int requirenew);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user