connection: add function kdbus_conn_find_peer()
authorDjalal Harouni <tixxdz@opendz.org>
Mon, 31 Mar 2014 00:43:03 +0000 (01:43 +0100)
committerKay Sievers <kay@vrfy.org>
Mon, 31 Mar 2014 12:30:55 +0000 (14:30 +0200)
commitdb4ebe9c2778116e22848dba4428c20ff972e16c
tree014f7648faf2e30776c3c79937af307b317b41a6
parent078e4357660f8785ac6c04d67f18c4c1448a4685
connection: add function kdbus_conn_find_peer()

Use this function to find a connection peer with a given id.

The returned connection is on the same bus of the source connection
and it is ref'ed.

This allows to reduce code duplication and will make it easy to
read code and differentiate between messages that have a source
connection and other kernel generated messages.

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
connection.c
connection.h