Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (26 sloc) 826 Bytes
#ifndef __MOP_INSTANCE_H__
#define __MOP_INSTANCE_H__
struct _mop_instance {
mop_state *state;
mop_class *associated_metaclass;
char **attributes;
unsigned int attributes_size;
unsigned int attributes_max;
};
mop_instance *
mop_instance_create();
void
mop_instance_attach_to_class( mop_instance *instance, mop_class *c );
void
mop_instance_detach_from_class( mop_instance *instance );
void
mop_instance_destroy( mop_instance *instance );
void
mop_instance_inline_slot_access( SV *buffer, char *instance, char *slot );
void
mop_instance_inline_set_slot_value( SV *buffer, char *instance, char *slot, char *value );
void
mop_instance_inline_get_slot_value( SV *buffer, char *instance, char *slot );
SV *
mop_instance_create_instance( mop_instance *instnace );
#endif /* __MOP_INSTANCE_H__ */