Mir

Code review comment for lp:~mir-team/mir/alternative-extension-naming

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

> UUID seems prone to the copy-paste error, I almost made that error a few times
> in the few extensions in MP/landed.
>
> Seems everyone likes the version field for the extension, so that's back in.
> It also seems like human-readable unique names are preferred, so will keep
> that change.
>
> The remaining question is how do we tell the users of the strings and the set
> of ints that they need to access the extension that they want? A macro in the
> header seems a straightforward way to me.

What a shame this is C!

template<typename Extension>
auto constexpr interface_name(Extension&) -> char const*;

template<typename Extension>
auto constexpr interface_version(Extension&) -> unsigned int;

« Back to merge proposal