-
Notifications
You must be signed in to change notification settings - Fork 19
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
UnixFD: Move the support for Unix file descriptors to dasbus.unix
#100
UnixFD: Move the support for Unix file descriptors to dasbus.unix
#100
Conversation
Move all functions and classes related to the UnixFD support to dasbus.unix.
The `GLibClientUnix` class should be able to handle the result of a client call that might contain Unix file descriptors. The `ClientObjectHandler` class shouldn't support anything related to that.
* Remove the `variant_replace_fdlist_indices_with_handles` function. * Remove the `variant_replace_handles_with_fdlist_indices` function. * Use the `acquire_fds` and `restore_fds` functions instead.
Clean up unit tests for the `UnixFDSwap` class and the related code.
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.
Looks good to me, thanks! :)
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.
Looks good to me.
I suggest naming the module and things unix_fd
or just fd
- the "unix" bit is not exactly bringing any information. You already named the individual tests exactly that way, so it seems to be a sounds logic.
I want to use the |
Oh. I didn't know D-Bus is available outside Linux. In that case it makes sense. |
dasbus.unix
.GLibClientUnix
andGLibServerUnix
.