Mir

Merge lp://staging/~kuchtam/mir/bug_1195540_after_review into lp://staging/mir

Proposed by Michał Kuchta
Status: Merged
Approved by: Cemil Azizoglu
Approved revision: no longer in the source branch.
Merged at revision: 4018
Proposed branch: lp://staging/~kuchtam/mir/bug_1195540_after_review
Merge into: lp://staging/mir
Diff against target: 60 lines (+22/-0)
4 files modified
include/client/mir_toolkit/mir_connection.h (+9/-0)
src/client/mir_connection_api.cpp (+5/-0)
src/client/symbols.map (+1/-0)
tests/acceptance-tests/test_client_library.cpp (+7/-0)
To merge this branch: bzr merge lp://staging/~kuchtam/mir/bug_1195540_after_review
Reviewer Review Type Date Requested Status
Mir CI Bot continuous-integration Approve
Cemil Azizoglu (community) Approve
Daniel van Vugt Approve
Review via email: mp+316287@code.staging.launchpad.net

Commit message

Bug #1195540: [enhancement] Make able to get version information from client / server APIs - corrections after review

Description of the change

Bug #1195540: [enhancement] Make able to get version information from client / server APIs - corrections after review

To post a comment you must log in.
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Cool, thanks.

Approved, but could be improved with:
  * Better documentation mentioning you need to compare the result to MIR_VERSION_NUMBER(x,y,z)
  * Remove extra blank link from the cpp file.
  * Acceptance tests to verify the function returns MIR_CLIENT_API_VERSION (when called within the same source tree).

Although I now realize the use of dlsym() mentioned in the bug may negate the need for all this at all, it doesn't hurt...

review: Approve
Revision history for this message
Cemil Azizoglu (cemil-azizoglu) wrote :

+1 on the acceptance test. But it's trivial in this case so feel free to top approve if you decide not to indulge.

review: Approve
Revision history for this message
Michał Kuchta (kuchtam) wrote :

Fixed in revision: 4009

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks, but this should be "==" or "EXPECT_EQ"

+ MIR_CLIENT_API_VERSION_PATCH) >= mir_get_client_api_version());

review: Needs Fixing
Revision history for this message
Michał Kuchta (kuchtam) wrote :

Fixed in rev: 4010

Revision history for this message
Daniel van Vugt (vanvugt) :
review: Approve
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

As mentioned above, I now realize we may never need this function. Simply using dlsym() by itself should suffice. But the bug was open, and it's a great practice exercise.

Just waiting to see if any of ~mir-team objects to this.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Michał,

If nobody has already mentioned it to you, please also complete this:
  https://www.ubuntu.com/legal/contributors/submit

And for the Canonical Project Manager field, enter:
  Kevin Gunn (<email address hidden>)

More information:
  https://www.ubuntu.com/legal/contributors

Revision history for this message
Michał Kuchta (kuchtam) wrote :

Hi Daniel,

I have signed document.

I think that this function can be useful because it gives you simple and
quick information about which lib version is use now.

Of course you can do this by dlsym - but each time you must check if
returned address is correct

and when API has big number of functions it can be uncomfortable.

Best Regards,

Michał

2017-02-08 4:09 GMT+01:00 Daniel van Vugt <email address hidden>:

> Michał,
>
> If nobody has already mentioned it to you, please also complete this:
> https://www.ubuntu.com/legal/contributors/submit
>
> And for the Canonical Project Manager field, enter:
> Kevin Gunn (<email address hidden>)
>
> More information:
> https://www.ubuntu.com/legal/contributors
> --
> https://code.launchpad.net/~kuchtam/mir/bug_1195540_after_
> review/+merge/316287
> You are the owner of lp:~kuchtam/mir/bug_1195540_after_review.
>

Revision history for this message
Cemil Azizoglu (cemil-azizoglu) wrote :

Huh I wonder why jenkins hasn't run on this? Oh well.

review: Approve
Revision history for this message
Mir CI Bot (mir-ci-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches