forked from analogdevicesinc/libiio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: create iio_context_create_from_backend() helper and use it for l…
…ocal & xml The creation of a context can be tied to an iio_backend object that acts as a template for some context parameters. Using an iio_backend object for IIO context creation allows us to hide the assignments of the name, iio_backend_ops, description, private data and possibly other parameters in the future. For now, this ties it to the local & xml backends. The other backends seem to be iiod client-type backends. Using the iio_backend object there requires a bit more rework. At a later point in time, the iio_context_create_from_backend() helper should also do more validation for the backend object. Signed-off-by: Alexandru Ardelean <[email protected]>
- Loading branch information
Showing
4 changed files
with
104 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters