|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From 619d7a039f9f64ffa593634c2715838ffbc17be4 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Daniel Mack <daniel@zonque.org>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Tue, 23 Sep 2014 16:13:54 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] sd-bus: sync kdbus.h (API break)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Just a rename of two struct members to make the header file c++ compatible.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/libsystemd/sd-bus/bus-control.c | 4 ++--
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/libsystemd/sd-bus/bus-kernel.c | 8 ++++----
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/libsystemd/sd-bus/kdbus.h | 6 +++---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
3 files changed, 9 insertions(+), 9 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/libsystemd/sd-bus/bus-control.c b/src/libsystemd/sd-bus/bus-control.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 50b662f85d..b22f4c4ff6 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/libsystemd/sd-bus/bus-control.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/libsystemd/sd-bus/bus-control.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -851,8 +851,8 @@ static int add_name_change_match(sd_bus *bus,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
offsetof(struct kdbus_notify_name_change, name) +
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
l;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- item->name_change.old.id = old_owner_id;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- item->name_change.new.id = new_owner_id;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ item->name_change.old_id.id = old_owner_id;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ item->name_change.new_id.id = new_owner_id;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
if (name)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
memcpy(item->name_change.name, name, l);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/libsystemd/sd-bus/bus-kernel.c b/src/libsystemd/sd-bus/bus-kernel.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index c30491e687..236e8787b7 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/libsystemd/sd-bus/bus-kernel.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/libsystemd/sd-bus/bus-kernel.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -950,19 +950,19 @@ static int translate_name_change(sd_bus *bus, struct kdbus_msg *k, struct kdbus_
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
assert(k);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
assert(d);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- if (d->type == KDBUS_ITEM_NAME_ADD || (d->name_change.old.flags & (KDBUS_NAME_IN_QUEUE|KDBUS_NAME_ACTIVATOR)))
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ if (d->type == KDBUS_ITEM_NAME_ADD || (d->name_change.old_id.flags & (KDBUS_NAME_IN_QUEUE|KDBUS_NAME_ACTIVATOR)))
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
old_owner[0] = 0;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
else
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- sprintf(old_owner, ":1.%llu", (unsigned long long) d->name_change.old.id);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ sprintf(old_owner, ":1.%llu", (unsigned long long) d->name_change.old_id.id);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- if (d->type == KDBUS_ITEM_NAME_REMOVE || (d->name_change.new.flags & (KDBUS_NAME_IN_QUEUE|KDBUS_NAME_ACTIVATOR))) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ if (d->type == KDBUS_ITEM_NAME_REMOVE || (d->name_change.new_id.flags & (KDBUS_NAME_IN_QUEUE|KDBUS_NAME_ACTIVATOR))) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
if (isempty(old_owner))
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
return 0;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
new_owner[0] = 0;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
} else
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- sprintf(new_owner, ":1.%llu", (unsigned long long) d->name_change.new.id);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ sprintf(new_owner, ":1.%llu", (unsigned long long) d->name_change.new_id.id);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
return push_name_owner_changed(bus, d->name_change.name, old_owner, new_owner);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
}
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/libsystemd/sd-bus/kdbus.h b/src/libsystemd/sd-bus/kdbus.h
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 0718b8497a..b167c4d00e 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/libsystemd/sd-bus/kdbus.h
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/libsystemd/sd-bus/kdbus.h
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -46,7 +46,7 @@ struct kdbus_notify_id_change {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
/**
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
* struct kdbus_notify_name_change - name registry change message
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
* @old: ID and flags of former owner of a name
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- * @new: ID and flags of new owner of a name
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ * @now: ID and flags of new owner of a name
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
* @name: Well-known name
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
*
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
* Sent from kernel to userspace when the owner or activator of
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -58,8 +58,8 @@ struct kdbus_notify_id_change {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
* KDBUS_ITEM_NAME_CHANGE
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
*/
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
struct kdbus_notify_name_change {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- struct kdbus_notify_id_change old;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- struct kdbus_notify_id_change new;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ struct kdbus_notify_id_change old_id;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ struct kdbus_notify_id_change new_id;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
char name[0];
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
};
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|