46 lines
840 B
C
46 lines
840 B
C
#ifndef _HLSWMASTER_H
|
|
#define _HLSWMASTER_H
|
|
|
|
#include "list.h"
|
|
#include "netpkt.h"
|
|
#include "configfile.h"
|
|
|
|
struct game_server {
|
|
struct list_head list;
|
|
unsigned long modtime;
|
|
|
|
u_int16_t gameid;
|
|
u_int32_t ip;
|
|
u_int16_t port1;
|
|
u_int16_t port2;
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
/* logging.c */
|
|
int log_open();
|
|
void log_print(const char *fmt, ... );
|
|
|
|
/* plugin.c */
|
|
int plugin_load(char *name);
|
|
int plugin_load_all();
|
|
int plugin_unload_all();
|
|
int plugins_scan();
|
|
int plugins_parse(struct net_pkt *pkt);
|
|
int plugins_gc(unsigned long timeout);
|
|
|
|
/* scanner.c */
|
|
void pkt_queue(struct net_pkt *pkt);
|
|
int scan_init();
|
|
void scan_transmit();
|
|
void scan_receive();
|
|
|
|
/* serverlist.c */
|
|
void server_collector();
|
|
|
|
/* client.c */
|
|
int client_pkt_add(struct game_server *server);
|
|
int client_pkt_commit();
|
|
void client_handler();
|
|
|
|
#endif /* _HLSWMASTER_H */
|