Changeset 33b8d024 in mainline for uspace/lib/hound
- Timestamp:
- 2018-01-16T20:38:46Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2467b41
- Parents:
- d39c46e0
- Location:
- uspace/lib/hound
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/hound/include/hound/client.h
rd39c46e0 r33b8d024 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 63 errno_t hound_context_connect_target(hound_context_t *hound, const char* target); -
uspace/lib/hound/include/hound/protocol.h
rd39c46e0 r33b8d024 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
rd39c46e0 r33b8d024 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
rd39c46e0 r33b8d024 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.