diff --git a/obexd/client/ftp.c b/obexd/client/ftp.c
index bb180ba..40c85b2 100644
--- a/obexd/client/ftp.c
+++ b/obexd/client/ftp.c
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/obexd/client/manager.c b/obexd/client/manager.c
index 4099e6f..9f26cb0 100644
--- a/obexd/client/manager.c
+++ b/obexd/client/manager.c
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/obexd/client/map.c b/obexd/client/map.c
index fe6b460..c4afe0e 100644
--- a/obexd/client/map.c
+++ b/obexd/client/map.c
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/obexd/client/pbap.c b/obexd/client/pbap.c
index 76db61e..add9057 100644
--- a/obexd/client/pbap.c
+++ b/obexd/client/pbap.c
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/obexd/client/session.c b/obexd/client/session.c
index 2c1827f..5e49f23 100644
--- a/obexd/client/session.c
+++ b/obexd/client/session.c
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/obexd/client/sync.c b/obexd/client/sync.c
index 843e17a..1d71667 100644
--- a/obexd/client/sync.c
+++ b/obexd/client/sync.c
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/obexd/client/transfer.c b/obexd/client/transfer.c
index 541fd2d..932010c 100644
--- a/obexd/client/transfer.c
+++ b/obexd/client/transfer.c
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 },
{ }
diff --git a/obexd/src/manager.c b/obexd/src/manager.c
index b9786ad..390da36 100644
--- a/obexd/src/manager.c
+++ b/obexd/src/manager.c
return dbus_message_new_method_return(msg);
}
-static GDBusMethodTable manager_methods[] = {
+static const GDBusMethodTable manager_methods[] = {
{ "RegisterAgent", "o", "", register_agent },
{ "UnregisterAgent", "o", "", unregister_agent },
{ }
{ }
};
-static GDBusMethodTable transfer_methods[] = {
+static const GDBusMethodTable transfer_methods[] = {
{ "Cancel", "", "", transfer_cancel },
{ }
};
{ }
};
-static GDBusMethodTable session_methods[] = {
+static const GDBusMethodTable session_methods[] = {
{ "GetProperties", "", "{sv}", get_properties },
{ }
};