Changeset 3be9d10 in mainline for uspace/lib/c/generic/io
- Timestamp:
- 2018-03-21T21:29:31Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3e242d2
- Parents:
- eadaeae8
- Location:
- uspace/lib/c/generic/io
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/chardev_srv.c
readaeae8 r3be9d10 43 43 static chardev_srv_t *chardev_srv_create(chardev_srvs_t *); 44 44 45 static void chardev_read_srv(chardev_srv_t *srv, ipc_callid_t callid,45 static void chardev_read_srv(chardev_srv_t *srv, cap_call_handle_t callid, 46 46 ipc_call_t *call) 47 47 { … … 50 50 size_t nread; 51 51 errno_t rc; 52 ipc_callid_t rcallid;52 cap_call_handle_t rcallid; 53 53 54 54 if (!async_data_read_receive(&rcallid, &size)) { … … 85 85 } 86 86 87 static void chardev_write_srv(chardev_srv_t *srv, ipc_callid_t callid,87 static void chardev_write_srv(chardev_srv_t *srv, cap_call_handle_t callid, 88 88 ipc_call_t *call) 89 89 { … … 132 132 } 133 133 134 errno_t chardev_conn( ipc_callid_t iid, ipc_call_t *icall, chardev_srvs_t *srvs)134 errno_t chardev_conn(cap_call_handle_t iid, ipc_call_t *icall, chardev_srvs_t *srvs) 135 135 { 136 136 chardev_srv_t *srv; … … 152 152 while (true) { 153 153 ipc_call_t call; 154 ipc_callid_t callid = async_get_call(&call);154 cap_call_handle_t callid = async_get_call(&call); 155 155 sysarg_t method = IPC_GET_IMETHOD(call); 156 156 -
uspace/lib/c/generic/io/con_srv.c
readaeae8 r3be9d10 66 66 } 67 67 68 static void con_read_srv(con_srv_t *srv, ipc_callid_t callid,68 static void con_read_srv(con_srv_t *srv, cap_call_handle_t callid, 69 69 ipc_call_t *call) 70 70 { … … 72 72 size_t size; 73 73 errno_t rc; 74 ipc_callid_t rcallid;74 cap_call_handle_t rcallid; 75 75 76 76 if (!async_data_read_receive(&rcallid, &size)) { … … 108 108 } 109 109 110 static void con_write_srv(con_srv_t *srv, ipc_callid_t callid,110 static void con_write_srv(con_srv_t *srv, cap_call_handle_t callid, 111 111 ipc_call_t *call) 112 112 { … … 133 133 } 134 134 135 static void con_sync_srv(con_srv_t *srv, ipc_callid_t callid,135 static void con_sync_srv(con_srv_t *srv, cap_call_handle_t callid, 136 136 ipc_call_t *call) 137 137 { … … 145 145 } 146 146 147 static void con_clear_srv(con_srv_t *srv, ipc_callid_t callid,147 static void con_clear_srv(con_srv_t *srv, cap_call_handle_t callid, 148 148 ipc_call_t *call) 149 149 { … … 157 157 } 158 158 159 static void con_set_pos_srv(con_srv_t *srv, ipc_callid_t callid,159 static void con_set_pos_srv(con_srv_t *srv, cap_call_handle_t callid, 160 160 ipc_call_t *call) 161 161 { … … 175 175 } 176 176 177 static void con_get_pos_srv(con_srv_t *srv, ipc_callid_t callid,177 static void con_get_pos_srv(con_srv_t *srv, cap_call_handle_t callid, 178 178 ipc_call_t *call) 179 179 { … … 191 191 } 192 192 193 static void con_get_size_srv(con_srv_t *srv, ipc_callid_t callid,193 static void con_get_size_srv(con_srv_t *srv, cap_call_handle_t callid, 194 194 ipc_call_t *call) 195 195 { … … 207 207 } 208 208 209 static void con_get_color_cap_srv(con_srv_t *srv, ipc_callid_t callid,209 static void con_get_color_cap_srv(con_srv_t *srv, cap_call_handle_t callid, 210 210 ipc_call_t *call) 211 211 { … … 222 222 } 223 223 224 static void con_set_style_srv(con_srv_t *srv, ipc_callid_t callid,224 static void con_set_style_srv(con_srv_t *srv, cap_call_handle_t callid, 225 225 ipc_call_t *call) 226 226 { … … 238 238 } 239 239 240 static void con_set_color_srv(con_srv_t *srv, ipc_callid_t callid,240 static void con_set_color_srv(con_srv_t *srv, cap_call_handle_t callid, 241 241 ipc_call_t *call) 242 242 { … … 258 258 } 259 259 260 static void con_set_rgb_color_srv(con_srv_t *srv, ipc_callid_t callid,260 static void con_set_rgb_color_srv(con_srv_t *srv, cap_call_handle_t callid, 261 261 ipc_call_t *call) 262 262 { … … 276 276 } 277 277 278 static void con_set_cursor_visibility_srv(con_srv_t *srv, ipc_callid_t callid,278 static void con_set_cursor_visibility_srv(con_srv_t *srv, cap_call_handle_t callid, 279 279 ipc_call_t *call) 280 280 { … … 292 292 } 293 293 294 static void con_get_event_srv(con_srv_t *srv, ipc_callid_t callid,294 static void con_get_event_srv(con_srv_t *srv, cap_call_handle_t callid, 295 295 ipc_call_t *call) 296 296 { … … 340 340 } 341 341 342 errno_t con_conn( ipc_callid_t iid, ipc_call_t *icall, con_srvs_t *srvs)342 errno_t con_conn(cap_call_handle_t iid, ipc_call_t *icall, con_srvs_t *srvs) 343 343 { 344 344 con_srv_t *srv; … … 366 366 while (true) { 367 367 ipc_call_t call; 368 ipc_callid_t callid = 0;368 cap_call_handle_t callid = 0; 369 369 370 370 while (callid == 0) { -
uspace/lib/c/generic/io/input.c
readaeae8 r3be9d10 43 43 #include <stdlib.h> 44 44 45 static void input_cb_conn( ipc_callid_t iid, ipc_call_t *icall, void *arg);45 static void input_cb_conn(cap_call_handle_t iid, ipc_call_t *icall, void *arg); 46 46 47 47 errno_t input_open(async_sess_t *sess, input_ev_ops_t *ev_ops, … … 92 92 } 93 93 94 static void input_ev_active(input_t *input, ipc_callid_t callid,94 static void input_ev_active(input_t *input, cap_call_handle_t callid, 95 95 ipc_call_t *call) 96 96 { … … 99 99 } 100 100 101 static void input_ev_deactive(input_t *input, ipc_callid_t callid,101 static void input_ev_deactive(input_t *input, cap_call_handle_t callid, 102 102 ipc_call_t *call) 103 103 { … … 106 106 } 107 107 108 static void input_ev_key(input_t *input, ipc_callid_t callid,108 static void input_ev_key(input_t *input, cap_call_handle_t callid, 109 109 ipc_call_t *call) 110 110 { … … 124 124 } 125 125 126 static void input_ev_move(input_t *input, ipc_callid_t callid,126 static void input_ev_move(input_t *input, cap_call_handle_t callid, 127 127 ipc_call_t *call) 128 128 { … … 138 138 } 139 139 140 static void input_ev_abs_move(input_t *input, ipc_callid_t callid,140 static void input_ev_abs_move(input_t *input, cap_call_handle_t callid, 141 141 ipc_call_t *call) 142 142 { … … 156 156 } 157 157 158 static void input_ev_button(input_t *input, ipc_callid_t callid,158 static void input_ev_button(input_t *input, cap_call_handle_t callid, 159 159 ipc_call_t *call) 160 160 { … … 170 170 } 171 171 172 static void input_cb_conn( ipc_callid_t iid, ipc_call_t *icall, void *arg)172 static void input_cb_conn(cap_call_handle_t iid, ipc_call_t *icall, void *arg) 173 173 { 174 174 input_t *input = (input_t *)arg; … … 176 176 while (true) { 177 177 ipc_call_t call; 178 ipc_callid_t callid = async_get_call(&call);178 cap_call_handle_t callid = async_get_call(&call); 179 179 180 180 if (!IPC_GET_IMETHOD(call)) {
Note:
See TracChangeset
for help on using the changeset viewer.