MainTree/inc-c/entity.h

25 lines
673 B
C
Raw Normal View History

2024-02-20 06:35:53 +00:00
#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