Rev 2071 | Rev 2471 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2071 | Rev 2359 | ||
---|---|---|---|
Line 415... | Line 415... | ||
415 | } while (callid & IPC_CALLID_ANSWERED); |
415 | } while (callid & IPC_CALLID_ANSWERED); |
416 | 416 | ||
417 | return callid; |
417 | return callid; |
418 | } |
418 | } |
419 | 419 | ||
420 | /** Ask destination to do a callback connection |
420 | /** Ask destination to do a callback connection. |
421 | * |
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. |
|
422 | * @return 0 - OK, error code |
428 | * @return Zero on success or a negative error code. |
423 | */ |
429 | */ |
424 | int ipc_connect_to_me(int phoneid, int arg1, int arg2, ipcarg_t *phone) |
430 | int ipc_connect_to_me(int phoneid, int arg1, int arg2, ipcarg_t *phonehash) |
425 | { |
431 | { |
426 | return ipc_call_sync_3(phoneid, IPC_M_CONNECT_TO_ME, arg1, |
432 | return ipc_call_sync_3(phoneid, IPC_M_CONNECT_TO_ME, arg1, arg2, 0, 0, 0, |
427 | arg2, 0, 0, 0, phone); |
433 | phonehash); |
428 | } |
434 | } |
429 | 435 | ||
430 | /** Ask through phone for a new connection to some service |
436 | /** Ask through phone for a new connection to some service. |
431 | * |
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 | * |
|
432 | * @return new phoneid - OK, error code |
442 | * @return New phone ID on success or a negative error code. |
433 | */ |
443 | */ |
434 | int ipc_connect_me_to(int phoneid, int arg1, int arg2) |
444 | int ipc_connect_me_to(int phoneid, int arg1, int arg2) |
435 | { |
445 | { |
436 | ipcarg_t newphid; |
446 | ipcarg_t newphid; |
437 | int res; |
447 | int res; |
438 | 448 | ||
439 | res = ipc_call_sync_3(phoneid, IPC_M_CONNECT_ME_TO, arg1, |
449 | res = ipc_call_sync_3(phoneid, IPC_M_CONNECT_ME_TO, arg1, arg2, 0, 0, 0, |
440 | arg2, 0, 0, 0, &newphid); |
450 | &newphid); |
441 | if (res) |
451 | if (res) |
442 | return res; |
452 | return res; |
443 | return newphid; |
453 | return newphid; |
444 | } |
454 | } |
445 | 455 |