Changes in uspace/lib/c/generic/io/output.c [b7fd2a0:5d94b16c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/output.c
rb7fd2a0 r5d94b16c 40 40 #include <io/output.h> 41 41 42 errno_t output_yield(async_sess_t *sess)42 int output_yield(async_sess_t *sess) 43 43 { 44 44 async_exch_t *exch = async_exchange_begin(sess); 45 errno_t ret = async_req_0_0(exch, OUTPUT_YIELD);45 int ret = async_req_0_0(exch, OUTPUT_YIELD); 46 46 async_exchange_end(exch); 47 47 … … 49 49 } 50 50 51 errno_t output_claim(async_sess_t *sess)51 int output_claim(async_sess_t *sess) 52 52 { 53 53 async_exch_t *exch = async_exchange_begin(sess); 54 errno_t ret = async_req_0_0(exch, OUTPUT_CLAIM);54 int ret = async_req_0_0(exch, OUTPUT_CLAIM); 55 55 async_exchange_end(exch); 56 56 … … 58 58 } 59 59 60 errno_t output_get_dimensions(async_sess_t *sess, sysarg_t *maxx, sysarg_t *maxy)60 int output_get_dimensions(async_sess_t *sess, sysarg_t *maxx, sysarg_t *maxy) 61 61 { 62 62 async_exch_t *exch = async_exchange_begin(sess); 63 errno_t ret = async_req_0_2(exch, OUTPUT_GET_DIMENSIONS, maxx, maxy);63 int ret = async_req_0_2(exch, OUTPUT_GET_DIMENSIONS, maxx, maxy); 64 64 async_exchange_end(exch); 65 65 … … 67 67 } 68 68 69 errno_t output_get_caps(async_sess_t *sess, console_caps_t *ccaps)69 int output_get_caps(async_sess_t *sess, console_caps_t *ccaps) 70 70 { 71 71 async_exch_t *exch = async_exchange_begin(sess); 72 72 73 73 sysarg_t rv; 74 errno_t ret = async_req_0_1(exch, OUTPUT_GET_CAPS, &rv);74 int ret = async_req_0_1(exch, OUTPUT_GET_CAPS, &rv); 75 75 76 76 async_exchange_end(exch); … … 89 89 ipc_call_t answer; 90 90 aid_t req = async_send_0(exch, OUTPUT_FRONTBUF_CREATE, &answer); 91 errno_t rc = async_share_out_start(exch, frontbuf, AS_AREA_READ91 int rc = async_share_out_start(exch, frontbuf, AS_AREA_READ 92 92 | AS_AREA_WRITE | AS_AREA_CACHEABLE); 93 93 94 94 async_exchange_end(exch); 95 95 96 errno_t ret;96 sysarg_t ret; 97 97 async_wait_for(req, &ret); 98 98 … … 103 103 } 104 104 105 errno_t output_set_style(async_sess_t *sess, console_style_t style)105 int output_set_style(async_sess_t *sess, console_style_t style) 106 106 { 107 107 async_exch_t *exch = async_exchange_begin(sess); 108 errno_t ret = async_req_1_0(exch, OUTPUT_SET_STYLE, style);108 int ret = async_req_1_0(exch, OUTPUT_SET_STYLE, style); 109 109 async_exchange_end(exch); 110 110 … … 112 112 } 113 113 114 errno_t output_cursor_update(async_sess_t *sess, frontbuf_handle_t frontbuf)114 int output_cursor_update(async_sess_t *sess, frontbuf_handle_t frontbuf) 115 115 { 116 116 async_exch_t *exch = async_exchange_begin(sess); 117 errno_t ret = async_req_1_0(exch, OUTPUT_CURSOR_UPDATE, frontbuf);117 int ret = async_req_1_0(exch, OUTPUT_CURSOR_UPDATE, frontbuf); 118 118 async_exchange_end(exch); 119 119 … … 121 121 } 122 122 123 errno_t output_update(async_sess_t *sess, frontbuf_handle_t frontbuf)123 int output_update(async_sess_t *sess, frontbuf_handle_t frontbuf) 124 124 { 125 125 async_exch_t *exch = async_exchange_begin(sess); 126 errno_t ret = async_req_1_0(exch, OUTPUT_UPDATE, frontbuf);126 int ret = async_req_1_0(exch, OUTPUT_UPDATE, frontbuf); 127 127 async_exchange_end(exch); 128 128 … … 130 130 } 131 131 132 errno_t output_damage(async_sess_t *sess, frontbuf_handle_t frontbuf, sysarg_t col,132 int output_damage(async_sess_t *sess, frontbuf_handle_t frontbuf, sysarg_t col, 133 133 sysarg_t row, sysarg_t cols, sysarg_t rows) 134 134 { 135 135 async_exch_t *exch = async_exchange_begin(sess); 136 errno_t ret = async_req_5_0(exch, OUTPUT_DAMAGE, frontbuf, col, row,136 int ret = async_req_5_0(exch, OUTPUT_DAMAGE, frontbuf, col, row, 137 137 cols, rows); 138 138 async_exchange_end(exch);
Note:
See TracChangeset
for help on using the changeset viewer.