Changeset f3fced0 in mainline for uspace/srv/audio/hound/main.c
- Timestamp:
- 2012-07-13T05:39:36Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9b2ac3d
- Parents:
- 63d6ff9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/audio/hound/main.c
r63d6ff9 rf3fced0 145 145 ipc_call_t call; 146 146 ipc_callid_t callid = async_get_call(&call); 147 log_debug("Got method %u", IPC_GET_IMETHOD(call));148 147 switch (IPC_GET_IMETHOD(call)) { 149 148 case HOUND_REGISTER_PLAYBACK: { … … 209 208 } 210 209 case HOUND_CONNECT: { 211 //TODO Get Name 212 //TODO Get Name 213 //TODO connect in hound 210 const char *name_a = get_name(); 211 const char *name_b = get_name(); 212 const int ret = hound_connect(&hound, name_a, name_b); 213 if (ret != EOK) 214 log_error("Failed to connect '%s' to '%s': %s", 215 name_a, name_b, str_error(ret)); 216 free(name_a); 217 free(name_b); 218 async_answer_0(callid, ret); 214 219 break; 215 220 } 216 221 case HOUND_DISCONNECT: { 217 //TODO Get Name 218 //TODO Get Name 219 //TODO disconnect in hound 222 const char *name_a = get_name(); 223 const char *name_b = get_name(); 224 const int ret = hound_disconnect(&hound, name_a, name_b); 225 if (ret != EOK) 226 log_error("Failed to disconnect '%s' from '%s'" 227 ": %s", name_a, name_b, str_error(ret)); 228 free(name_a); 229 free(name_b); 230 async_answer_0(callid, ret); 220 231 break; 221 232 } 222 233 default: 234 log_debug("Got unknown method %u", 235 IPC_GET_IMETHOD(call)); 223 236 async_answer_0(callid, ENOTSUP); 224 237 break; 225 238 case 0: 239 //TODO remove all clients 226 240 return; 227 241 }
Note:
See TracChangeset
for help on using the changeset viewer.