-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
sd-varlink/sd-json: add two new API calls #36137
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
Conversation
yuwata
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. But several comments.
| <title>Return Value</title> | ||
|
|
||
| <para>On success, and if a field was removed <function>sd_json_variant_unset_field</function> returns a | ||
| positive non-zero integer. If no matching field was found it returns zero. On failure, it returns a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a matter, but positive implies non-zero, sounds slightly redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think that's not universally accepted... signbit(0) is true after all...
dunno, wanted to avoid any confusion.
78f6f90 to
25c2461
Compare
These are kinda no-brainers, should have always existed.
Split out of #36133 which needs them.