Changeset 97a62fe in mainline for uspace/lib/drv/include/driver.h


Ignore:
Timestamp:
2011-02-14T21:41:50Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cd0684d
Parents:
7df0477e
Message:

Refactor create_function(), delete_function() and register_function() into
ddf_fun_create(), ddf_fun_destroy() and ddf_fun_bind(). This is not just
a rename.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/include/driver.h

    r7df0477e r97a62fe  
    115115/** Function structure */
    116116struct function {
     117        /** True if bound to the device manager */
     118        bool bound;
    117119        /** Function indentifier (asigned by device manager) */
    118120        devman_handle_t handle;
     
    157159int driver_main(driver_t *);
    158160
    159 /** Create new device structure.
    160  *
    161  * @return              The device structure.
    162  */
    163 extern function_t *create_function(void);
    164 extern void delete_function(function_t *);
     161extern function_t *ddf_fun_create(device_t *, fun_type_t, const char *);
     162extern void ddf_fun_destroy(function_t *);
     163extern int ddf_fun_bind(function_t *);
     164
    165165extern void *function_get_ops(function_t *, dev_inferface_idx_t);
    166166
    167 extern int register_function(function_t *, device_t *);
    168167extern int register_function_wrapper(device_t *, const char *, const char *,
    169168    int);
Note: See TracChangeset for help on using the changeset viewer.