Changeset 2b3dd78 in mainline for uspace/lib/hound
- Timestamp:
- 2018-01-31T12:02:00Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5595841
- Parents:
- a0a9cc2 (diff), 14d789c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/lib/hound
- Files:
-
- 4 edited
-
include/hound/client.h (modified) (2 diffs)
-
include/hound/protocol.h (modified) (3 diffs)
-
src/client.c (modified) (4 diffs)
-
src/protocol.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/hound/include/hound/client.h
ra0a9cc2 r2b3dd78 47 47 typedef struct hound_stream hound_stream_t; 48 48 49 hound_context_t * hound_context_create_playback(const char *name,49 hound_context_t *hound_context_create_playback(const char *name, 50 50 pcm_format_t format, size_t bsize); 51 hound_context_t * hound_context_create_capture(const char *name,51 hound_context_t *hound_context_create_capture(const char *name, 52 52 pcm_format_t format, size_t bsize); 53 53 void hound_context_destroy(hound_context_t *hound); … … 57 57 58 58 errno_t hound_context_get_available_targets(hound_context_t *hound, 59 c onst char ***names, size_t *count);59 char ***names, size_t *count); 60 60 errno_t hound_context_get_connected_targets(hound_context_t *hound, 61 c onst char ***names, size_t *count);61 char ***names, size_t *count); 62 62 63 errno_t hound_context_connect_target(hound_context_t *hound, const char *target);64 errno_t hound_context_disconnect_target(hound_context_t *hound, const char *target);63 errno_t hound_context_connect_target(hound_context_t *hound, const char *target); 64 errno_t hound_context_disconnect_target(hound_context_t *hound, const char *target); 65 65 66 66 hound_stream_t *hound_stream_create(hound_context_t *hound, unsigned flags, -
uspace/lib/hound/include/hound/protocol.h
ra0a9cc2 r2b3dd78 65 65 errno_t hound_service_unregister_context(hound_sess_t *sess, hound_context_id_t id); 66 66 67 errno_t hound_service_get_list(hound_sess_t *sess, c onst char ***ids, size_t *count,67 errno_t hound_service_get_list(hound_sess_t *sess, char ***ids, size_t *count, 68 68 int flags, const char *connection); 69 69 … … 77 77 */ 78 78 static inline errno_t hound_service_get_list_all(hound_sess_t *sess, 79 c onst char ***ids, size_t *count, int flags)79 char ***ids, size_t *count, int flags) 80 80 { 81 81 return hound_service_get_list(sess, ids, count, flags, NULL); … … 106 106 bool (*is_record_context)(void *, hound_context_id_t); 107 107 /** Get string identifiers of specified objects */ 108 errno_t (*get_list)(void *, c onst char ***, size_t *, const char *, int);108 errno_t (*get_list)(void *, char ***, size_t *, const char *, int); 109 109 /** Create connection between source and sink */ 110 110 errno_t (*connect)(void *, const char *, const char *); -
uspace/lib/hound/src/client.c
ra0a9cc2 r2b3dd78 76 76 hound_sess_t *session; 77 77 /** context name, reported to the daemon */ 78 c onst char *name;78 char *name; 79 79 /** True if the instance is record context */ 80 80 bool record; … … 196 196 */ 197 197 errno_t hound_context_get_available_targets(hound_context_t *hound, 198 c onst char ***names, size_t *count)198 char ***names, size_t *count) 199 199 { 200 200 assert(hound); … … 213 213 */ 214 214 errno_t hound_context_get_connected_targets(hound_context_t *hound, 215 c onst char ***names, size_t *count)215 char ***names, size_t *count) 216 216 { 217 217 assert(hound); … … 237 237 assert(target); 238 238 239 c onst char **tgt = NULL;239 char **tgt = NULL; 240 240 size_t count = 1; 241 241 errno_t ret = EOK; -
uspace/lib/hound/src/protocol.c
ra0a9cc2 r2b3dd78 173 173 * @retval Error code. 174 174 */ 175 errno_t hound_service_get_list(hound_sess_t *sess, c onst char ***ids, size_t *count,175 errno_t hound_service_get_list(hound_sess_t *sess, char ***ids, size_t *count, 176 176 int flags, const char *connection) 177 177 { … … 206 206 207 207 /* Start receiving names */ 208 c onst char **names = NULL;208 char **names = NULL; 209 209 if (name_count) { 210 210 size_t *sizes = calloc(name_count, sizeof(size_t)); … … 446 446 } 447 447 448 c onst char **list = NULL;448 char **list = NULL; 449 449 const int flags = IPC_GET_ARG1(call); 450 450 size_t count = IPC_GET_ARG2(call);
Note:
See TracChangeset
for help on using the changeset viewer.
