Changeset facc34d in mainline


Ignore:
Timestamp:
2014-01-17T21:45:14Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
19b3cc6
Parents:
66be0288
Message:

make pointer to iface array const.

Location:
uspace/lib/drv
Files:
3 edited

Legend:

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

    r66be0288 rfacc34d  
    919919
    920920/** Set function ops. */
    921 void ddf_fun_set_ops(ddf_fun_t *fun, ddf_dev_ops_t *dev_ops)
     921void ddf_fun_set_ops(ddf_fun_t *fun, const ddf_dev_ops_t *dev_ops)
    922922{
    923923        assert(fun->conn_handler == NULL);
  • uspace/lib/drv/generic/private/driver.h

    r66be0288 rfacc34d  
    9393       
    9494        /** Implementation of operations provided by this function */
    95         ddf_dev_ops_t *ops;
     95        const ddf_dev_ops_t *ops;
    9696       
    9797        /** Connection handler or @c NULL to use the DDF default handler. */
  • uspace/lib/drv/include/ddf/driver.h

    r66be0288 rfacc34d  
    137137extern int ddf_fun_offline(ddf_fun_t *);
    138138extern int ddf_fun_add_match_id(ddf_fun_t *, const char *, int);
    139 extern void ddf_fun_set_ops(ddf_fun_t *, ddf_dev_ops_t *);
     139extern void ddf_fun_set_ops(ddf_fun_t *, const ddf_dev_ops_t *);
    140140extern void ddf_fun_set_conn_handler(ddf_fun_t *, async_client_conn_t);
    141141extern int ddf_fun_add_to_category(ddf_fun_t *, const char *);
Note: See TracChangeset for help on using the changeset viewer.