Changes in uspace/srv/audio/hound/iface.c [5d27e5a:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/audio/hound/iface.c
r5d27e5a rb7fd2a0 43 43 #include "log.h" 44 44 45 static int iface_add_context(void *server, hound_context_id_t *id,45 static errno_t iface_add_context(void *server, hound_context_id_t *id, 46 46 const char *name, bool record) 47 47 { … … 55 55 return ENOMEM; 56 56 57 const int ret = hound_add_ctx(server, ctx);57 const errno_t ret = hound_add_ctx(server, ctx); 58 58 if (ret != EOK) 59 59 hound_ctx_destroy(ctx); … … 63 63 } 64 64 65 static int iface_rem_context(void *server, hound_context_id_t id)65 static errno_t iface_rem_context(void *server, hound_context_id_t id) 66 66 { 67 67 assert(server); … … 69 69 if (!ctx) 70 70 return EINVAL; 71 const int ret = hound_remove_ctx(server, ctx);71 const errno_t ret = hound_remove_ctx(server, ctx); 72 72 if (ret == EOK) { 73 73 hound_ctx_destroy(ctx); … … 86 86 } 87 87 88 static int iface_get_list(void *server, const char ***list, size_t *size,88 static errno_t iface_get_list(void *server, const char ***list, size_t *size, 89 89 const char *connection, int flags) 90 90 { … … 98 98 } 99 99 100 static int iface_connect(void *server, const char *source, const char *sink)100 static errno_t iface_connect(void *server, const char *source, const char *sink) 101 101 { 102 102 log_info("%s: %p, %s -> %s", __FUNCTION__, server, source, sink); … … 104 104 } 105 105 106 static int iface_disconnect(void *server, const char *source, const char *sink)106 static errno_t iface_disconnect(void *server, const char *source, const char *sink) 107 107 { 108 108 log_info("%s: %p, %s -> %s", __FUNCTION__, server, source, sink); … … 110 110 } 111 111 112 static int iface_add_stream(void *server, hound_context_id_t id, int flags,112 static errno_t iface_add_stream(void *server, hound_context_id_t id, int flags, 113 113 pcm_format_t format, size_t size, void **data) 114 114 { … … 130 130 } 131 131 132 static int iface_rem_stream(void *server, void *stream)132 static errno_t iface_rem_stream(void *server, void *stream) 133 133 { 134 134 hound_ctx_destroy_stream(stream); … … 136 136 } 137 137 138 static int iface_drain_stream(void *stream)138 static errno_t iface_drain_stream(void *stream) 139 139 { 140 140 hound_ctx_stream_drain(stream); … … 142 142 } 143 143 144 static int iface_stream_data_read(void *stream, void *buffer, size_t size)144 static errno_t iface_stream_data_read(void *stream, void *buffer, size_t size) 145 145 { 146 146 return hound_ctx_stream_read(stream, buffer, size); 147 147 } 148 148 149 static int iface_stream_data_write(void *stream, const void *buffer, size_t size)149 static errno_t iface_stream_data_write(void *stream, const void *buffer, size_t size) 150 150 { 151 151 return hound_ctx_stream_write(stream, buffer, size);
Note:
See TracChangeset
for help on using the changeset viewer.