Changeset a4165561 in mainline for uspace/lib/hound/src/protocol.c
- Timestamp:
- 2013-03-23T13:39:13Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d768d4c8
- Parents:
- 71780e0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/hound/src/protocol.c
r71780e0 ra4165561 159 159 ipc_call_t call; 160 160 ipc_callid_t callid = async_get_call(&call); 161 switch (IPC_GET_IMETHOD(call)) {161 switch (IPC_GET_IMETHOD(call)) { 162 162 case IPC_M_HOUND_CONTEXT_REGISTER: { 163 163 if (!server_iface || !server_iface->add_context) { … … 183 183 async_answer_1(callid, EOK, id); 184 184 } 185 case IPC_M_HOUND_CONTEXT_UNREGISTER: { 186 if (!server_iface || !server_iface->rem_context) { 187 async_answer_0(callid, ENOTSUP); 188 break; 189 } 190 hound_context_id_t id = IPC_GET_ARG1(call); 191 const int ret = 192 server_iface->rem_context(server_iface->server, id); 193 async_answer_0(callid, ret); 194 } 185 195 case IPC_M_HOUND_STREAM_ENTER: { 186 196 if (!server_iface || !server_iface->add_stream) { … … 203 213 break; 204 214 } 215 //TODO consider record context 205 216 hound_server_read_data(stream); 206 217 break; 207 218 } 208 219 case IPC_M_HOUND_STREAM_EXIT: 209 /* Stream exit is only allowed in stream context */ 220 case IPC_M_HOUND_STREAM_DRAIN: 221 /* Stream exit/drain is only allowed in stream context*/ 210 222 async_answer_0(callid, EINVAL); 211 223 break; 212 case IPC_M_HOUND_CONTEXT_UNREGISTER:213 case IPC_M_HOUND_STREAM_DRAIN:214 224 default: 215 225 async_answer_0(callid, ENOTSUP);
Note:
See TracChangeset
for help on using the changeset viewer.