21 lines
356 B
C
21 lines
356 B
C
#ifndef _OBJECT_H_
|
|
#define _OBJECT_H_
|
|
|
|
#include <fx/error.h>
|
|
#include <fx/misc.h>
|
|
#include <stdint.h>
|
|
|
|
struct fx_type_info;
|
|
|
|
struct _fx_object {
|
|
uint64_t obj_magic;
|
|
const struct fx_type_info *obj_type;
|
|
unsigned int obj_ref, obj_main_priv_offset;
|
|
};
|
|
|
|
extern fx_result fx_object_instantiate(
|
|
struct fx_type_info *type,
|
|
struct _fx_object **out);
|
|
|
|
#endif
|