Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/async.h

    rb7fd2a0 rd5c1051  
    146146    sysarg_t, sysarg_t, sysarg_t, ipc_call_t *);
    147147
    148 extern void async_wait_for(aid_t, errno_t *);
    149 extern errno_t async_wait_timeout(aid_t, errno_t *, suseconds_t);
     148extern void async_wait_for(aid_t, int *);
     149extern int async_wait_timeout(aid_t, int *, suseconds_t);
    150150extern void async_forget(aid_t);
    151151
     
    162162extern void async_put_client_data_by_id(task_id_t);
    163163
    164 extern errno_t async_create_port(iface_t, async_port_handler_t, void *,
     164extern int async_create_port(iface_t, async_port_handler_t, void *,
    165165    port_id_t *);
    166166extern void async_set_fallback_port_handler(async_port_handler_t, void *);
    167 extern errno_t async_create_callback_port(async_exch_t *, iface_t, sysarg_t,
     167extern int async_create_callback_port(async_exch_t *, iface_t, sysarg_t,
    168168    sysarg_t, async_port_handler_t, void *, port_id_t *);
    169169
    170 extern errno_t async_irq_subscribe(int, async_notification_handler_t, void *,
     170extern int async_irq_subscribe(int, async_notification_handler_t, void *,
    171171    const irq_code_t *, cap_handle_t *);
    172 extern errno_t async_irq_unsubscribe(cap_handle_t);
    173 
    174 extern errno_t async_event_subscribe(event_type_t, async_notification_handler_t,
     172extern int async_irq_unsubscribe(cap_handle_t);
     173
     174extern int async_event_subscribe(event_type_t, async_notification_handler_t,
    175175    void *);
    176 extern errno_t async_event_task_subscribe(event_task_type_t,
     176extern int async_event_task_subscribe(event_task_type_t,
    177177    async_notification_handler_t, void *);
    178 extern errno_t async_event_unsubscribe(event_type_t);
    179 extern errno_t async_event_task_unsubscribe(event_task_type_t);
    180 extern errno_t async_event_unmask(event_type_t);
    181 extern errno_t async_event_task_unmask(event_task_type_t);
     178extern int async_event_unsubscribe(event_type_t);
     179extern int async_event_task_unsubscribe(event_task_type_t);
     180extern int async_event_unmask(event_type_t);
     181extern int async_event_task_unmask(event_task_type_t);
    182182
    183183/*
     
    198198 */
    199199
    200 extern errno_t async_answer_0(cap_handle_t, errno_t);
    201 extern errno_t async_answer_1(cap_handle_t, errno_t, sysarg_t);
    202 extern errno_t async_answer_2(cap_handle_t, errno_t, sysarg_t, sysarg_t);
    203 extern errno_t async_answer_3(cap_handle_t, errno_t, sysarg_t, sysarg_t,
     200extern int async_answer_0(cap_handle_t, int);
     201extern int async_answer_1(cap_handle_t, int, sysarg_t);
     202extern int async_answer_2(cap_handle_t, int, sysarg_t, sysarg_t);
     203extern int async_answer_3(cap_handle_t, int, sysarg_t, sysarg_t,
    204204    sysarg_t);
    205 extern errno_t async_answer_4(cap_handle_t, errno_t, sysarg_t, sysarg_t,
     205extern int async_answer_4(cap_handle_t, int, sysarg_t, sysarg_t,
    206206    sysarg_t, sysarg_t);
    207 extern errno_t async_answer_5(cap_handle_t, errno_t, sysarg_t, sysarg_t,
     207extern int async_answer_5(cap_handle_t, int, sysarg_t, sysarg_t,
    208208    sysarg_t, sysarg_t, sysarg_t);
    209209
     
    212212 */
    213213
    214 extern errno_t async_forward_fast(cap_handle_t, async_exch_t *, sysarg_t, sysarg_t,
     214extern int async_forward_fast(cap_handle_t, async_exch_t *, sysarg_t, sysarg_t,
    215215    sysarg_t, unsigned int);
    216 extern errno_t async_forward_slow(cap_handle_t, async_exch_t *, sysarg_t, sysarg_t,
     216extern int async_forward_slow(cap_handle_t, async_exch_t *, sysarg_t, sysarg_t,
    217217    sysarg_t, sysarg_t, sysarg_t, sysarg_t, unsigned int);
    218218
     
    338338            rc3, rc4, rc5)
    339339
    340 extern errno_t async_req_fast(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     340extern int async_req_fast(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
    341341    sysarg_t, sysarg_t, sysarg_t *, sysarg_t *, sysarg_t *, sysarg_t *,
    342342    sysarg_t *);
    343 extern errno_t async_req_slow(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     343extern int async_req_slow(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
    344344    sysarg_t, sysarg_t, sysarg_t, sysarg_t *, sysarg_t *, sysarg_t *,
    345345    sysarg_t *, sysarg_t *);
     
    355355extern async_sess_t *async_connect_kbox(task_id_t);
    356356
    357 extern errno_t async_connect_to_me(async_exch_t *, sysarg_t, sysarg_t, sysarg_t);
    358 
    359 extern errno_t async_hangup(async_sess_t *);
     357extern int async_connect_to_me(async_exch_t *, sysarg_t, sysarg_t, sysarg_t);
     358
     359extern int async_hangup(async_sess_t *);
    360360extern void async_poke(void);
    361361
     
    382382        async_share_in_start(exch, size, arg, flags, dst)
    383383
    384 extern errno_t async_share_in_start(async_exch_t *, size_t, sysarg_t,
     384extern int async_share_in_start(async_exch_t *, size_t, sysarg_t,
    385385    unsigned int *, void **);
    386386extern bool async_share_in_receive(cap_handle_t *, size_t *);
    387 extern errno_t async_share_in_finalize(cap_handle_t, void *, unsigned int);
    388 
    389 extern errno_t async_share_out_start(async_exch_t *, void *, unsigned int);
     387extern int async_share_in_finalize(cap_handle_t, void *, unsigned int);
     388
     389extern int async_share_out_start(async_exch_t *, void *, unsigned int);
    390390extern bool async_share_out_receive(cap_handle_t *, size_t *, unsigned int *);
    391 extern errno_t async_share_out_finalize(cap_handle_t, void **);
     391extern int async_share_out_finalize(cap_handle_t, void **);
    392392
    393393/*
     
    422422
    423423extern aid_t async_data_read(async_exch_t *, void *, size_t, ipc_call_t *);
    424 extern errno_t async_data_read_start(async_exch_t *, void *, size_t);
     424extern int async_data_read_start(async_exch_t *, void *, size_t);
    425425extern bool async_data_read_receive(cap_handle_t *, size_t *);
    426426extern bool async_data_read_receive_call(cap_handle_t *, ipc_call_t *, size_t *);
    427 extern errno_t async_data_read_finalize(cap_handle_t, const void *, size_t);
    428 
    429 extern errno_t async_data_read_forward_fast(async_exch_t *, sysarg_t, sysarg_t,
     427extern int async_data_read_finalize(cap_handle_t, const void *, size_t);
     428
     429extern int async_data_read_forward_fast(async_exch_t *, sysarg_t, sysarg_t,
    430430    sysarg_t, sysarg_t, sysarg_t, ipc_call_t *);
    431431
     
    461461            answer)
    462462
    463 extern errno_t async_data_write_start(async_exch_t *, const void *, size_t);
     463extern int async_data_write_start(async_exch_t *, const void *, size_t);
    464464extern bool async_data_write_receive(cap_handle_t *, size_t *);
    465465extern bool async_data_write_receive_call(cap_handle_t *, ipc_call_t *, size_t *);
    466 extern errno_t async_data_write_finalize(cap_handle_t, void *, size_t);
    467 
    468 extern errno_t async_data_write_accept(void **, const bool, const size_t,
     466extern int async_data_write_finalize(cap_handle_t, void *, size_t);
     467
     468extern int async_data_write_accept(void **, const bool, const size_t,
    469469    const size_t, const size_t, size_t *);
    470 extern void async_data_write_void(errno_t);
    471 
    472 extern errno_t async_data_write_forward_fast(async_exch_t *, sysarg_t, sysarg_t,
     470extern void async_data_write_void(int);
     471
     472extern int async_data_write_forward_fast(async_exch_t *, sysarg_t, sysarg_t,
    473473    sysarg_t, sysarg_t, sysarg_t, ipc_call_t *);
    474474
     
    476476extern async_sess_t *async_callback_receive_start(exch_mgmt_t, ipc_call_t *);
    477477
    478 extern errno_t async_state_change_start(async_exch_t *, sysarg_t, sysarg_t,
     478extern int async_state_change_start(async_exch_t *, sysarg_t, sysarg_t,
    479479    sysarg_t, async_exch_t *);
    480480extern bool async_state_change_receive(cap_handle_t *, sysarg_t *, sysarg_t *,
    481481    sysarg_t *);
    482 extern errno_t async_state_change_finalize(cap_handle_t, async_exch_t *);
     482extern int async_state_change_finalize(cap_handle_t, async_exch_t *);
    483483
    484484extern void *async_remote_state_acquire(async_sess_t *);
Note: See TracChangeset for help on using the changeset viewer.