Rev 3846 | Rev 4243 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3846 | Rev 3912 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* |
1 | /* |
2 | * Copyright (c) 2008 Lukas Mejdrech |
2 | * Copyright (c) 2009 Lukas Mejdrech |
3 | * All rights reserved. |
3 | * All rights reserved. |
4 | * |
4 | * |
5 | * Redistribution and use in source and binary forms, with or without |
5 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions |
6 | * modification, are permitted provided that the following conditions |
7 | * are met: |
7 | * are met: |
Line 60... | Line 60... | ||
60 | ipcarg_t phone; |
60 | ipcarg_t phone; |
61 | ipcarg_t phonehash; |
61 | ipcarg_t phonehash; |
62 | 62 | ||
63 | phone = connect_to_service( need ); |
63 | phone = connect_to_service( need ); |
64 | if( phone >= 0 ){ |
64 | if( phone >= 0 ){ |
65 | if( ERROR_OCCURED( ipc_connect_to_me( phone, arg1, arg2, arg3, & phonehash ))){ |
65 | if( ERROR_OCCURRED( ipc_connect_to_me( phone, arg1, arg2, arg3, & phonehash ))){ |
66 | async_msg_0( phone, IPC_M_PHONE_HUNGUP ); |
66 | async_msg_0( phone, IPC_M_PHONE_HUNGUP ); |
67 | return ERROR_CODE; |
67 | return ERROR_CODE; |
68 | } |
68 | } |
69 | async_new_connection( phonehash, 0, NULL, client_receiver ); |
69 | async_new_connection( phonehash, 0, NULL, client_receiver ); |
70 | } |
70 | } |