kdbus.txt: typo fixes
Merge pull request #3 from phomes/master

kdbus.txt: typo fixes
Some corrections to make test-kdbus work on i686.

Signed-off-by: Przemyslaw Kedzierski <p.kedzierski@samsung.com>
kdbus.txt: typo fixes
Merge pull request #4 from artisdom/patch-1

kdbus.txt: typo fix.
some minor fixes for endpoint and namespace

 endpoint.c: fix name comparison for endpoint
namespace.c: don't try to find when name is NULL

Signed-off-by: Przemyslaw Kedzierski <p.kedzierski@samsung.com>
namespace: hold mutex while creating a new instance
preserve payload record padding when \0-bytes records are used

Based on a patch from: Daniel Kowalski <d.kowalski@samsung.com>
Merge branch 'master' of https://code.google.com/p/d-bus
allocate only the alignment bytes for \0-bytes records

Reported-by: Daniel Kowalski <d.kowalski@samsung.com>
Fixed broadcasts and matching

- fixed kernel notify messages of changes of ids and names on the bus
- message matching fixed for user broadcasts
- message matching fixed for kernel broadcasts

Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
match: move nested loop to separate function
Fixed adding and removing match rules for other peers

Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
Release name fixed

Release name fixed to allow name releasing by priviliged user on behalf of other peer, if that peer own the name.

Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
Fixed name releasing and sending broadcasts about name change

- fixed name releasing, when starter acquires the name released
- fixed old_id when sending KDBUS_MSG_NAME_CHANGE after owner has changed
- fixed condition to handle name conflict if there is starter in background
- fixed sending KDBUS_MSG_NAME_ADD only when the name wasn't present on the bus

Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
fixed name queueing when handling conflicts

Connection that loses name is put into queue if it wish to.

Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
use "&&" instead of nested one-line "if"
policy: fix __kdbus_policy_db_check_send_access return value

This got accidentally broken in commit 48b24f97.
test: move add_match_empty to kdbus-util
test: let upload_policy() accept a name