Changes in uspace/lib/usb/src/pipes.c [3954a63b:f0fdc7d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/pipes.c
r3954a63b rf0fdc7d 233 233 * A session is something inside what any communication occurs. 234 234 * It is expected that sessions would be started right before the transfer 235 * and ended - see usb_ pipe_end_session() - after the last235 * and ended - see usb_endpoint_pipe_end_session() - after the last 236 236 * transfer. 237 237 * The reason for this is that session actually opens some communication … … 244 244 * @return Error code. 245 245 */ 246 int usb_ pipe_start_session(usb_pipe_t *pipe)246 int usb_endpoint_pipe_start_session(usb_endpoint_pipe_t *pipe) 247 247 { 248 248 assert(pipe); 249 249 250 if (usb_ pipe_is_session_started(pipe)) {250 if (usb_endpoint_pipe_is_session_started(pipe)) { 251 251 return EBUSY; 252 252 } … … 265 265 /** Ends a session on the endpoint pipe. 266 266 * 267 * @see usb_ pipe_start_session267 * @see usb_endpoint_pipe_start_session 268 268 * 269 269 * @param pipe Endpoint pipe to end the session on. 270 270 * @return Error code. 271 271 */ 272 int usb_ pipe_end_session(usb_pipe_t *pipe)272 int usb_endpoint_pipe_end_session(usb_endpoint_pipe_t *pipe) 273 273 { 274 274 assert(pipe); 275 275 276 if (!usb_ pipe_is_session_started(pipe)) {276 if (!usb_endpoint_pipe_is_session_started(pipe)) { 277 277 return ENOENT; 278 278 } … … 296 296 * @return Whether @p pipe has opened a session. 297 297 */ 298 bool usb_ pipe_is_session_started(usb_pipe_t *pipe)298 bool usb_endpoint_pipe_is_session_started(usb_endpoint_pipe_t *pipe) 299 299 { 300 300 return (pipe->hc_phone >= 0);
Note:
See TracChangeset
for help on using the changeset viewer.