diff options
| author | Yong Bakos <ybakos@humanoriented.com> | 2016-05-08 08:44:08 -0500 |
|---|---|---|
| committer | Bryce Harrington <bryce@osg.samsung.com> | 2016-05-11 11:05:06 -0700 |
| commit | 385906beae3a7605629fd3a582f1be9254d7345b (patch) | |
| tree | 6684b41d5efddb237ef941f64f6473ae44515d99 /src/connection.c | |
| parent | doc: Formalize file comment in wayland-client.h, wayland-server.h (diff) | |
| download | wayland-385906beae3a7605629fd3a582f1be9254d7345b.tar wayland-385906beae3a7605629fd3a582f1be9254d7345b.tar.gz wayland-385906beae3a7605629fd3a582f1be9254d7345b.tar.bz2 wayland-385906beae3a7605629fd3a582f1be9254d7345b.tar.lz wayland-385906beae3a7605629fd3a582f1be9254d7345b.tar.xz wayland-385906beae3a7605629fd3a582f1be9254d7345b.tar.zst wayland-385906beae3a7605629fd3a582f1be9254d7345b.zip | |
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>
Diffstat (limited to 'src/connection.c')
| -rw-r--r-- | src/connection.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/connection.c b/src/connection.c index 747229e..c3293a9 100644 --- a/src/connection.c +++ b/src/connection.c @@ -798,19 +798,6 @@ wl_connection_demarshal(struct wl_connection *connection, } int -wl_interface_equal(const struct wl_interface *a, const struct wl_interface *b) -{ - /* In most cases the pointer equality test is sufficient. - * However, in some cases, depending on how things are split - * across shared objects, we can end up with multiple - * instances of the interface metadata constants. So if the - * pointers match, the interfaces are equal, if they don't - * match we have to compare the interface names. */ - - return a == b || strcmp(a->name, b->name) == 0; -} - -int wl_closure_lookup_objects(struct wl_closure *closure, struct wl_map *objects) { struct wl_object *object; |
