Changes in uspace/lib/c/include/ipc/devman.h [1a5b252:431d6d6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/ipc/devman.h
r1a5b252 r431d6d6 72 72 */ 73 73 typedef struct match_id_list { 74 li st_t ids;74 link_t ids; 75 75 } match_id_list_t; 76 76 … … 95 95 { 96 96 match_id_t *mid = NULL; 97 link_t *link = ids->ids. head.next;97 link_t *link = ids->ids.next; 98 98 99 while (link != &ids->ids .head) {99 while (link != &ids->ids) { 100 100 mid = list_get_instance(link, match_id_t,link); 101 101 if (mid->score < id->score) { 102 102 break; 103 } 103 } 104 104 link = link->next; 105 105 } … … 118 118 match_id_t *id; 119 119 120 while 121 link = list_first(&ids->ids);122 list_remove(link); 120 while(!list_empty(&ids->ids)) { 121 link = ids->ids.next; 122 list_remove(link); 123 123 id = list_get_instance(link, match_id_t, link); 124 delete_match_id(id); 125 } 124 delete_match_id(id); 125 } 126 126 } 127 127 … … 130 130 DEVMAN_CLIENT, 131 131 DEVMAN_CONNECT_TO_DEVICE, 132 DEVMAN_CONNECT_FROM_ LOC,132 DEVMAN_CONNECT_FROM_DEVMAP, 133 133 DEVMAN_CONNECT_TO_PARENTS_DEVICE 134 134 } devman_interface_t; … … 138 138 DEVMAN_ADD_FUNCTION, 139 139 DEVMAN_ADD_MATCH_ID, 140 DEVMAN_ADD_DEVICE_TO_CATEGORY, 141 DEVMAN_DRV_FUN_ONLINE, 142 DEVMAN_DRV_FUN_OFFLINE, 143 DEVMAN_REMOVE_FUNCTION 140 DEVMAN_ADD_DEVICE_TO_CLASS 141 144 142 } driver_to_devman_t; 145 143 146 144 typedef enum { 147 DRIVER_DEV_ADD = IPC_FIRST_USER_METHOD, 148 DRIVER_DEV_REMOVE, 149 DRIVER_FUN_ONLINE, 150 DRIVER_FUN_OFFLINE, 145 DRIVER_ADD_DEVICE = IPC_FIRST_USER_METHOD 151 146 152 147 } devman_to_driver_t; … … 154 149 typedef enum { 155 150 DEVMAN_DEVICE_GET_HANDLE = IPC_FIRST_USER_METHOD, 156 DEVMAN_DEV_GET_FUNCTIONS, 157 DEVMAN_FUN_GET_CHILD, 158 DEVMAN_FUN_GET_NAME, 159 DEVMAN_FUN_ONLINE, 160 DEVMAN_FUN_OFFLINE, 161 DEVMAN_FUN_GET_PATH, 162 DEVMAN_FUN_SID_TO_HANDLE 151 DEVMAN_DEVICE_GET_HANDLE_BY_CLASS, 152 DEVMAN_DEVICE_GET_DEVICE_PATH 163 153 } client_to_devman_t; 164 154
Note:
See TracChangeset
for help on using the changeset viewer.