Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset eda925a in mainline for uspace/lib/libc/include/async.h


Ignore:
Timestamp:
2010-02-04T15:46:51Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
d32358f
Parents:
b4cbef1
Message:

improve naming conventions:
merge async_data_receive() and async_string_receive() into async_data_write_accept()
rename async_data_void() to async_data_write_void()
rename async_data_forward_fast() to async_data_write_forward_fast()
rename async_data_forward_n_m to async_data_write_forward_n_m

File:
1 edited

Legend:

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

    rb4cbef1 reda925a  
    310310extern int async_data_read_receive(ipc_callid_t *, size_t *);
    311311extern int async_data_read_finalize(ipc_callid_t, const void *, size_t);
     312
    312313extern int async_data_read_forward_fast(int, ipcarg_t, ipcarg_t, ipcarg_t,
    313314    ipcarg_t, ipcarg_t, ipc_call_t *);
    314315
    315316/*
    316  * User-friendly wrappers for async_data_forward_fast().
    317  */
    318 #define async_data_forward_0_0(phoneid, method, answer) \
    319         async_data_forward_fast((phoneid), (method), 0, 0, 0, 0, NULL)
    320 #define async_data_forward_0_1(phoneid, method, answer) \
    321         async_data_forward_fast((phoneid), (method), 0, 0, 0, 0, (answer))
    322 #define async_data_forward_1_0(phoneid, method, arg1, answer) \
    323         async_data_forward_fast((phoneid), (method), (arg1), 0, 0, 0, NULL)
    324 #define async_data_forward_1_1(phoneid, method, arg1, answer) \
    325         async_data_forward_fast((phoneid), (method), (arg1), 0, 0, 0, (answer))
    326 #define async_data_forward_2_0(phoneid, method, arg1, arg2, answer) \
    327         async_data_forward_fast((phoneid), (method), (arg1), (arg2), 0, 0, NULL)
    328 #define async_data_forward_2_1(phoneid, method, arg1, arg2, answer) \
    329         async_data_forward_fast((phoneid), (method), (arg1), (arg2), 0, 0, \
     317 * User-friendly wrappers for async_data_write_forward_fast().
     318 */
     319#define async_data_write_forward_0_0(phoneid, method, answer) \
     320        async_data_write_forward_fast((phoneid), (method), 0, 0, 0, 0, NULL)
     321#define async_data_write_forward_0_1(phoneid, method, answer) \
     322        async_data_write_forward_fast((phoneid), (method), 0, 0, 0, 0, (answer))
     323#define async_data_write_forward_1_0(phoneid, method, arg1, answer) \
     324        async_data_write_forward_fast((phoneid), (method), (arg1), 0, 0, 0, NULL)
     325#define async_data_write_forward_1_1(phoneid, method, arg1, answer) \
     326        async_data_write_forward_fast((phoneid), (method), (arg1), 0, 0, 0, \
    330327            (answer))
    331 #define async_data_forward_3_0(phoneid, method, arg1, arg2, arg3, answer) \
    332         async_data_forward_fast((phoneid), (method), (arg1), (arg2), (arg3), 0, \
    333             NULL)
    334 #define async_data_forward_3_1(phoneid, method, arg1, arg2, arg3, answer) \
    335         async_data_forward_fast((phoneid), (method), (arg1), (arg2), (arg3), 0, \
     328#define async_data_write_forward_2_0(phoneid, method, arg1, arg2, answer) \
     329        async_data_write_forward_fast((phoneid), (method), (arg1), (arg2), 0, 0, \
     330            NULL)
     331#define async_data_write_forward_2_1(phoneid, method, arg1, arg2, answer) \
     332        async_data_write_forward_fast((phoneid), (method), (arg1), (arg2), 0, 0, \
    336333            (answer))
    337 #define async_data_forward_4_0(phoneid, method, arg1, arg2, arg3, arg4, answer) \
    338         async_data_forward_fast((phoneid), (method), (arg1), (arg2), (arg3), \
     334#define async_data_write_forward_3_0(phoneid, method, arg1, arg2, arg3, answer) \
     335        async_data_write_forward_fast((phoneid), (method), (arg1), (arg2), (arg3), \
     336            0, NULL)
     337#define async_data_write_forward_3_1(phoneid, method, arg1, arg2, arg3, answer) \
     338        async_data_write_forward_fast((phoneid), (method), (arg1), (arg2), (arg3), \
     339            0, (answer))
     340#define async_data_write_forward_4_0(phoneid, method, arg1, arg2, arg3, arg4, answer) \
     341        async_data_write_forward_fast((phoneid), (method), (arg1), (arg2), (arg3), \
    339342            (arg4), NULL)
    340 #define async_data_forward_4_1(phoneid, method, arg1, arg2, arg3, arg4, answer) \
    341         async_data_forward_fast((phoneid), (method), (arg1), (arg2), (arg3), \
     343#define async_data_write_forward_4_1(phoneid, method, arg1, arg2, arg3, arg4, answer) \
     344        async_data_write_forward_fast((phoneid), (method), (arg1), (arg2), (arg3), \
    342345            (arg4), (answer))
    343346
     
    345348extern int async_data_write_receive(ipc_callid_t *, size_t *);
    346349extern int async_data_write_finalize(ipc_callid_t, void *, size_t);
    347 extern int async_data_receive(void **, const size_t, const size_t,
    348     const size_t, size_t *);
    349 extern int async_string_receive(char **, const size_t, size_t *);
    350 extern void async_data_void(const int);
    351 extern int async_data_forward_fast(int, ipcarg_t, ipcarg_t, ipcarg_t, ipcarg_t,
    352     ipcarg_t, ipc_call_t *);
     350
     351extern int async_data_write_accept(void **, const bool, const size_t,
     352    const size_t, const size_t, size_t *);
     353extern void async_data_write_void(const int);
     354
     355extern int async_data_write_forward_fast(int, ipcarg_t, ipcarg_t, ipcarg_t,
     356    ipcarg_t, ipcarg_t, ipc_call_t *);
    353357
    354358#endif
Note: See TracChangeset for help on using the changeset viewer.