hlswmaster/include/hlswmaster.h
Olaf Rempel 9b62806411 Version 0.62
- use c99 inttypes
- added new Halflife scan (halflife)
- added Battlefield2 support (gamespy2)
2006-02-02 16:49:14 +01:00

43 lines
765 B
C

#ifndef _HLSWMASTER_H
#define _HLSWMASTER_H
#include <inttypes.h>
#include "list.h"
#include "netpkt.h"
struct game_server {
struct list_head list;
unsigned long modtime;
uint16_t gameid;
uint32_t ip;
uint16_t port1;
uint16_t port2;
} __attribute__ ((packed));
/* logging.c */
int log_init(char *logfile);
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 */
int scan_init();
void scan_control();
void scan_receive();
/* client.c */
int client_pkt_add(struct game_server *server);
int client_pkt_commit();
void client_handler();
#endif /* _HLSWMASTER_H */