Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset d0ca4c5 in mainline


Ignore:
Timestamp:
2013-12-31T03:35:15Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
7f80313
Parents:
f9d9184
Message:

libdrv: Make iface pointers const

Location:
uspace/lib/drv
Files:
3 edited

Legend:

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

    rf9d9184 rd0ca4c5  
    7373};
    7474
    75 remote_iface_t *get_remote_iface(int idx)
     75const remote_iface_t *get_remote_iface(int idx)
    7676{
    7777        assert(is_valid_iface_idx(idx));
     
    8080
    8181remote_iface_func_ptr_t
    82 get_remote_method(remote_iface_t *rem_iface, sysarg_t iface_method_idx)
     82get_remote_method(const remote_iface_t *rem_iface, sysarg_t iface_method_idx)
    8383{
    8484        if (iface_method_idx >= rem_iface->method_count)
  • uspace/lib/drv/generic/driver.c

    rf9d9184 rd0ca4c5  
    413413                 * handling ("remote interface").
    414414                 */
    415                 remote_iface_t *rem_iface = get_remote_iface(iface_idx);
     415                const remote_iface_t *rem_iface = get_remote_iface(iface_idx);
    416416                assert(rem_iface != NULL);
    417417               
  • uspace/lib/drv/include/dev_iface.h

    rf9d9184 rd0ca4c5  
    6060
    6161typedef struct {
    62         remote_iface_t *ifaces[DEV_IFACE_COUNT];
     62        const remote_iface_t *ifaces[DEV_IFACE_COUNT];
    6363} iface_dipatch_table_t;
    6464
    65 extern remote_iface_t *get_remote_iface(int);
    66 extern remote_iface_func_ptr_t get_remote_method(remote_iface_t *, sysarg_t);
     65extern const remote_iface_t *get_remote_iface(int);
     66extern remote_iface_func_ptr_t get_remote_method(const remote_iface_t *, sysarg_t);
    6767
    6868
Note: See TracChangeset for help on using the changeset viewer.