Ignore:
File:
1 edited

Legend:

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

    r62fbb7e rfa98b26a  
    4040#include <stdio.h>
    4141
    42 int win_register(async_sess_t *sess, service_id_t *in, service_id_t *out)
     42int win_register(async_sess_t *sess, service_id_t *in, service_id_t *out,
     43    sysarg_t x_offset, sysarg_t y_offset)
    4344{
    4445        async_exch_t *exch = async_exchange_begin(sess);
    45         int ret = async_req_0_2(exch, WINDOW_REGISTER, in, out);
     46        int ret = async_req_2_2(exch, WINDOW_REGISTER, x_offset, y_offset, in, out);
    4647        async_exchange_end(exch);
    47        
     48
    4849        return ret;
    4950}
     
    9192}
    9293
    93 int win_resize(async_sess_t *sess, sysarg_t x, sysarg_t y, sysarg_t width,
    94     sysarg_t height, window_placement_flags_t placement_flags, void *cells)
     94int win_resize(async_sess_t *sess, sysarg_t width, sysarg_t height, void *cells)
    9595{
    9696        async_exch_t *exch = async_exchange_begin(sess);
    97        
     97
    9898        ipc_call_t answer;
    99         aid_t req = async_send_5(exch, WINDOW_RESIZE, x, y, width, height,
    100             (sysarg_t) placement_flags, &answer);
    101        
     99        aid_t req = async_send_2(exch, WINDOW_RESIZE, width, height, &answer);
     100
    102101        int rc = async_share_out_start(exch, cells, AS_AREA_READ | AS_AREA_CACHEABLE);
    103        
     102
    104103        async_exchange_end(exch);
    105        
     104
    106105        sysarg_t ret;
    107106        async_wait_for(req, &ret);
    108        
    109         if (rc != EOK)
     107
     108        if (rc != EOK) {
    110109                return rc;
    111         else if (ret != EOK)
     110        } else if (ret != EOK) {
    112111                return ret;
    113        
    114         return EOK;
     112        } else {
     113                return EOK;
     114        }
    115115}
    116116
Note: See TracChangeset for help on using the changeset viewer.