checkAPIs.pl: support for new-style dissectors in check_hf_entries
[metze/wireshark/wip.git] / epan / app_mem_usage.h
1 /*
2  * app_mem_usage.h
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
8  * SPDX-License-Identifier: GPL-2.0-or-later
9  */
10 #ifndef __APP_MEM_USAGE_H__
11 #define __APP_MEM_USAGE_H__
12
13 #include "ws_symbol_export.h"
14
15 typedef struct {
16         const char *name;
17         gsize (*fetch)(void);
18         void (*gc)(void);
19
20 } ws_mem_usage_t;
21
22 WS_DLL_PUBLIC void memory_usage_component_register(const ws_mem_usage_t *component);
23
24 WS_DLL_PUBLIC void memory_usage_gc(void);
25
26 WS_DLL_PUBLIC const char *memory_usage_get(guint idx, gsize *value);
27
28 #endif /* APP_MEM_USAGE_H */