core: remove type parameter from object interface query functions
This commit is contained in:
@@ -77,7 +77,7 @@ void b_object_to_string(struct _b_object *p, struct b_stream *out)
|
||||
b_stream_write_fmt(out, NULL, "<%s@%p>", p->obj_type->r_info->t_name, p);
|
||||
}
|
||||
|
||||
void *z__b_object_get_private(struct _b_object *object, b_type type)
|
||||
void *b_object_get_private(struct _b_object *object, b_type type)
|
||||
{
|
||||
if (b_type_id_compare(&object->obj_type->r_info->t_id, type) == 0) {
|
||||
return (char *)object + object->obj_main_priv_offset;
|
||||
@@ -92,7 +92,7 @@ void *z__b_object_get_private(struct _b_object *object, b_type type)
|
||||
return (char *)object + comp->c_instance_private_data_offset;
|
||||
}
|
||||
|
||||
void *z__b_object_get_protected(struct _b_object *object, b_type type)
|
||||
void *b_object_get_protected(struct _b_object *object, b_type type)
|
||||
{
|
||||
struct b_type_component *comp
|
||||
= b_type_get_component(&object->obj_type->r_components, type);
|
||||
@@ -103,7 +103,7 @@ void *z__b_object_get_protected(struct _b_object *object, b_type type)
|
||||
return (char *)object + comp->c_instance_protected_data_offset;
|
||||
}
|
||||
|
||||
void *z__b_object_get_interface(struct _b_object *object, b_type type)
|
||||
void *b_object_get_interface(struct _b_object *object, b_type type)
|
||||
{
|
||||
return z__b_class_get_interface(object->obj_type->r_class, type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user