20 lines
386 B
C
20 lines
386 B
C
|
|
#ifndef _OBJECT_H_
|
||
|
|
#define _OBJECT_H_
|
||
|
|
|
||
|
|
#include <blue/core/error.h>
|
||
|
|
#include <blue/core/misc.h>
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
struct b_type_registration;
|
||
|
|
|
||
|
|
struct _b_object {
|
||
|
|
uint64_t obj_magic;
|
||
|
|
const struct b_type_registration *obj_type;
|
||
|
|
unsigned int obj_ref, obj_main_priv_offset;
|
||
|
|
};
|
||
|
|
|
||
|
|
extern b_result b_object_instantiate(
|
||
|
|
struct b_type_registration *type, struct _b_object **out);
|
||
|
|
|
||
|
|
#endif
|