> +1 for mir_surface_{get,set}_supported_orientations.
>
> Nit:
> 178 +MirPermittedOrientations
> mir_surface_get_permitted_orientations(MirSurface *surf)
> ...
> 184 + if (surf)
> 185 + {
>
> Incorrect precondition check. If you're going to do a precondition check it
> should be mir_surface_is_valid(surf), and it should abort() if the
> precondition fails.
OK, I guess we ought to fix all the other function preconditions checks as well as this was copy/pasta.
> +1 for mir_surface_ {get,set} _supported_ orientations. ientations get_permitted_ orientations( MirSurface *surf) is_valid( surf), and it should abort() if the
>
> Nit:
> 178 +MirPermittedOr
> mir_surface_
> ...
> 184 + if (surf)
> 185 + {
>
> Incorrect precondition check. If you're going to do a precondition check it
> should be mir_surface_
> precondition fails.
OK, I guess we ought to fix all the other function preconditions checks as well as this was copy/pasta.