Changeset 228e490 in mainline for uspace/lib/c/generic/async.c


Ignore:
Timestamp:
2010-12-14T17:00:02Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a9b6bec, eb221e5
Parents:
dd8d5a7
Message:

initial modifications for supporting declarative IPC interfaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/async.c

    rdd8d5a7 r228e490  
    288288        list_append(&msg->link, &conn->msg_queue);
    289289       
    290         if (IPC_GET_METHOD(*call) == IPC_M_PHONE_HUNGUP)
     290        if (IPC_GET_IMETHOD(*call) == IPC_M_PHONE_HUNGUP)
    291291                conn->close_callid = callid;
    292292       
     
    401401                         */
    402402                        memset(call, 0, sizeof(ipc_call_t));
    403                         IPC_SET_METHOD(*call, IPC_M_PHONE_HUNGUP);
     403                        IPC_SET_IMETHOD(*call, IPC_M_PHONE_HUNGUP);
    404404                        futex_up(&async_futex);
    405405                        return conn->close_callid;
     
    588588        }
    589589       
    590         switch (IPC_GET_METHOD(*call)) {
     590        switch (IPC_GET_IMETHOD(*call)) {
    591591        case IPC_M_CONNECT_ME:
    592592        case IPC_M_CONNECT_ME_TO:
     
    11991199
    12001200        *callid = async_get_call(&data);
    1201         if (IPC_GET_METHOD(data) != IPC_M_SHARE_IN)
     1201        if (IPC_GET_IMETHOD(data) != IPC_M_SHARE_IN)
    12021202                return 0;
    12031203        *size = (size_t) IPC_GET_ARG2(data);
     
    12591259
    12601260        *callid = async_get_call(&data);
    1261         if (IPC_GET_METHOD(data) != IPC_M_SHARE_OUT)
     1261        if (IPC_GET_IMETHOD(data) != IPC_M_SHARE_OUT)
    12621262                return 0;
    12631263        *size = (size_t) IPC_GET_ARG2(data);
     
    13171317
    13181318        *callid = async_get_call(&data);
    1319         if (IPC_GET_METHOD(data) != IPC_M_DATA_READ)
     1319        if (IPC_GET_IMETHOD(data) != IPC_M_DATA_READ)
    13201320                return 0;
    13211321        if (size)
     
    14121412       
    14131413        *callid = async_get_call(&data);
    1414         if (IPC_GET_METHOD(data) != IPC_M_DATA_WRITE)
     1414        if (IPC_GET_IMETHOD(data) != IPC_M_DATA_WRITE)
    14151415                return 0;
    14161416       
Note: See TracChangeset for help on using the changeset viewer.