49 lines
867 B
C
49 lines
867 B
C
#ifndef _HLSWMASTER_H
|
|
#define _HLSWMASTER_H
|
|
|
|
#include "list.h"
|
|
#include "netpkt.h"
|
|
|
|
struct game_server {
|
|
/* must be first */
|
|
struct list_head list;
|
|
|
|
u_int16_t gameid;
|
|
u_int32_t ip;
|
|
u_int16_t port1;
|
|
u_int16_t port2;
|
|
|
|
unsigned long modtime;
|
|
};
|
|
|
|
/* daemon.c */
|
|
void daemonize(char *pw_name);
|
|
|
|
/* logging.c */
|
|
void log_open(char *logfile);
|
|
void log_close();
|
|
void log_print(const char *fmt, ... );
|
|
|
|
/* plugin.c */
|
|
int plugin_load(char *name);
|
|
int plugin_unload(char *name);
|
|
int plugins_scan(void);
|
|
int plugins_parse(struct net_pkt *pkt);
|
|
int plugins_gc(unsigned long timeout);
|
|
|
|
/* scanner.c */
|
|
int scan_init(void);
|
|
void scan_exit(void);
|
|
void scan_transmit(void);
|
|
void scan_receive(void);
|
|
|
|
/* serverlist.c */
|
|
void server_collector(void);
|
|
|
|
/* client.c */
|
|
int client_pkt_add(struct game_server *server);
|
|
int client_pkt_commit(void);
|
|
void client_handler(void);
|
|
|
|
#endif
|