Changeset 936351c1 in mainline for libipc/include/ipc.h


Ignore:
Timestamp:
2006-03-14T23:48:33Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d73942c
Parents:
4f34b6a
Message:

Completed asynchronous IPC.
Fixed sbrk.
Cleared some unnecessary defines in malloc.
Changed u8 * to char * in list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libipc/include/ipc.h

    r4f34b6a r936351c1  
    3333#include <libc.h>
    3434
    35 typedef sysarg_t ipc_data_t[IPC_CALL_LEN];
     35typedef sysarg_t ipcarg_t;
     36typedef ipcarg_t ipc_data_t[IPC_CALL_LEN];
    3637typedef sysarg_t ipc_callid_t;
    3738
    38 typedef void (* ipc_async_callback_t)(ipc_data_t *data);
     39typedef void (* ipc_async_callback_t)(void *private,
     40                                      int retval,
     41                                      ipc_data_t *data);
    3942
    4043#define ipc_call_sync_2(phoneid, method, arg1, arg2, res1, res2) ipc_call_sync_3((phoneid), (method), (arg1), (arg2), 0, (res1), (res2), 0)
    41 extern int ipc_call_sync_3(int phoneid, sysarg_t method, sysarg_t arg1,
    42                            sysarg_t arg2, sysarg_t arg3,
    43                            sysarg_t *result1, sysarg_t *result2,
    44                            sysarg_t *result3);
     44extern int ipc_call_sync_3(int phoneid, ipcarg_t method, ipcarg_t arg1,
     45                           ipcarg_t arg2, ipcarg_t arg3,
     46                           ipcarg_t *result1, ipcarg_t *result2,
     47                           ipcarg_t *result3);
    4548
    4649
    47 extern int ipc_call_sync(int phoneid, sysarg_t method, sysarg_t arg1,
    48                          sysarg_t *result);
     50extern int ipc_call_sync(int phoneid, ipcarg_t method, ipcarg_t arg1,
     51                         ipcarg_t *result);
    4952extern int ipc_wait_for_call(ipc_data_t *data, int flags);
    50 extern void ipc_answer(ipc_callid_t callid, sysarg_t retval, sysarg_t arg1,
    51                        sysarg_t arg2);
     53extern void ipc_answer(ipc_callid_t callid, ipcarg_t retval, ipcarg_t arg1,
     54                       ipcarg_t arg2);
    5255
    53 #define ipc_call_async(phoneid,method,arg1,callback) (ipc_call_async_2(phoneid, method, arg1, 0, callback))
    54 void ipc_call_async_2(int phoneid, sysarg_t method, sysarg_t arg1,
    55                       sysarg_t arg2,
     56#define ipc_call_async(phoneid,method,arg1,private, callback) (ipc_call_async_2(phoneid, method, arg1, 0, private, callback))
     57void ipc_call_async_2(int phoneid, ipcarg_t method, ipcarg_t arg1,
     58                      ipcarg_t arg2, void *private,
    5659                      ipc_async_callback_t callback);
    5760
Note: See TracChangeset for help on using the changeset viewer.