Changeset cc3c27ad in mainline
- Timestamp:
- 2013-03-24T19:29:09Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c6a7b3a
- Parents:
- 03c2d5f
- Location:
- uspace/lib/hound
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/hound/include/hound/client.h
r03c2d5f rcc3c27ad 54 54 void hound_context_destroy(hound_context_t *hound); 55 55 56 int hound_context_enable(hound_context_t *hound);57 int hound_context_disable(hound_context_t *hound);58 59 56 int hound_context_set_main_stream_format(hound_context_t *hound, 60 57 unsigned channels, unsigned rate, pcm_sample_format_t format); -
uspace/lib/hound/src/client.c
r03c2d5f rcc3c27ad 55 55 hound_context_t *context; 56 56 } hound_stream_t; 57 58 static inline hound_stream_t * hound_stream_from_link(link_t *l) 59 { 60 return l ? list_get_instance(l, hound_stream_t, link) : NULL; 61 } 57 62 58 63 typedef struct hound_context { … … 120 125 { 121 126 assert(hound); 127 128 while (!list_empty(&hound->stream_list)) { 129 link_t *first = list_first(&hound->stream_list); 130 hound_stream_t *stream = hound_stream_from_link(first); 131 hound_stream_destroy(stream); 132 } 133 122 134 hound_service_unregister_context(hound->session, hound->id); 123 135 hound_service_disconnect(hound->session); 124 136 free(hound->name); 125 137 free(hound); 126 }127 128 int hound_context_enable(hound_context_t *hound)129 {130 assert(hound);131 return ENOTSUP;132 }133 int hound_context_disable(hound_context_t *hound)134 {135 assert(hound);136 return ENOTSUP;137 138 } 138 139 -
uspace/lib/hound/src/protocol.c
r03c2d5f rcc3c27ad 412 412 } 413 413 case IPC_M_HOUND_STREAM_ENTER: { 414 if (!server_iface || !server_iface->add_stream 415 || !server_iface->is_record_context) { 414 if (!server_iface || !server_iface->is_record_context 415 || !server_iface->add_stream 416 || !server_iface->rem_stream) { 416 417 async_answer_0(callid, ENOTSUP); 417 418 break; … … 438 439 async_answer_0(callid, EOK); 439 440 hound_server_write_data(stream); 441 server_iface->rem_stream( 442 server_iface->server, stream); 440 443 } else { 441 444 async_answer_0(callid, ENOTSUP); … … 445 448 async_answer_0(callid, EOK); 446 449 hound_server_read_data(stream); 450 server_iface->rem_stream( 451 server_iface->server, stream); 447 452 } else { 448 453 async_answer_0(callid, ENOTSUP);
Note:
See TracChangeset
for help on using the changeset viewer.