diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-10-02 12:29:19 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-10-02 12:29:19 +0000 |
| commit | cebda9790bfa7d109014d5871d79e9ecd88c7d50 (patch) | |
| tree | d315b73baf879c0414cf652b89690796cc2f1f3b /src/base/system.h | |
| parent | bddc6ec6cc369e87d9dd0c0d1749bb871e1537a8 (diff) | |
| download | zcatch-cebda9790bfa7d109014d5871d79e9ecd88c7d50.tar.gz zcatch-cebda9790bfa7d109014d5871d79e9ecd88c7d50.zip | |
some cleanups. splitted e_network.c into several files. continued on the ban support
Diffstat (limited to 'src/base/system.h')
| -rw-r--r-- | src/base/system.h | 10 |
1 files changed, 9 insertions, 1 deletions
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); @@ -897,6 +896,15 @@ 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; int sent_bytes; int recv_packets; |