New server.h for server startup, control and shutdown, i.e. stuff in
src/server. Use it.
This commit is contained in:
parent
8115388a58
commit
22a356b1e1
19 changed files with 73 additions and 24 deletions
|
@ -38,6 +38,7 @@
|
|||
#include "proto.h"
|
||||
#include "prototypes.h"
|
||||
#include "optlist.h"
|
||||
#include "server.h"
|
||||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
#include <stdio.h>
|
||||
#include "prototypes.h"
|
||||
#include "optlist.h"
|
||||
#include "server.h"
|
||||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
|
|
|
@ -64,14 +64,11 @@
|
|||
#include "product.h"
|
||||
#include "optlist.h"
|
||||
#include "global.h"
|
||||
#include "server.h"
|
||||
#include "prototypes.h"
|
||||
|
||||
s_char program[] = "server";
|
||||
|
||||
extern void player_accept(void *);
|
||||
extern void player_kill_idle(void *);
|
||||
extern void update_sched(void *);
|
||||
extern void delete_lostitems(void *);
|
||||
void nullify_objects(void);
|
||||
void init_files(void);
|
||||
void close_files(void);
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#include "keyword.h"
|
||||
#include "empthread.h"
|
||||
#include "file.h"
|
||||
#include "server.h"
|
||||
#include <stdio.h>
|
||||
#include "prototypes.h"
|
||||
|
||||
|
|
|
@ -40,12 +40,12 @@
|
|||
#include <stdio.h>
|
||||
#include "prototypes.h"
|
||||
#include "optlist.h"
|
||||
#include "server.h"
|
||||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
mobility_check(void *argv)
|
||||
{
|
||||
extern int updating_mob;
|
||||
struct mob_acc_globals timestamps;
|
||||
time_t now;
|
||||
FILE *fp;
|
||||
|
@ -93,7 +93,6 @@ mobility_check(void *argv)
|
|||
void
|
||||
mobility_init(void)
|
||||
{
|
||||
extern int updating_mob;
|
||||
struct mob_acc_globals timestamps;
|
||||
time_t now;
|
||||
time_t lastsavedtime;
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
#include "empthread.h"
|
||||
#include "prototypes.h"
|
||||
#include "optlist.h"
|
||||
#include "server.h"
|
||||
|
||||
empth_sem_t *update_sem;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue