From cebda9790bfa7d109014d5871d79e9ecd88c7d50 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Thu, 2 Oct 2008 12:29:19 +0000 Subject: some cleanups. splitted e_network.c into several files. continued on the ban support --- src/base/system.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/base/system.h') diff --git a/src/base/system.h b/src/base/system.h index fdbfe72d..e7c3586f 100644 --- a/src/base/system.h +++ b/src/base/system.h @@ -885,7 +885,6 @@ int net_would_block(); int net_socket_read_wait(NETSOCKET sock, int time); void mem_debug_dump(); -int mem_allocated(); void swap_endian(void *data, unsigned elem_size, unsigned num); @@ -895,6 +894,15 @@ void dbg_logger_stdout(); void dbg_logger_debugger(); void dbg_logger_file(const char *filename); +typedef struct +{ + int allocated; + int active_allocations; + int total_allocations; +} MEMSTATS; + +const MEMSTATS *mem_stats(); + typedef struct { int sent_packets; -- cgit 1.4.1