Changeset eb3d379 in mainline for generic/include/ipc/ipc.h


Ignore:
Timestamp:
2006-06-04T15:58:01Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8adafa0
Parents:
7669bcf
Message:

Slightly remodelled ipc hangups to facilitate correct cleanup.
Doc updates for frame allocator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/ipc/ipc.h

    r7669bcf reb3d379  
    179179
    180180typedef enum {
    181         IPC_BUSY_FREE = 0,
    182         IPC_BUSY_CONNECTING,
    183         IPC_BUSY_CONNECTED
    184 } ipc_busy_t;
     181        IPC_PHONE_FREE = 0,     /**< Phone is free and can be allocated */
     182        IPC_PHONE_CONNECTING,   /**< Phone is connecting somewhere */
     183        IPC_PHONE_CONNECTED,    /**< Phone is connected */
     184        IPC_PHONE_HUNGUP,  /**< Phone is hung up, waiting for answers to come */
     185        IPC_PHONE_SLAMMED       /**< Phone was hungup from server */
     186} ipc_phone_state_t;
    185187
    186188struct phone_s {
     
    188190        link_t list;
    189191        answerbox_t *callee;
    190         ipc_busy_t busy;
     192        ipc_phone_state_t state;
    191193        atomic_t active_calls;
    192194};
     
    223225extern int ipc_forward(call_t *call, phone_t *newphone, answerbox_t *oldbox);
    224226extern void ipc_cleanup(task_t *task);
    225 extern int ipc_phone_hangup(phone_t *phone);
     227extern int ipc_phone_hangup(phone_t *phone, int aggressive);
    226228extern void ipc_backsend_err(phone_t *phone, call_t *call, __native err);
    227229
Note: See TracChangeset for help on using the changeset viewer.