Changeset cc3c27ad in mainline for uspace/lib/hound/src/client.c
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.