|
|
19062e |
From a66a557038c0e3d21bc4f14090efb497558a12be Mon Sep 17 00:00:00 2001
|
|
|
19062e |
From: Lucas De Marchi <lucas.demarchi@profusion.mobi>
|
|
|
19062e |
Date: Tue, 26 Jun 2012 18:11:25 -0300
|
|
|
19062e |
Subject: [PATCH] Fix GDBus flags after conversion to macros
|
|
|
19062e |
|
|
|
19062e |
Commit "aa3b9016bf444b60e1b7e1804dfc323a23a93c5a Convert GDBus methods
|
|
|
19062e |
to use macro helpers" converted the previous tables to use the new
|
|
|
19062e |
macros but some flags were lost.
|
|
|
19062e |
---
|
|
|
19062e |
attrib/client.c | 2 +-
|
|
|
19062e |
audio/control.c | 2 +-
|
|
|
19062e |
audio/headset.c | 2 +-
|
|
|
19062e |
audio/transport.c | 2 +-
|
|
|
19062e |
src/manager.c | 2 +-
|
|
|
19062e |
5 files changed, 5 insertions(+), 5 deletions(-)
|
|
|
19062e |
|
|
|
19062e |
diff --git a/attrib/client.c b/attrib/client.c
|
|
|
19062e |
index 8d119df..b3e3abe 100644
|
|
|
19062e |
--- a/attrib/client.c
|
|
|
19062e |
+++ b/attrib/client.c
|
|
|
19062e |
@@ -519,7 +519,7 @@ static const GDBusMethodTable char_methods[] = {
|
|
|
19062e |
{ GDBUS_METHOD("GetProperties",
|
|
|
19062e |
NULL, GDBUS_ARGS({ "properties", "a{sv}" }),
|
|
|
19062e |
get_properties) },
|
|
|
19062e |
- { GDBUS_METHOD("SetProperty",
|
|
|
19062e |
+ { GDBUS_ASYNC_METHOD("SetProperty",
|
|
|
19062e |
GDBUS_ARGS({ "name", "s" }, { "value", "v" }), NULL,
|
|
|
19062e |
set_property) },
|
|
|
19062e |
{ }
|
|
|
19062e |
diff --git a/audio/control.c b/audio/control.c
|
|
|
19062e |
index c5a6a58..187f838 100644
|
|
|
19062e |
--- a/audio/control.c
|
|
|
19062e |
+++ b/audio/control.c
|
|
|
19062e |
@@ -198,7 +198,7 @@ static DBusMessage *control_get_properties(DBusConnection *conn,
|
|
|
19062e |
}
|
|
|
19062e |
|
|
|
19062e |
static const GDBusMethodTable control_methods[] = {
|
|
|
19062e |
- { GDBUS_ASYNC_METHOD("IsConnected",
|
|
|
19062e |
+ { GDBUS_DEPRECATED_METHOD("IsConnected",
|
|
|
19062e |
NULL, GDBUS_ARGS({ "connected", "b" }),
|
|
|
19062e |
control_is_connected) },
|
|
|
19062e |
{ GDBUS_METHOD("GetProperties",
|
|
|
19062e |
diff --git a/audio/headset.c b/audio/headset.c
|
|
|
19062e |
index 729e4dc..b9c6265 100644
|
|
|
19062e |
--- a/audio/headset.c
|
|
|
19062e |
+++ b/audio/headset.c
|
|
|
19062e |
@@ -2094,7 +2094,7 @@ static const GDBusMethodTable headset_methods[] = {
|
|
|
19062e |
static const GDBusSignalTable headset_signals[] = {
|
|
|
19062e |
{ GDBUS_DEPRECATED_SIGNAL("Connected", NULL) },
|
|
|
19062e |
{ GDBUS_DEPRECATED_SIGNAL("Disconnected", NULL) },
|
|
|
19062e |
- { GDBUS_DEPRECATED_SIGNAL("AnswerRequested", NULL) },
|
|
|
19062e |
+ { GDBUS_SIGNAL("AnswerRequested", NULL) },
|
|
|
19062e |
{ GDBUS_DEPRECATED_SIGNAL("Stopped", NULL) },
|
|
|
19062e |
{ GDBUS_DEPRECATED_SIGNAL("Playing", NULL) },
|
|
|
19062e |
{ GDBUS_DEPRECATED_SIGNAL("SpeakerGainChanged",
|
|
|
19062e |
diff --git a/audio/transport.c b/audio/transport.c
|
|
|
19062e |
index b015625..832ad2a 100644
|
|
|
19062e |
--- a/audio/transport.c
|
|
|
19062e |
+++ b/audio/transport.c
|
|
|
19062e |
@@ -959,7 +959,7 @@ static const GDBusMethodTable transport_methods[] = {
|
|
|
19062e |
{ GDBUS_ASYNC_METHOD("Release",
|
|
|
19062e |
GDBUS_ARGS({ "access_type", "s" }), NULL,
|
|
|
19062e |
release ) },
|
|
|
19062e |
- { GDBUS_ASYNC_METHOD("SetProperty",
|
|
|
19062e |
+ { GDBUS_METHOD("SetProperty",
|
|
|
19062e |
GDBUS_ARGS({ "name", "s" }, { "value", "v" }),
|
|
|
19062e |
NULL, set_property) },
|
|
|
19062e |
{ },
|
|
|
19062e |
diff --git a/src/manager.c b/src/manager.c
|
|
|
19062e |
index 385354d..7061f64 100644
|
|
|
19062e |
--- a/src/manager.c
|
|
|
19062e |
+++ b/src/manager.c
|
|
|
19062e |
@@ -207,7 +207,7 @@ static const GDBusMethodTable manager_methods[] = {
|
|
|
19062e |
GDBUS_ARGS({ "pattern", "s" }),
|
|
|
19062e |
GDBUS_ARGS({ "adapter", "o" }),
|
|
|
19062e |
find_adapter) },
|
|
|
19062e |
- { GDBUS_ASYNC_METHOD("ListAdapters",
|
|
|
19062e |
+ { GDBUS_DEPRECATED_METHOD("ListAdapters",
|
|
|
19062e |
NULL, GDBUS_ARGS({ "adapters", "ao" }),
|
|
|
19062e |
list_adapters) },
|
|
|
19062e |
{ }
|
|
|
19062e |
--
|
|
|
19062e |
1.8.0.1
|
|
|
19062e |
|