remove rt_object_find function.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@690 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong
2010-05-03 23:17:25 +00:00
parent 16f7ea2f95
commit fca4e1a719
4 changed files with 99 additions and 40 deletions
-29
View File
@@ -334,35 +334,6 @@ void rt_object_delete(rt_object_t object)
}
#endif
/**
* This fucntion will find the object id by specified object name
*
* @param type the type of object
* @param name the specified object name
*
* @return object id for successful
*/
rt_object_t rt_object_find(enum rt_object_class_type type, const char* name)
{
struct rt_object_information *information;
struct rt_object* object;
struct rt_list_node* node;
information = &rt_object_container[type];
for (node = information->object_list.next; node != &(information->object_list); node = node->next)
{
object = rt_list_entry(node, struct rt_object, list);
if (rt_strncmp(object->name, name, RT_NAME_MAX) == 0)
{
return object;
}
}
/* not found */
return RT_NULL;
}
/**
* This function will judge the object is system object or not.
* Normally, the system object is a static object and the type