Changes in uspace/lib/c/generic/io/window.c [b7fd2a0:25a179e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/window.c
rb7fd2a0 r25a179e 40 40 #include <stdio.h> 41 41 42 errno_t win_register(async_sess_t *sess, window_flags_t flags, service_id_t *in,42 int win_register(async_sess_t *sess, window_flags_t flags, service_id_t *in, 43 43 service_id_t *out) 44 44 { 45 45 async_exch_t *exch = async_exchange_begin(sess); 46 errno_t ret = async_req_1_2(exch, WINDOW_REGISTER, flags, in, out);46 int ret = async_req_1_2(exch, WINDOW_REGISTER, flags, in, out); 47 47 async_exchange_end(exch); 48 48 … … 50 50 } 51 51 52 errno_t win_get_event(async_sess_t *sess, window_event_t *event)52 int win_get_event(async_sess_t *sess, window_event_t *event) 53 53 { 54 54 async_exch_t *exch = async_exchange_begin(sess); … … 57 57 aid_t req = async_send_0(exch, WINDOW_GET_EVENT, &answer); 58 58 59 errno_t rc = async_data_read_start(exch, event, sizeof(window_event_t));59 int rc = async_data_read_start(exch, event, sizeof(window_event_t)); 60 60 61 61 async_exchange_end(exch); 62 62 63 errno_t ret;63 int ret; 64 64 async_wait_for(req, &ret); 65 65 … … 73 73 } 74 74 75 errno_t win_damage(async_sess_t *sess,75 int win_damage(async_sess_t *sess, 76 76 sysarg_t x, sysarg_t y, sysarg_t width, sysarg_t height) 77 77 { 78 78 async_exch_t *exch = async_exchange_begin(sess); 79 errno_t ret = async_req_4_0(exch, WINDOW_DAMAGE, x, y, width, height);79 int ret = async_req_4_0(exch, WINDOW_DAMAGE, x, y, width, height); 80 80 async_exchange_end(exch); 81 81 … … 83 83 } 84 84 85 errno_t win_grab(async_sess_t *sess, sysarg_t pos_id, sysarg_t grab_flags)85 int win_grab(async_sess_t *sess, sysarg_t pos_id, sysarg_t grab_flags) 86 86 { 87 87 async_exch_t *exch = async_exchange_begin(sess); 88 errno_t ret = async_req_2_0(exch, WINDOW_GRAB, pos_id, grab_flags);88 int ret = async_req_2_0(exch, WINDOW_GRAB, pos_id, grab_flags); 89 89 async_exchange_end(exch); 90 90 … … 92 92 } 93 93 94 errno_t win_resize(async_sess_t *sess, sysarg_t x, sysarg_t y, sysarg_t width,94 int win_resize(async_sess_t *sess, sysarg_t x, sysarg_t y, sysarg_t width, 95 95 sysarg_t height, window_placement_flags_t placement_flags, void *cells) 96 96 { … … 101 101 (sysarg_t) placement_flags, &answer); 102 102 103 errno_t rc = async_share_out_start(exch, cells, AS_AREA_READ | AS_AREA_CACHEABLE);103 int rc = async_share_out_start(exch, cells, AS_AREA_READ | AS_AREA_CACHEABLE); 104 104 105 105 async_exchange_end(exch); 106 106 107 errno_t ret;107 int ret; 108 108 async_wait_for(req, &ret); 109 109 … … 116 116 } 117 117 118 errno_t win_close(async_sess_t *sess)118 int win_close(async_sess_t *sess) 119 119 { 120 120 async_exch_t *exch = async_exchange_begin(sess); 121 errno_t ret = async_req_0_0(exch, WINDOW_CLOSE);121 int ret = async_req_0_0(exch, WINDOW_CLOSE); 122 122 async_exchange_end(exch); 123 123 … … 125 125 } 126 126 127 errno_t win_close_request(async_sess_t *sess)127 int win_close_request(async_sess_t *sess) 128 128 { 129 129 async_exch_t *exch = async_exchange_begin(sess); 130 errno_t ret = async_req_0_0(exch, WINDOW_CLOSE_REQUEST);130 int ret = async_req_0_0(exch, WINDOW_CLOSE_REQUEST); 131 131 async_exchange_end(exch); 132 132
Note:
See TracChangeset
for help on using the changeset viewer.