Changes in uspace/lib/c/generic/io/window.c [2c7fdaa:fa98b26a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/window.c
r2c7fdaa rfa98b26a 40 40 #include <stdio.h> 41 41 42 int win_register(async_sess_t *sess, window_flags_t flags, service_id_t *in,43 s ervice_id_t *out)42 int win_register(async_sess_t *sess, service_id_t *in, service_id_t *out, 43 sysarg_t x_offset, sysarg_t y_offset) 44 44 { 45 45 async_exch_t *exch = async_exchange_begin(sess); 46 int ret = async_req_ 1_2(exch, WINDOW_REGISTER, flags, in, out);46 int ret = async_req_2_2(exch, WINDOW_REGISTER, x_offset, y_offset, in, out); 47 47 async_exchange_end(exch); 48 48 49 49 return ret; 50 50 } … … 92 92 } 93 93 94 int win_resize(async_sess_t *sess, sysarg_t x, sysarg_t y, sysarg_t width, 95 sysarg_t height, window_placement_flags_t placement_flags, void *cells) 94 int win_resize(async_sess_t *sess, sysarg_t width, sysarg_t height, void *cells) 96 95 { 97 96 async_exch_t *exch = async_exchange_begin(sess); 98 97 99 98 ipc_call_t answer; 100 aid_t req = async_send_5(exch, WINDOW_RESIZE, x, y, width, height, 101 (sysarg_t) placement_flags, &answer); 102 99 aid_t req = async_send_2(exch, WINDOW_RESIZE, width, height, &answer); 100 103 101 int rc = async_share_out_start(exch, cells, AS_AREA_READ | AS_AREA_CACHEABLE); 104 102 105 103 async_exchange_end(exch); 106 104 107 105 sysarg_t ret; 108 106 async_wait_for(req, &ret); 109 110 if (rc != EOK) 107 108 if (rc != EOK) { 111 109 return rc; 112 else if (ret != EOK)110 } else if (ret != EOK) { 113 111 return ret; 114 115 return EOK; 112 } else { 113 return EOK; 114 } 116 115 } 117 116
Note:
See TracChangeset
for help on using the changeset viewer.