Ignore:
File:
1 edited

Legend:

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

    r22027b6e r56fb3732  
    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"
     41#include "remote_usb.h"
     42#include "remote_usbhc.h"
    4343
    4444static iface_dipatch_table_t remote_ifaces = {
    4545        .ifaces = {
    46                 &remote_hw_res_iface,
    47                 &remote_char_dev_iface
     46                &remote_res_iface,
     47                &remote_char_iface,
     48                &remote_usb_iface,
     49                &remote_usbhc_iface
    4850        }
    4951};
    5052
    51 remote_iface_t *get_remote_iface(int idx)
    52 {
     53remote_iface_t* get_remote_iface(int idx)
     54{       
    5355        assert(is_valid_iface_idx(idx));
    5456        return remote_ifaces.ifaces[idx];
     
    6163                return NULL;
    6264        }
    63 
    6465        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);
    7066}
    7167
Note: See TracChangeset for help on using the changeset viewer.