connection: Move wl_interface_equal to util
authorYong Bakos <ybakos@humanoriented.com>
Sun, 8 May 2016 13:44:08 +0000 (08:44 -0500)
committerBryce Harrington <bryce@osg.samsung.com>
Wed, 11 May 2016 18:05:06 +0000 (11:05 -0700)
commit385906beae3a7605629fd3a582f1be9254d7345b
tree6684b41d5efddb237ef941f64f6473ae44515d99
parente5b12aa827a777dc6455b9a87909a222157c256f
connection: Move wl_interface_equal to util

Move the wl_interface_equal prototype to the top of wayland-private, where
it is not buried in the middle of map, connection and closure functions.

Move the implementation out of connection and into util. This is a utility
function, not specific to connections, and has call sites within connection,
wayland-client and wayland-server.

Signed-off-by: Yong Bakos <ybakos@humanoriented.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
src/connection.c
src/wayland-private.h
src/wayland-util.c