hlswmaster/include/hlswmaster.h

46 lines
840 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"
#include "configfile.h"
2006-02-02 16:24:06 +01:00
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
/* logging.c */
int log_open();
2006-02-02 16:24:06 +01:00
void log_print(const char *fmt, ... );
/* plugin.c */
int plugin_load(char *name);
int plugin_load_all();
int plugin_unload_all();
int plugins_scan();
2006-02-02 16:24:06 +01:00
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);
int scan_init();
void scan_transmit();
void scan_receive();
2006-02-02 16:24:06 +01:00
/* serverlist.c */
void server_collector();
2006-02-02 16:24:06 +01:00
/* client.c */
int client_pkt_add(struct game_server *server);
int client_pkt_commit();
void client_handler();
2006-02-02 16:24:06 +01:00
#endif /* _HLSWMASTER_H */