Changes between Version 24 and Version 25 of DeviceDrivers


Ignore:
Timestamp:
2011-11-16T22:47:22Z (12 years ago)
Author:
Jiri Svoboda
Comment:

ddf_fun_add_to_categoty and ddf_fun_add_match_id

Legend:

Unmodified
Added
Removed
Modified
  • DeviceDrivers

    v24 v25  
    185185}}}
    186186
     187Add match ID to an inner function. The match ID determines which driver will be attached to the child device. ''ddf_fun_add_match_id'' can only be called on an unbound inner function. If returns EOK on success or negative error code.
     188
     189As an example, for an automatically enumerated bus the match ID could consist of bus type/name, vendor ID and device ID.
     190
    187191==== ddf_fun_add_to_category ====
    188192
     
    190194int ddf_fun_add_to_category(ddf_fun_t *fun, const char *cat_name)
    191195}}}
     196
     197Add exposed function ''fun'' (more precisely the service which the function is exposed through) to the Location Service category ''name''. This allows clients to locate the function by type. For example, the ''keyboard'' category is used for keyboard devices and ''mouse'' category is used for mice (pointing devices). ''ddf_fun_add_to_category'' can only be called on bound exposed functions. It returns EOK on success or negative error code.
    192198
    193199==== ddf_fun_bind ====