Changeset 124c061 in mainline for uspace/lib/c


Ignore:
Timestamp:
2011-01-23T23:47:58Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
11bb813
Parents:
fdb9982c
Message:

ipc_connect_to_me() now takes one extra argument to store the client task hash.

Location:
uspace/lib/c
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/devman.c

    rfdb9982c r124c061  
    116116        async_set_client_connection(conn);
    117117       
    118         sysarg_t callback_phonehash;
    119         ipc_connect_to_me(phone, 0, 0, 0, &callback_phonehash);
     118        ipc_connect_to_me(phone, 0, 0, 0, NULL, NULL);
    120119        async_wait_for(req, &retval);
    121120       
  • uspace/lib/c/generic/devmap.c

    rfdb9982c r124c061  
    116116        async_set_client_connection(conn);
    117117       
    118         sysarg_t callback_phonehash;
    119         ipc_connect_to_me(phone, 0, 0, 0, &callback_phonehash);
     118        ipc_connect_to_me(phone, 0, 0, 0, NULL, NULL);
    120119        async_wait_for(req, &retval);
    121120       
  • uspace/lib/c/generic/ipc.c

    rfdb9982c r124c061  
    578578 * @param arg2          Service-defined argument.
    579579 * @param arg3          Service-defined argument.
    580  * @param phonehash     Storage where the library will store an opaque
     580 * @param taskhash      Storage where the kernel will store an opaque
     581 *                      identifier of the client task.
     582 * @param phonehash     Storage where the kernel will store an opaque
    581583 *                      identifier of the phone that will be used for incoming
    582584 *                      calls. This identifier can be used for connection
     
    586588 */
    587589int ipc_connect_to_me(int phoneid, int arg1, int arg2, int arg3,
    588     sysarg_t *phonehash)
     590    sysarg_t *taskhash, sysarg_t *phonehash)
    589591{
    590592        return ipc_call_sync_3_5(phoneid, IPC_M_CONNECT_TO_ME, arg1, arg2,
    591             arg3, NULL, NULL, NULL, NULL, phonehash);
     593            arg3, NULL, NULL, NULL, taskhash, phonehash);
    592594}
    593595
  • uspace/lib/c/generic/net/modules.c

    rfdb9982c r124c061  
    145145                sysarg_t phonehash;
    146146               
    147                 rc = ipc_connect_to_me(phone, arg1, arg2, arg3, &phonehash);
     147                rc = ipc_connect_to_me(phone, arg1, arg2, arg3, NULL,
     148                    &phonehash);
    148149                if (rc != EOK) {
    149150                        ipc_hangup(phone);
  • uspace/lib/c/include/ipc/ipc.h

    rfdb9982c r124c061  
    259259    sysarg_t, sysarg_t, void *, ipc_async_callback_t, int);
    260260
    261 extern int ipc_connect_to_me(int, int, int, int, sysarg_t *);
     261extern int ipc_connect_to_me(int, int, int, int, sysarg_t *, sysarg_t *);
    262262extern int ipc_connect_me_to(int, int, int, int);
    263263extern int ipc_connect_me_to_blocking(int, int, int, int);
Note: See TracChangeset for help on using the changeset viewer.