Skip to content

Commit

Permalink
Merge pull request #554 from analogdevicesinc/rgetz-add-doc-to-clone
Browse files Browse the repository at this point in the history
iio.h: add some doc about iio_context_clone not working on usb
  • Loading branch information
rgetz authored Jun 17, 2020
2 parents fc5b671 + 5502a2d commit cda9ca5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion iio.h
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,11 @@ __api __check_ret struct iio_context * iio_create_context_from_uri(const char *u
/** @brief Duplicate a pre-existing IIO context
* @param ctx A pointer to an iio_context structure
* @return On success, A pointer to an iio_context structure
* @return On failure, NULL is returned and errno is set appropriately */
* @return On failure, NULL is returned and errno is set appropriately
*
* <b>NOTE:</b> This function is not supported on 'usb:' contexts, since libusb
* can only claim the interface once. "Function not implemented" is the expected errno.
* Any context which is cloned, must be destroyed via calling iio_context_destroy() */
__api __check_ret struct iio_context * iio_context_clone(const struct iio_context *ctx);


Expand Down

0 comments on commit cda9ca5

Please sign in to comment.