Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have lookup_nvlist() function return an NvListRef instead of an NvList #89

Open
don-brady opened this issue Dec 1, 2021 · 0 comments
Open
Assignees
Labels

Comments

@don-brady
Copy link

This is a request to have the lookup_nvlist() function return an NvListRef instead of an NvList. The returned nvlist is not a copy nor do I own it or should be allowed to pass ownership to a function which could drop it. An NvListRef seems a more appropriate type to return.

Same for lookup_nvlist_array() which should probably return a Vec<NvListRef>.

Note that for an nvpair, the data() function returns an NvListRef when the pair is an nvlist.

@codyps codyps added the bug label Dec 10, 2021
@codyps codyps self-assigned this Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants