[PATCH 1/3] Change find_resource_for_surface to find_resource_for_client

Casey Dahlin cdahlin at redhat.com
Fri Apr 20 07:40:34 PDT 2012


On Fri, Apr 20, 2012 at 05:28:00PM +0300, Tiago Vignatti wrote:
> On 04/20/2012 04:36 PM, Kristian Høgsberg wrote:
> >No, it's an awkward five line helper function that I don't want to
> >make public API.
> 
> yes, I meant find_resource_for_client. Or is there some fancier way
> you're planning to look through a list of resources?
> 

It's an operation on a wl_list, with assumptions as to its properties. That's
not really great API design. Not to mention that, IIRC the wayland library
itself never exports any such list; they're all created within weston.

--CJD


More information about the wayland-devel mailing list