diff options
author | Henrique Dante de Almeida <hdante@profusion.mobi> | 2012-05-18 17:30:02 -0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-05-18 15:02:37 -0700 |
commit | 943cffdfb0b70d22bcc3513f425398ee7cdd196f (patch) | |
tree | 52747d13466e057a69a6a5437d4ce741199d6140 | |
parent | 271ca983b3576a16f5685832c1e405bce8c15f44 (diff) | |
download | connman-943cffdfb0b70d22bcc3513f425398ee7cdd196f.tar.gz connman-943cffdfb0b70d22bcc3513f425398ee7cdd196f.tar.bz2 connman-943cffdfb0b70d22bcc3513f425398ee7cdd196f.zip |
Constify GDBus method tables
-rw-r--r-- | plugins/nmcompat.c | 2 | ||||
-rw-r--r-- | src/clock.c | 2 | ||||
-rw-r--r-- | src/manager.c | 2 | ||||
-rw-r--r-- | src/service.c | 2 | ||||
-rw-r--r-- | src/session.c | 2 | ||||
-rw-r--r-- | src/technology.c | 2 | ||||
-rw-r--r-- | unit/session-api.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/plugins/nmcompat.c b/plugins/nmcompat.c index 2244c840..70376489 100644 --- a/plugins/nmcompat.c +++ b/plugins/nmcompat.c @@ -220,7 +220,7 @@ static DBusMessage *property_get(DBusConnection *conn, "Unsupported property"); } -static GDBusMethodTable methods[] = { +static const GDBusMethodTable methods[] = { { "Get", "ss", "v", property_get }, { }, }; diff --git a/src/clock.c b/src/clock.c index a742557d..8f8aa613 100644 --- a/src/clock.c +++ b/src/clock.c @@ -308,7 +308,7 @@ static DBusMessage *set_property(DBusConnection *conn, return g_dbus_create_reply(msg, DBUS_TYPE_INVALID); } -static GDBusMethodTable clock_methods[] = { +static const GDBusMethodTable clock_methods[] = { { "GetProperties", "", "a{sv}", get_properties }, { "SetProperty", "sv", "", set_property }, { }, diff --git a/src/manager.c b/src/manager.c index 86e846e5..dc3702dd 100644 --- a/src/manager.c +++ b/src/manager.c @@ -393,7 +393,7 @@ static DBusMessage *release_private_network(DBusConnection *conn, return g_dbus_create_reply(msg, DBUS_TYPE_INVALID); } -static GDBusMethodTable manager_methods[] = { +static const GDBusMethodTable manager_methods[] = { { "GetProperties", "", "a{sv}", get_properties }, { "SetProperty", "sv", "", set_property, G_DBUS_METHOD_FLAG_ASYNC }, diff --git a/src/service.c b/src/service.c index 83c87dee..8f61b3db 100644 --- a/src/service.c +++ b/src/service.c @@ -3811,7 +3811,7 @@ static void service_schedule_removed(struct connman_service *service) service_schedule_changed(); } -static GDBusMethodTable service_methods[] = { +static const GDBusMethodTable service_methods[] = { { "GetProperties", "", "a{sv}", get_properties, G_DBUS_METHOD_FLAG_DEPRECATED }, { "SetProperty", "sv", "", set_property }, diff --git a/src/session.c b/src/session.c index dd260873..50f60618 100644 --- a/src/session.c +++ b/src/session.c @@ -1555,7 +1555,7 @@ static DBusMessage *destroy_session(DBusConnection *conn, return g_dbus_create_reply(msg, DBUS_TYPE_INVALID); } -static GDBusMethodTable session_methods[] = { +static const GDBusMethodTable session_methods[] = { { "Destroy", "", "", destroy_session }, { "Connect", "", "", connect_session }, { "Disconnect", "", "", disconnect_session }, diff --git a/src/technology.c b/src/technology.c index cc613a8e..5b1de9e7 100644 --- a/src/technology.c +++ b/src/technology.c @@ -858,7 +858,7 @@ static DBusMessage *scan(DBusConnection *conn, DBusMessage *msg, void *data) return NULL; } -static GDBusMethodTable technology_methods[] = { +static const GDBusMethodTable technology_methods[] = { { "GetProperties", "", "a{sv}", get_properties, G_DBUS_METHOD_FLAG_DEPRECATED }, { "SetProperty", "sv", "", set_property }, diff --git a/unit/session-api.c b/unit/session-api.c index ce07d147..c5b7b6ce 100644 --- a/unit/session-api.c +++ b/unit/session-api.c @@ -285,7 +285,7 @@ static DBusMessage *notify_update(DBusConnection *conn, return g_dbus_create_reply(msg, DBUS_TYPE_INVALID); } -static GDBusMethodTable notify_methods[] = { +static const GDBusMethodTable notify_methods[] = { { "Release", "", "", notify_release }, { "Update", "a{sv}", "", notify_update }, { }, |