-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SdBusMessage.parse_to_tuple() method
Parses the message data to a tuple. The main difference is handling of no data and a single complete type messages. When message has no data returns a zero size tuple. When message has a single complete type return a tuple of one element. This makes it simpler to implement the D-Bus -> Python calls because now all it takes is calling Python function with unpacked tuple. Unpacking zero size tuple is equivalent to calling function with no arguments. This also fixes methods that take a single struct. Before there was ambiguity if a method was called with a struct or multiple complete types. Now a single struct would be a part of one element tuple.
- Loading branch information
Showing
4 changed files
with
49 additions
and
8 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
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