Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2359 → Rev 2358

/trunk/uspace/libc/generic/ipc.c
417,29 → 417,19
return callid;
}
 
/** Ask destination to do a callback connection.
/** Ask destination to do a callback connection
*
* @param phoneid Phone ID used for contacting the other side.
* @param arg1 User defined argument.
* @param arg2 User defined argument.
* @param phonehash Pointer to a place where the library will store an opaque
* identifier of the phone that will be used for incoming
* calls.
* @return Zero on success or a negative error code.
* @return 0 - OK, error code
*/
int ipc_connect_to_me(int phoneid, int arg1, int arg2, ipcarg_t *phonehash)
int ipc_connect_to_me(int phoneid, int arg1, int arg2, ipcarg_t *phone)
{
return ipc_call_sync_3(phoneid, IPC_M_CONNECT_TO_ME, arg1, arg2, 0, 0, 0,
phonehash);
return ipc_call_sync_3(phoneid, IPC_M_CONNECT_TO_ME, arg1,
arg2, 0, 0, 0, phone);
}
 
/** Ask through phone for a new connection to some service.
/** Ask through phone for a new connection to some service
*
* @param phoneid Phone ID used for contacting the other side.
* @param arg1 User defined argument.
* @param arg2 User defined argument.
*
* @return New phone ID on success or a negative error code.
* @return new phoneid - OK, error code
*/
int ipc_connect_me_to(int phoneid, int arg1, int arg2)
{
446,8 → 436,8
ipcarg_t newphid;
int res;
 
res = ipc_call_sync_3(phoneid, IPC_M_CONNECT_ME_TO, arg1, arg2, 0, 0, 0,
&newphid);
res = ipc_call_sync_3(phoneid, IPC_M_CONNECT_ME_TO, arg1,
arg2, 0, 0, 0, &newphid);
if (res)
return res;
return newphid;