diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-05-17 20:34:07 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-05-17 20:34:07 -0700 |
commit | 606e1e8ade4ce7c05f46480c27e66879d2e765b2 (patch) | |
tree | eb355a0267e2b019880e2e340637bf25415d4227 /client | |
parent | f58cd6239f44d288748da946cba0f98c6d5aa928 (diff) | |
download | obexd-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 'client')
-rw-r--r-- | client/ftp.c | 2 | ||||
-rw-r--r-- | client/manager.c | 2 | ||||
-rw-r--r-- | client/map.c | 2 | ||||
-rw-r--r-- | client/pbap.c | 2 | ||||
-rw-r--r-- | client/session.c | 2 | ||||
-rw-r--r-- | client/sync.c | 2 | ||||
-rw-r--r-- | client/transfer.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/client/ftp.c b/client/ftp.c index bb180ba..40c85b2 100644 --- a/client/ftp.c +++ b/client/ftp.c @@ -435,7 +435,7 @@ static DBusMessage *delete(DBusConnection *connection, return NULL; } -static GDBusMethodTable ftp_methods[] = { +static const GDBusMethodTable ftp_methods[] = { { "ChangeFolder", "s", "", change_folder, G_DBUS_METHOD_FLAG_ASYNC }, { "CreateFolder", "s", "", create_folder, diff --git a/client/manager.c b/client/manager.c index 4099e6f..9f26cb0 100644 --- a/client/manager.c +++ b/client/manager.c @@ -581,7 +581,7 @@ static DBusMessage *get_capabilities(DBusConnection *connection, return g_dbus_create_error(message, "org.openobex.Error.Failed", NULL); } -static GDBusMethodTable client_methods[] = { +static const GDBusMethodTable client_methods[] = { { "SendFiles", "a{sv}aso", "", send_files, G_DBUS_METHOD_FLAG_ASYNC }, { "PullBusinessCard", "a{sv}s", "", pull_business_card, diff --git a/client/map.c b/client/map.c index fe6b460..c4afe0e 100644 --- a/client/map.c +++ b/client/map.c @@ -189,7 +189,7 @@ fail: return reply; } -static GDBusMethodTable map_methods[] = { +static const GDBusMethodTable map_methods[] = { { "SetFolder", "s", "", map_setpath, G_DBUS_METHOD_FLAG_ASYNC }, { "GetFolderListing", "a{ss}", "s", map_get_folder_listing, diff --git a/client/pbap.c b/client/pbap.c index 76db61e..add9057 100644 --- a/client/pbap.c +++ b/client/pbap.c @@ -980,7 +980,7 @@ static DBusMessage *pbap_list_filter_fields(DBusConnection *connection, return reply; } -static GDBusMethodTable pbap_methods[] = { +static const GDBusMethodTable pbap_methods[] = { { "Select", "ss", "", pbap_select, G_DBUS_METHOD_FLAG_ASYNC }, { "PullAll", "", "s", pbap_pull_all, diff --git a/client/session.c b/client/session.c index 2c1827f..5e49f23 100644 --- a/client/session.c +++ b/client/session.c @@ -648,7 +648,7 @@ static DBusMessage *session_get_properties(DBusConnection *connection, return reply; } -static GDBusMethodTable session_methods[] = { +static const GDBusMethodTable session_methods[] = { { "GetProperties", "", "a{sv}", session_get_properties }, { "AssignAgent", "o", "", assign_agent }, { "ReleaseAgent", "o", "", release_agent }, diff --git a/client/sync.c b/client/sync.c index 843e17a..1d71667 100644 --- a/client/sync.c +++ b/client/sync.c @@ -192,7 +192,7 @@ fail: return reply; } -static GDBusMethodTable sync_methods[] = { +static const GDBusMethodTable sync_methods[] = { { "SetLocation", "s", "", sync_setlocation }, { "GetPhonebook", "", "s", sync_getphonebook, G_DBUS_METHOD_FLAG_ASYNC }, diff --git a/client/transfer.c b/client/transfer.c index 541fd2d..932010c 100644 --- a/client/transfer.c +++ b/client/transfer.c @@ -205,7 +205,7 @@ static DBusMessage *obc_transfer_cancel(DBusConnection *connection, return NULL; } -static GDBusMethodTable obc_transfer_methods[] = { +static const GDBusMethodTable obc_transfer_methods[] = { { "GetProperties", "", "a{sv}", obc_transfer_get_properties }, { "Cancel", "", "", obc_transfer_cancel, G_DBUS_METHOD_FLAG_ASYNC }, { } |