summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-05-17 20:34:07 -0700
committerMarcel Holtmann <marcel@holtmann.org>2012-05-17 20:34:07 -0700
commit606e1e8ade4ce7c05f46480c27e66879d2e765b2 (patch)
treeeb355a0267e2b019880e2e340637bf25415d4227 /src
parentf58cd6239f44d288748da946cba0f98c6d5aa928 (diff)
downloadobexd-606e1e8ade4ce7c05f46480c27e66879d2e765b2.tar.gz
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 'src')
-rw-r--r--src/manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/manager.c b/src/manager.c
index b9786ad..390da36 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -310,7 +310,7 @@ static DBusMessage *transfer_cancel(DBusConnection *connection,
return dbus_message_new_method_return(msg);
}
-static GDBusMethodTable manager_methods[] = {
+static const GDBusMethodTable manager_methods[] = {
{ "RegisterAgent", "o", "", register_agent },
{ "UnregisterAgent", "o", "", unregister_agent },
{ }
@@ -324,7 +324,7 @@ static GDBusSignalTable manager_signals[] = {
{ }
};
-static GDBusMethodTable transfer_methods[] = {
+static const GDBusMethodTable transfer_methods[] = {
{ "Cancel", "", "", transfer_cancel },
{ }
};
@@ -334,7 +334,7 @@ static GDBusSignalTable transfer_signals[] = {
{ }
};
-static GDBusMethodTable session_methods[] = {
+static const GDBusMethodTable session_methods[] = {
{ "GetProperties", "", "{sv}", get_properties },
{ }
};