25 lines
673 B
C
25 lines
673 B
C
|
|
#ifndef MT_ENTITY_H
|
|
#define MT_ENTITY_H
|
|
|
|
#include <librr/types.h>
|
|
|
|
typedef struct MtEntity MtEntity;
|
|
|
|
/// @brief: An MtEntity is a frontend descriptor which stands in
|
|
/// the place of internal data without the need to reference
|
|
/// actual internal data.
|
|
struct MtEntity
|
|
{
|
|
/// @brief: The context which this MtEntity belongs to. This is
|
|
/// also the context which is referenced each time a function
|
|
/// uses the entity and needs to find its shadow.
|
|
void *context;
|
|
|
|
/// @brief: The identifier of the background structure "shadow".
|
|
/// This is used for resolving this entity to its actual data.
|
|
u32_t shadow_id;
|
|
};
|
|
|
|
#endif // MT_ENTITY_H
|