aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-05-18 00:23:25 -0300
committerMarcel Holtmann <marcel@holtmann.org>2012-05-17 20:32:20 -0700
commit665014ce89d30411a05b62acf34711e797daa59a (patch)
treeac01cd78ba7eebaefb80fc57f7b0443e15c81cad /plugins
parentb01bcc4215663ca4e14458727de2ad522103bf99 (diff)
downloadbluez-665014ce89d30411a05b62acf34711e797daa59a.tar.gz
bluez-665014ce89d30411a05b62acf34711e797daa59a.tar.xz
bluez-665014ce89d30411a05b62acf34711e797daa59a.zip
Constify GDBus method tables
Constify method tables with the following command: find . -name '*.[ch]' -exec \ sed -i 's/\(GDBusMethodTable .* =\)/const \1/g' {} \;
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dbusoob.c2
-rw-r--r--plugins/service.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/dbusoob.c b/plugins/dbusoob.c
index 2c037807..bcd05563 100644
--- a/plugins/dbusoob.c
+++ b/plugins/dbusoob.c
@@ -175,7 +175,7 @@ static DBusMessage *remove_remote_data(DBusConnection *conn, DBusMessage *msg,
return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
}
-static GDBusMethodTable oob_methods[] = {
+static const GDBusMethodTable oob_methods[] = {
{"AddRemoteData", "sayay", "", add_remote_data},
{"RemoveRemoteData", "s", "", remove_remote_data},
{"ReadLocalData", "", "ayay", read_local_data,
diff --git a/plugins/service.c b/plugins/service.c
index 14a5cb63..978e3710 100644
--- a/plugins/service.c
+++ b/plugins/service.c
@@ -696,7 +696,7 @@ done:
return dbus_message_new_method_return(msg);
}
-static GDBusMethodTable service_methods[] = {
+static const GDBusMethodTable service_methods[] = {
{ "AddRecord", "s", "u", add_service_record },
{ "UpdateRecord", "us", "", update_service_record },
{ "RemoveRecord", "u", "", remove_service_record },