Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/window.c

    r25a179e rb7fd2a0  
    4040#include <stdio.h>
    4141
    42 int win_register(async_sess_t *sess, window_flags_t flags, service_id_t *in,
     42errno_t win_register(async_sess_t *sess, window_flags_t flags, service_id_t *in,
    4343    service_id_t *out)
    4444{
    4545        async_exch_t *exch = async_exchange_begin(sess);
    46         int ret = async_req_1_2(exch, WINDOW_REGISTER, flags, in, out);
     46        errno_t ret = async_req_1_2(exch, WINDOW_REGISTER, flags, in, out);
    4747        async_exchange_end(exch);
    4848       
     
    5050}
    5151
    52 int win_get_event(async_sess_t *sess, window_event_t *event)
     52errno_t win_get_event(async_sess_t *sess, window_event_t *event)
    5353{
    5454        async_exch_t *exch = async_exchange_begin(sess);
     
    5757        aid_t req = async_send_0(exch, WINDOW_GET_EVENT, &answer);
    5858
    59         int rc = async_data_read_start(exch, event, sizeof(window_event_t));
     59        errno_t rc = async_data_read_start(exch, event, sizeof(window_event_t));
    6060
    6161        async_exchange_end(exch);
    6262
    63         int ret;
     63        errno_t ret;
    6464        async_wait_for(req, &ret);
    6565
     
    7373}
    7474
    75 int win_damage(async_sess_t *sess,
     75errno_t win_damage(async_sess_t *sess,
    7676    sysarg_t x, sysarg_t y, sysarg_t width, sysarg_t height)
    7777{
    7878        async_exch_t *exch = async_exchange_begin(sess);
    79         int ret = async_req_4_0(exch, WINDOW_DAMAGE, x, y, width, height);
     79        errno_t ret = async_req_4_0(exch, WINDOW_DAMAGE, x, y, width, height);
    8080        async_exchange_end(exch);
    8181
     
    8383}
    8484
    85 int win_grab(async_sess_t *sess, sysarg_t pos_id, sysarg_t grab_flags)
     85errno_t win_grab(async_sess_t *sess, sysarg_t pos_id, sysarg_t grab_flags)
    8686{
    8787        async_exch_t *exch = async_exchange_begin(sess);
    88         int ret = async_req_2_0(exch, WINDOW_GRAB, pos_id, grab_flags);
     88        errno_t ret = async_req_2_0(exch, WINDOW_GRAB, pos_id, grab_flags);
    8989        async_exchange_end(exch);
    9090
     
    9292}
    9393
    94 int win_resize(async_sess_t *sess, sysarg_t x, sysarg_t y, sysarg_t width,
     94errno_t win_resize(async_sess_t *sess, sysarg_t x, sysarg_t y, sysarg_t width,
    9595    sysarg_t height, window_placement_flags_t placement_flags, void *cells)
    9696{
     
    101101            (sysarg_t) placement_flags, &answer);
    102102       
    103         int rc = async_share_out_start(exch, cells, AS_AREA_READ | AS_AREA_CACHEABLE);
     103        errno_t rc = async_share_out_start(exch, cells, AS_AREA_READ | AS_AREA_CACHEABLE);
    104104       
    105105        async_exchange_end(exch);
    106106       
    107         int ret;
     107        errno_t ret;
    108108        async_wait_for(req, &ret);
    109109       
     
    116116}
    117117
    118 int win_close(async_sess_t *sess)
     118errno_t win_close(async_sess_t *sess)
    119119{
    120120        async_exch_t *exch = async_exchange_begin(sess);
    121         int ret = async_req_0_0(exch, WINDOW_CLOSE);
     121        errno_t ret = async_req_0_0(exch, WINDOW_CLOSE);
    122122        async_exchange_end(exch);
    123123
     
    125125}
    126126
    127 int win_close_request(async_sess_t *sess)
     127errno_t win_close_request(async_sess_t *sess)
    128128{
    129129        async_exch_t *exch = async_exchange_begin(sess);
    130         int ret = async_req_0_0(exch, WINDOW_CLOSE_REQUEST);
     130        errno_t ret = async_req_0_0(exch, WINDOW_CLOSE_REQUEST);
    131131        async_exchange_end(exch);
    132132
Note: See TracChangeset for help on using the changeset viewer.