* @brief This function will return the specified type of object information. * * @param type is the type of object, which can be * RT_Object_Class_Thread/Semaphore/Mutex... etc * * @return the object type information or RT_NULL */
| 247 | * @return the object type information or RT_NULL |
| 248 | */ |
| 249 | struct rt_object_information * |
| 250 | rt_object_get_information(enum rt_object_class_type type) |
| 251 | { |
| 252 | int index; |
| 253 | |
| 254 | type = (enum rt_object_class_type)(type & ~RT_Object_Class_Static); |
| 255 | |
| 256 | for (index = 0; index < RT_Object_Info_Unknown; index ++) |
| 257 | if (_object_container[index].type == type) return &_object_container[index]; |
| 258 | |
| 259 | return RT_NULL; |
| 260 | } |
| 261 | RTM_EXPORT(rt_object_get_information); |
| 262 | |
| 263 | /** |
no outgoing calls