Changeset cd0684d in mainline for uspace/lib/drv/generic/driver.c


Ignore:
Timestamp:
2011-02-14T22:14:52Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
659ca07
Parents:
97a62fe
Message:

Remove register_function_wrapper() since it became practically useless.
Provide ddf_fun_add_match_id() instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/driver.c

    r97a62fe rcd0684d  
    607607}
    608608
     609/** Add single match ID to function.
     610 *
     611 * Construct and add a single match ID to the specified function.
     612 *
     613 * @param fun                   Function
     614 * @param match_id_str          Match string
     615 * @param match_score           Match score
     616 * @return                      EOK on success, ENOMEM if out of memory.
     617 */
     618int ddf_fun_add_match_id(function_t *fun, const char *match_id_str,
     619    int match_score)
     620{
     621        match_id_t *match_id;
     622       
     623        match_id = create_match_id();
     624        if (match_id == NULL)
     625                return ENOMEM;
     626       
     627        match_id->id = match_id_str;
     628        match_id->score = 90;
     629       
     630        add_match_id(&fun->match_ids, match_id);
     631        return EOK;
     632}
     633
     634
    609635/** Wrapper for child_device_register for devices with single match id.
    610636 *
Note: See TracChangeset for help on using the changeset viewer.