Changeset 5bf4310 in mainline for uspace/lib/hound/src/protocol.c
- Timestamp:
- 2013-03-24T19:07:43Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 03c2d5f
- Parents:
- 6ec1d48
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/hound/src/protocol.c
r6ec1d48 r5bf4310 256 256 ****/ 257 257 258 static inthound_server_read_data(void *stream);259 static inthound_server_write_data(void *stream);258 static void hound_server_read_data(void *stream); 259 static void hound_server_write_data(void *stream); 260 260 static const hound_server_iface_t *server_iface; 261 261 … … 435 435 server_iface->server, id); 436 436 if (rec) { 437 hound_server_write_data(stream); 437 if(server_iface->stream_data_read) { 438 async_answer_0(callid, EOK); 439 hound_server_write_data(stream); 440 } else { 441 async_answer_0(callid, ENOTSUP); 442 } 438 443 } else { 439 hound_server_read_data(stream); 444 if (server_iface->stream_data_write) { 445 async_answer_0(callid, EOK); 446 hound_server_read_data(stream); 447 } else { 448 async_answer_0(callid, ENOTSUP); 449 } 440 450 } 441 451 break; … … 453 463 } 454 464 455 static int hound_server_read_data(void *stream) 456 { 457 if (!server_iface || !server_iface->stream_data_write) 458 return ENOTSUP; 459 465 static void hound_server_read_data(void *stream) 466 { 460 467 ipc_callid_t callid; 461 468 ipc_call_t call; … … 478 485 479 486 async_answer_0(callid, ret); 480 return ret; 481 } 482 483 static int hound_server_write_data(void *stream) 484 { 485 if (!server_iface || !server_iface->stream_data_read) 486 return ENOTSUP; 487 } 488 489 static void hound_server_write_data(void *stream) 490 { 487 491 488 492 ipc_callid_t callid; … … 505 509 506 510 async_answer_0(callid, ret); 507 return ret;508 511 } 509 512
Note:
See TracChangeset
for help on using the changeset viewer.