Changes in uspace/lib/drv/generic/dev_iface.c [56fb3732:22027b6e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/dev_iface.c
r56fb3732 r22027b6e 36 36 */ 37 37 38 #include <assert.h> 39 38 40 #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" 43 43 44 44 static iface_dipatch_table_t remote_ifaces = { 45 45 .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 50 48 } 51 49 }; 52 50 53 remote_iface_t *get_remote_iface(int idx)54 { 51 remote_iface_t *get_remote_iface(int idx) 52 { 55 53 assert(is_valid_iface_idx(idx)); 56 54 return remote_ifaces.ifaces[idx]; … … 63 61 return NULL; 64 62 } 63 65 64 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); 66 70 } 67 71
Note:
See TracChangeset
for help on using the changeset viewer.