Searched refs:cobj (Results 1 – 1 of 1) sorted by relevance
779 struct rt_custom_object *cobj = RT_NULL; in rt_custom_object_create() local781 cobj = (struct rt_custom_object *)rt_object_allocate(RT_Object_Class_Custom, name); in rt_custom_object_create()782 if (!cobj) in rt_custom_object_create()786 cobj->destroy = data_destroy; in rt_custom_object_create()787 cobj->data = data; in rt_custom_object_create()788 return (struct rt_object *)cobj; in rt_custom_object_create()803 struct rt_custom_object *cobj = (struct rt_custom_object *)obj; in rt_custom_object_destroy() local807 if (cobj->destroy) in rt_custom_object_destroy()809 ret = cobj->destroy(cobj->data); in rt_custom_object_destroy()
Completed in 6 milliseconds