Logo Search packages:      
Sourcecode: ladish version File versions  Download package

ladish_app_handle ladish_app_supervisor_find_app_by_uuid ( ladish_app_supervisor_handle  supervisor_handle,
const uuid_t  uuid 
)

Search app by uuid

Parameters:
[in]supervisor_handlesupervisor object handle
[in]uuiduuid of the app to search for
Returns:
app handle on if found; NULL if app is not found; the app handle is owned by the app supervisor object

Definition at line 232 of file app_supervisor.c.

{
  struct list_head * node_ptr;
  struct ladish_app * app_ptr;

  list_for_each(node_ptr, &supervisor_ptr->applist)
  {
    app_ptr = list_entry(node_ptr, struct ladish_app, siblings);
    if (uuid_compare(app_ptr->uuid, uuid) == 0)
    {
      return (ladish_app_handle)app_ptr;
    }
  }

  return NULL;
}

Generated by  Doxygen 1.6.0   Back to index