Commit 96177c3d7789168856b755b4ba8f8b633c4c5be5
- Diff rendering mode:
- inline
- side by side
bluedroid/bluetooth.c
(20 / 0)
|   | |||
| 183 | 183 | LOGE("Failed to start hcid"); | |
| 184 | 184 | goto out; | |
| 185 | 185 | } | |
| 186 | LOGI("Starting obex deamon"); | ||
| 187 | if (property_set("ctl.start", "obexd") < 0) { | ||
| 188 | LOGE("Failed to start obexd"); | ||
| 189 | goto out; | ||
| 190 | } | ||
| 191 | LOGI("Starting obex client"); | ||
| 192 | if (property_set("ctl.start", "obex-client") < 0) { | ||
| 193 | LOGE("Failed to start obex-client"); | ||
| 194 | goto out; | ||
| 195 | } | ||
| 186 | 196 | sleep(HCID_START_DELAY_SEC); | |
| 187 | 197 | ||
| 188 | 198 | ret = 0; | |
| … | … | ||
| 211 | 211 | LOGI("Stopping hcid deamon"); | |
| 212 | 212 | if (property_set("ctl.stop", "hcid") < 0) { | |
| 213 | 213 | LOGE("Error stopping hcid"); | |
| 214 | goto out; | ||
| 215 | } | ||
| 216 | LOGI("Stopping obex deamon"); | ||
| 217 | if (property_set("ctl.stop", "obexd") < 0) { | ||
| 218 | LOGE("Error stopping obexd"); | ||
| 219 | goto out; | ||
| 220 | } | ||
| 221 | LOGI("Stopping obex client"); | ||
| 222 | if (property_set("ctl.stop", "obex-client") < 0) { | ||
| 223 | LOGE("Error stopping obex-client"); | ||
| 214 | 224 | goto out; | |
| 215 | 225 | } | |
| 216 | 226 | usleep(HCID_STOP_DELAY_USEC); |

