-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional constructors to Client
This provides 2 alternative ways to construct Client instances: - via the `from_resource` class method, from a wl_resource pointer. This accepts a pointer cdata rather than a `Resource` instance, as should be feasible to use this method without requiring an interface to implement the `Resource` generic for it. E.g. the layer shell protocol doesn't have a `Resource` class and this is fine; the requirement would disable usage of `Client.from_resource` from layer shell components. - by passing `ptr=` to `Client` directly to represent an existing wl_client rather than creating a fresh one.
- Loading branch information
Showing
2 changed files
with
43 additions
and
10 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