Ignore:
File:
1 edited

Legend:

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

    r22027b6e r7a252ec8  
    3636 */
    3737
    38 #include <assert.h>
    39 
    4038#include "dev_iface.h"
    41 #include "remote_hw_res.h"
    42 #include "remote_char_dev.h"
     39#include "remote_res.h"
     40#include "remote_char.h"
    4341
    4442static iface_dipatch_table_t remote_ifaces = {
    4543        .ifaces = {
    46                 &remote_hw_res_iface,
    47                 &remote_char_dev_iface
     44                &remote_res_iface,
     45                &remote_char_iface
    4846        }
    4947};
    5048
    51 remote_iface_t *get_remote_iface(int idx)
    52 {
     49remote_iface_t* get_remote_iface(int idx)
     50{       
    5351        assert(is_valid_iface_idx(idx));
    5452        return remote_ifaces.ifaces[idx];
     
    5654
    5755remote_iface_func_ptr_t
    58 get_remote_method(remote_iface_t *rem_iface, sysarg_t iface_method_idx)
     56get_remote_method(remote_iface_t *rem_iface, ipcarg_t iface_method_idx)
    5957{
    6058        if (iface_method_idx >= rem_iface->method_count) {
    6159                return NULL;
    6260        }
    63 
    6461        return rem_iface->methods[iface_method_idx];
    65 }
    66 
    67 bool is_valid_iface_idx(int idx)
    68 {
    69         return (0 <= idx) && (idx < DEV_IFACE_MAX);
    7062}
    7163
Note: See TracChangeset for help on using the changeset viewer.