Ignore:
File:
1 edited

Legend:

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

    rfa98b26a r2c7fdaa  
    4040#include <stdio.h>
    4141
    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)
     42int win_register(async_sess_t *sess, window_flags_t flags, service_id_t *in,
     43    service_id_t *out)
    4444{
    4545        async_exch_t *exch = async_exchange_begin(sess);
    46         int ret = async_req_2_2(exch, WINDOW_REGISTER, x_offset, y_offset, in, out);
     46        int ret = async_req_1_2(exch, WINDOW_REGISTER, flags, in, out);
    4747        async_exchange_end(exch);
    48 
     48       
    4949        return ret;
    5050}
     
    9292}
    9393
    94 int win_resize(async_sess_t *sess, sysarg_t width, sysarg_t height, void *cells)
     94int 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)
    9596{
    9697        async_exch_t *exch = async_exchange_begin(sess);
    97 
     98       
    9899        ipc_call_t answer;
    99         aid_t req = async_send_2(exch, WINDOW_RESIZE, width, height, &answer);
    100 
     100        aid_t req = async_send_5(exch, WINDOW_RESIZE, x, y, width, height,
     101            (sysarg_t) placement_flags, &answer);
     102       
    101103        int rc = async_share_out_start(exch, cells, AS_AREA_READ | AS_AREA_CACHEABLE);
    102 
     104       
    103105        async_exchange_end(exch);
    104 
     106       
    105107        sysarg_t ret;
    106108        async_wait_for(req, &ret);
    107 
    108         if (rc != EOK) {
     109       
     110        if (rc != EOK)
    109111                return rc;
    110         } else if (ret != EOK) {
     112        else if (ret != EOK)
    111113                return ret;
    112         } else {
    113                 return EOK;
    114         }
     114       
     115        return EOK;
    115116}
    116117
Note: See TracChangeset for help on using the changeset viewer.