Subversion Repositories HelenOS

Rev

Rev 1005 | Rev 1040 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1005 Rev 1027
Line 69... Line 69...
69
/** Initialize allocated call */
69
/** Initialize allocated call */
70
void ipc_call_init(call_t *call)
70
void ipc_call_init(call_t *call)
71
{
71
{
72
    call->callerbox = &TASK->answerbox;
72
    call->callerbox = &TASK->answerbox;
73
    call->flags = IPC_CALL_STATIC_ALLOC;
73
    call->flags = IPC_CALL_STATIC_ALLOC;
-
 
74
    call->sender = TASK;
74
}
75
}
75
 
76
 
76
/** Deallocate call stracuture */
77
/** Deallocate call stracuture */
77
void ipc_call_free(call_t *call)
78
void ipc_call_free(call_t *call)
78
{
79
{
Line 87... Line 88...
87
    condvar_initialize(&box->cv);
88
    condvar_initialize(&box->cv);
88
    list_initialize(&box->connected_phones);
89
    list_initialize(&box->connected_phones);
89
    list_initialize(&box->calls);
90
    list_initialize(&box->calls);
90
    list_initialize(&box->dispatched_calls);
91
    list_initialize(&box->dispatched_calls);
91
    list_initialize(&box->answers);
92
    list_initialize(&box->answers);
-
 
93
    box->task = TASK;
92
}
94
}
93
 
95
 
94
/** Initialize phone structure and connect phone to naswerbox
96
/** Initialize phone structure and connect phone to naswerbox
95
 */
97
 */
96
void ipc_phone_init(phone_t *phone, answerbox_t *box)
98
void ipc_phone_init(phone_t *phone, answerbox_t *box)