Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources
This commit is contained in:
28
sdk/include/lib/heap/mtrace.h
Normal file
28
sdk/include/lib/heap/mtrace.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef _HGIC_SDK_MTRACE_H_
|
||||
#define _HGIC_SDK_MTRACE_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct mtrace_entry {
|
||||
void *ptr;
|
||||
const char *func;
|
||||
int line;
|
||||
int size;
|
||||
};
|
||||
|
||||
struct mtrace {
|
||||
int size;
|
||||
struct mtrace_entry *entrys;
|
||||
};
|
||||
|
||||
void mtrace_print(struct mtrace *mt);
|
||||
void mtrace_add(struct mtrace *mt, void *ptr, const char *func, int line, int size);
|
||||
void mtrace_del(struct mtrace *mt, void *ptr);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user