Merge lp:~vanvugt/mir/super-simple-connect into lp:~mir-team/mir/trunk
Proposed by
Daniel van Vugt
Status: | Merged |
---|---|
Approved by: | Robert Ancell |
Approved revision: | no longer in the source branch. |
Merged at revision: | 506 |
Proposed branch: | lp:~vanvugt/mir/super-simple-connect |
Merge into: | lp:~mir-team/mir/trunk |
Diff against target: |
86 lines (+47/-0) 3 files modified
include/client/mir_toolkit/mir_client_library.h (+8/-0) src/client/mir_client_library.cpp (+18/-0) tests/acceptance-tests/test_client_library.cpp (+21/-0) |
To merge this branch: | bzr merge lp:~vanvugt/mir/super-simple-connect |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chris Halse Rogers | Approve | ||
Robert Ancell | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+153307@code.launchpad.net |
Commit message
Prototype a super-simple synchronous wrapper for mir_connect().
Description of the change
Other client API functions will be converted pending agreement on the general approach.
But for the record, I don't like this proposal. I prefer:
lp:~vanvugt/mir/optional-callbacks
but have been told this approach here is more likely to get approved.
To post a comment you must log in.
I suspect someone will complain about reinterpret_cast. But consider the alternative with N callbacks (one for each API function) and each having to contain its own: cast<MirSomethi ng**>(context) ) = something;
*(static_
I prefer the reinterpret_cast.