Changeset 51ec40f in mainline for uspace/libc/generic/ipc.c
- Timestamp:
- 2007-05-18T10:27:01Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f6d2c81
- Parents:
- ddf1255
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/libc/generic/ipc.c
rddf1255 r51ec40f 418 418 } 419 419 420 /** Ask destination to do a callback connection 421 * 422 * @return 0 - OK, error code 423 */ 424 int ipc_connect_to_me(int phoneid, int arg1, int arg2, ipcarg_t *phone) 425 { 426 return ipc_call_sync_3(phoneid, IPC_M_CONNECT_TO_ME, arg1, 427 arg2, 0, 0, 0, phone); 428 } 429 430 /** Ask through phone for a new connection to some service 431 * 432 * @return new phoneid - OK, error code 420 /** Ask destination to do a callback connection. 421 * 422 * @param phoneid Phone ID used for contacting the other side. 423 * @param arg1 User defined argument. 424 * @param arg2 User defined argument. 425 * @param phonehash Pointer to a place where the library will store an opaque 426 * identifier of the phone that will be used for incoming 427 * calls. 428 * @return Zero on success or a negative error code. 429 */ 430 int ipc_connect_to_me(int phoneid, int arg1, int arg2, ipcarg_t *phonehash) 431 { 432 return ipc_call_sync_3(phoneid, IPC_M_CONNECT_TO_ME, arg1, arg2, 0, 0, 0, 433 phonehash); 434 } 435 436 /** Ask through phone for a new connection to some service. 437 * 438 * @param phoneid Phone ID used for contacting the other side. 439 * @param arg1 User defined argument. 440 * @param arg2 User defined argument. 441 * 442 * @return New phone ID on success or a negative error code. 433 443 */ 434 444 int ipc_connect_me_to(int phoneid, int arg1, int arg2) … … 437 447 int res; 438 448 439 res = ipc_call_sync_3(phoneid, IPC_M_CONNECT_ME_TO, arg1, 440 arg2, 0, 0, 0,&newphid);449 res = ipc_call_sync_3(phoneid, IPC_M_CONNECT_ME_TO, arg1, arg2, 0, 0, 0, 450 &newphid); 441 451 if (res) 442 452 return res;
Note:
See TracChangeset
for help on using the changeset viewer.