Repository navigation
sd-bus: Add sd_bus_reply() - #18354
Merged
Merged
Conversation
bluca
approved these changes
Jan 24, 2021
bluca
left a comment
Member
There was a problem hiding this comment.
Looks like a useful shortcut to me, but waiting for more folks to also have a look given it's a public API.
daandemeyer
force-pushed
the
sd-bus-reply
branch
from
January 24, 2021 14:07
a13fa75 to
d8bbe33
Compare
keszybz
requested changes
Jan 24, 2021
keszybz
left a comment
Member
There was a problem hiding this comment.
Looks like a reasonable thing to add.
The symbol must also be added to src/libsystemd/libsystemd.sym.
| ['coredump.conf', '5', ['coredump.conf.d'], 'ENABLE_COREDUMP'], | ||
| ['coredumpctl', '1', [], 'ENABLE_COREDUMP'], | ||
| ['crypttab', '5', [], 'HAVE_LIBCRYPTSETUP'], | ||
| ['veritytab', '5', [], 'HAVE_LIBCRYPTSETUP'], |
Member
There was a problem hiding this comment.
Why do people keep editing the file by hand?! There is both a header and a footer saying not to do that ;(
Collaborator
Author
There was a problem hiding this comment.
I thought we were supposed to run update-man-rules? Or is it run once before a new release?
Member
There was a problem hiding this comment.
Your patch is fine, it's just fixing an issue introduced when veritytab was added a few days ago.
daandemeyer
force-pushed
the
sd-bus-reply
branch
from
January 24, 2021 22:46
d8bbe33 to
6067ec4
Compare
yuwata
requested changes
Jan 24, 2021
While sd-bus already provides sd_bus_call() for calling a method from a complete bus message object, We don't have an equivalent function for replying from a method with a complete bus message object. Currently, we use sd_bus_send(call->bus, m, NULL) instead. Let's add a shorthand for this pattern and name it sd_bus_reply().
daandemeyer
force-pushed
the
sd-bus-reply
branch
from
January 24, 2021 23:49
6067ec4 to
3c6cf19
Compare
yuwata
approved these changes
Jan 25, 2021
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While sd-bus already provides sd_bus_call() for calling a method
from a complete bus message object, we don't have an equivalent
function for replying from a method with a complete bus message
object.
Currently, we use sd_bus_send(call->bus, m, NULL) instead. Let's
add a shorthand for this pattern and name it sd_bus_reply().