hlswmaster/include/hlswmaster.h

49 lines
928 B
C
Raw Normal View History

2006-02-02 16:24:06 +01:00
#ifndef _HLSWMASTER_H
#define _HLSWMASTER_H
#include "list.h"
#include "netpkt.h"
struct game_server {
struct list_head list;
2006-02-02 16:27:19 +01:00
unsigned long modtime;
2006-02-02 16:24:06 +01:00
u_int16_t gameid;
u_int32_t ip;
u_int16_t port1;
u_int16_t port2;
2006-02-02 16:27:19 +01:00
} __attribute__ ((packed));
2006-02-02 16:24:06 +01:00
/* 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 */
2006-02-02 16:25:55 +01:00
void pkt_queue(struct net_pkt *pkt);
2006-02-02 16:24:06 +01:00
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 /* _HLSWMASTER_H */