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.
Instead of returning a string allocated alongside the IIO context, it will now return a string allocated on the heap, that has to be freed with free() afterwards. The function can now also return errors. The advantage of this change is multiple: - IIO contexts now don't have a huge XML string allocated during their whole lifetime; - If the application does not call iio_context_get_xml(), then all the internal functions used to generate the XML string in the first place are dead code, and when building statically, can be garbage-collected. Signed-off-by: Paul Cercueil <[email protected]>
- Loading branch information
Showing
3 changed files
with
5 additions
and
17 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