mirror of https://github.com/neutrinolabs/xrdp
tests: add get_alloced_bytes function
This commit is contained in:
parent
d8bdda582b
commit
1c3d23da37
|
@ -402,3 +402,13 @@ libmem_clear_flags(void* obj, int flags)
|
|||
self->flags &= ~flags;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
int
|
||||
libmem_get_alloced_bytes(void* obj)
|
||||
{
|
||||
struct mem_info* self;
|
||||
|
||||
self = (struct mem_info*)obj;
|
||||
return self->total_bytes;
|
||||
}
|
||||
|
|
|
@ -14,5 +14,7 @@ int
|
|||
libmem_set_flags(void* obj, int flags);
|
||||
int
|
||||
libmem_clear_flags(void* obj, int flags);
|
||||
int
|
||||
libmem_get_alloced_bytes(void* obj);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue