Ignore:
File:
1 edited

Legend:

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

    r56fb3732 r22027b6e  
    3636 */
    3737
     38#include <assert.h>
     39
    3840#include "dev_iface.h"
    39 #include "remote_res.h"
    40 #include "remote_char.h"
    41 #include "remote_usb.h"
    42 #include "remote_usbhc.h"
     41#include "remote_hw_res.h"
     42#include "remote_char_dev.h"
    4343
    4444static iface_dipatch_table_t remote_ifaces = {
    4545        .ifaces = {
    46                 &remote_res_iface,
    47                 &remote_char_iface,
    48                 &remote_usb_iface,
    49                 &remote_usbhc_iface
     46                &remote_hw_res_iface,
     47                &remote_char_dev_iface
    5048        }
    5149};
    5250
    53 remote_iface_t* get_remote_iface(int idx)
    54 {       
     51remote_iface_t *get_remote_iface(int idx)
     52{
    5553        assert(is_valid_iface_idx(idx));
    5654        return remote_ifaces.ifaces[idx];
     
    6361                return NULL;
    6462        }
     63
    6564        return rem_iface->methods[iface_method_idx];
     65}
     66
     67bool is_valid_iface_idx(int idx)
     68{
     69        return (0 <= idx) && (idx < DEV_IFACE_MAX);
    6670}
    6771
Note: See TracChangeset for help on using the changeset viewer.