2025-08-16 16:03:55 +01:00
|
|
|
#ifndef _OBJECT_H_
|
|
|
|
|
#define _OBJECT_H_
|
|
|
|
|
|
2026-03-16 10:35:43 +00:00
|
|
|
#include <fx/core/error.h>
|
|
|
|
|
#include <fx/core/misc.h>
|
2025-08-16 16:03:55 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
2026-03-16 10:35:43 +00:00
|
|
|
struct fx_type_registration;
|
2025-08-16 16:03:55 +01:00
|
|
|
|
2026-03-16 10:35:43 +00:00
|
|
|
struct _fx_object {
|
2025-08-16 16:03:55 +01:00
|
|
|
uint64_t obj_magic;
|
2026-03-16 10:35:43 +00:00
|
|
|
const struct fx_type_registration *obj_type;
|
2025-08-16 16:03:55 +01:00
|
|
|
unsigned int obj_ref, obj_main_priv_offset;
|
|
|
|
|
};
|
|
|
|
|
|
2026-03-16 10:35:43 +00:00
|
|
|
extern fx_result fx_object_instantiate(
|
|
|
|
|
struct fx_type_registration *type, struct _fx_object **out);
|
2025-08-16 16:03:55 +01:00
|
|
|
|
|
|
|
|
#endif
|