From 924ee02ff7da55e78e6b3db4bc9b5ce861fa4bd2 Mon Sep 17 00:00:00 2001 From: Henrique Dante de Almeida Date: Sun, 20 May 2012 02:07:26 -0300 Subject: [PATCH] Constify GDBus signal tables Constify signal tables with the following command: find . -name '*.[ch]' -exec \ sed -i 's/\(GDBusSignalTable .* =\)/const \1/g' {} \; --- src/audio-settings.c | 2 +- src/call-barring.c | 2 +- src/call-forwarding.c | 2 +- src/call-meter.c | 2 +- src/call-settings.c | 2 +- src/call-volume.c | 2 +- src/cbs.c | 2 +- src/cdma-connman.c | 2 +- src/cdma-netreg.c | 2 +- src/cdma-sms.c | 2 +- src/cdma-voicecall.c | 2 +- src/ctm.c | 2 +- src/gprs.c | 4 ++-- src/handsfree.c | 2 +- src/location-reporting.c | 2 +- src/manager.c | 2 +- src/message-waiting.c | 2 +- src/message.c | 2 +- src/modem.c | 2 +- src/network.c | 4 ++-- src/phonebook.c | 2 +- src/radio-settings.c | 2 +- src/sim.c | 2 +- src/sms.c | 2 +- src/stk.c | 2 +- src/ussd.c | 2 +- src/voicecall.c | 4 ++-- 27 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/audio-settings.c b/src/audio-settings.c index 6388c3e8..0e527616 100644 --- a/src/audio-settings.c +++ b/src/audio-settings.c @@ -123,7 +123,7 @@ static const GDBusMethodTable audio_methods[] = { { } }; -static GDBusSignalTable audio_signals[] = { +static const GDBusSignalTable audio_signals[] = { { "PropertyChanged", "sv" }, { } }; diff --git a/src/call-barring.c b/src/call-barring.c index 952e4c2c..6b9bf6ef 100644 --- a/src/call-barring.c +++ b/src/call-barring.c @@ -982,7 +982,7 @@ static const GDBusMethodTable cb_methods[] = { { } }; -static GDBusSignalTable cb_signals[] = { +static const GDBusSignalTable cb_signals[] = { { "PropertyChanged", "sv" }, { } }; diff --git a/src/call-forwarding.c b/src/call-forwarding.c index c70d140f..7a73ff11 100644 --- a/src/call-forwarding.c +++ b/src/call-forwarding.c @@ -891,7 +891,7 @@ static const GDBusMethodTable cf_methods[] = { { } }; -static GDBusSignalTable cf_signals[] = { +static const GDBusSignalTable cf_signals[] = { { "PropertyChanged", "sv" }, { } }; diff --git a/src/call-meter.c b/src/call-meter.c index fd5edc24..67965a46 100644 --- a/src/call-meter.c +++ b/src/call-meter.c @@ -656,7 +656,7 @@ static const GDBusMethodTable cm_methods[] = { { } }; -static GDBusSignalTable cm_signals[] = { +static const GDBusSignalTable cm_signals[] = { { "PropertyChanged", "sv" }, { "NearMaximumWarning", "" }, { } diff --git a/src/call-settings.c b/src/call-settings.c index 9d4ff7b1..014deb8c 100644 --- a/src/call-settings.c +++ b/src/call-settings.c @@ -1338,7 +1338,7 @@ static const GDBusMethodTable cs_methods[] = { { } }; -static GDBusSignalTable cs_signals[] = { +static const GDBusSignalTable cs_signals[] = { { "PropertyChanged", "sv" }, { } }; diff --git a/src/call-volume.c b/src/call-volume.c index 81b75646..528e39c9 100644 --- a/src/call-volume.c +++ b/src/call-volume.c @@ -308,7 +308,7 @@ static const GDBusMethodTable cv_methods[] = { { } }; -static GDBusSignalTable cv_signals[] = { +static const GDBusSignalTable cv_signals[] = { { "PropertyChanged", "sv" }, { } }; diff --git a/src/cbs.c b/src/cbs.c index 1c20cc67..f81cfb7b 100644 --- a/src/cbs.c +++ b/src/cbs.c @@ -547,7 +547,7 @@ static const GDBusMethodTable cbs_methods[] = { { } }; -static GDBusSignalTable cbs_signals[] = { +static const GDBusSignalTable cbs_signals[] = { { "PropertyChanged", "sv" }, { "IncomingBroadcast", "sq" }, { "EmergencyBroadcast", "sa{sv}" }, diff --git a/src/cdma-connman.c b/src/cdma-connman.c index 90652e79..92866ba2 100644 --- a/src/cdma-connman.c +++ b/src/cdma-connman.c @@ -525,7 +525,7 @@ static const GDBusMethodTable cdma_connman_methods[] = { { } }; -static GDBusSignalTable cdma_connman_signals[] = { +static const GDBusSignalTable cdma_connman_signals[] = { { "PropertyChanged", "sv" }, { } }; diff --git a/src/cdma-netreg.c b/src/cdma-netreg.c index e6074a83..7b63cd7c 100644 --- a/src/cdma-netreg.c +++ b/src/cdma-netreg.c @@ -112,7 +112,7 @@ static const GDBusMethodTable cdma_netreg_manager_methods[] = { { } }; -static GDBusSignalTable cdma_netreg_manager_signals[] = { +static const GDBusSignalTable cdma_netreg_manager_signals[] = { { } }; diff --git a/src/cdma-sms.c b/src/cdma-sms.c index a3681240..bef214cd 100644 --- a/src/cdma-sms.c +++ b/src/cdma-sms.c @@ -48,7 +48,7 @@ static const GDBusMethodTable cdma_sms_manager_methods[] = { { } }; -static GDBusSignalTable cdma_sms_manager_signals[] = { +static const GDBusSignalTable cdma_sms_manager_signals[] = { { "IncomingMessage", "sa{sv}" }, /* TODO */ { } diff --git a/src/cdma-voicecall.c b/src/cdma-voicecall.c index 3d0c55ea..3ff128c2 100644 --- a/src/cdma-voicecall.c +++ b/src/cdma-voicecall.c @@ -421,7 +421,7 @@ static const GDBusMethodTable manager_methods[] = { { } }; -static GDBusSignalTable manager_signals[] = { +static const GDBusSignalTable manager_signals[] = { { "PropertyChanged", "sv" }, { "DisconnectReason", "s" }, { } diff --git a/src/ctm.c b/src/ctm.c index 2ff1cca3..88ff1415 100644 --- a/src/ctm.c +++ b/src/ctm.c @@ -210,7 +210,7 @@ static const GDBusMethodTable ctm_methods[] = { { } }; -static GDBusSignalTable ctm_signals[] = { +static const GDBusSignalTable ctm_signals[] = { { "PropertyChanged", "sv" }, { } }; diff --git a/src/gprs.c b/src/gprs.c index 887422a9..83995f33 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -1289,7 +1289,7 @@ static const GDBusMethodTable context_methods[] = { { } }; -static GDBusSignalTable context_signals[] = { +static const GDBusSignalTable context_signals[] = { { "PropertyChanged", "sv" }, { } }; @@ -2075,7 +2075,7 @@ static const GDBusMethodTable manager_methods[] = { { } }; -static GDBusSignalTable manager_signals[] = { +static const GDBusSignalTable manager_signals[] = { { "PropertyChanged", "sv" }, { "ContextAdded", "oa{sv}" }, { "ContextRemoved", "o" }, diff --git a/src/handsfree.c b/src/handsfree.c index 2566dd8d..a8389528 100644 --- a/src/handsfree.c +++ b/src/handsfree.c @@ -279,7 +279,7 @@ static const GDBusMethodTable handsfree_methods[] = { { NULL, NULL, NULL, NULL } }; -static GDBusSignalTable handsfree_signals[] = { +static const GDBusSignalTable handsfree_signals[] = { { "PropertyChanged", "sv" }, { } }; diff --git a/src/location-reporting.c b/src/location-reporting.c index d2798148..6417330a 100644 --- a/src/location-reporting.c +++ b/src/location-reporting.c @@ -248,7 +248,7 @@ static const GDBusMethodTable location_reporting_methods[] = { { } }; -static GDBusSignalTable location_reporting_signals[] = { +static const GDBusSignalTable location_reporting_signals[] = { { "PropertyChanged", "sv" }, { } }; diff --git a/src/manager.c b/src/manager.c index 783ea768..ac729dca 100644 --- a/src/manager.c +++ b/src/manager.c @@ -85,7 +85,7 @@ static const GDBusMethodTable manager_methods[] = { { } }; -static GDBusSignalTable manager_signals[] = { +static const GDBusSignalTable manager_signals[] = { { "ModemAdded", "oa{sv}" }, { "ModemRemoved", "o" }, { } diff --git a/src/message-waiting.c b/src/message-waiting.c index 7bd25766..19b995db 100644 --- a/src/message-waiting.c +++ b/src/message-waiting.c @@ -375,7 +375,7 @@ static const GDBusMethodTable message_waiting_methods[] = { { } }; -static GDBusSignalTable message_waiting_signals[] = { +static const GDBusSignalTable message_waiting_signals[] = { { "PropertyChanged", "sv" }, { } }; diff --git a/src/message.c b/src/message.c index e0e72800..a8be5702 100644 --- a/src/message.c +++ b/src/message.c @@ -109,7 +109,7 @@ static const GDBusMethodTable message_methods[] = { { } }; -static GDBusSignalTable message_signals[] = { +static const GDBusSignalTable message_signals[] = { { "PropertyChanged", "sv" }, { } }; diff --git a/src/modem.c b/src/modem.c index f9fd37a2..f4278e92 100644 --- a/src/modem.c +++ b/src/modem.c @@ -1130,7 +1130,7 @@ static const GDBusMethodTable modem_methods[] = { { } }; -static GDBusSignalTable modem_signals[] = { +static const GDBusSignalTable modem_signals[] = { { "PropertyChanged", "sv" }, { } }; diff --git a/src/network.c b/src/network.c index 68749bae..7d28762e 100644 --- a/src/network.c +++ b/src/network.c @@ -630,7 +630,7 @@ static const GDBusMethodTable network_operator_methods[] = { { } }; -static GDBusSignalTable network_operator_signals[] = { +static const GDBusSignalTable network_operator_signals[] = { { "PropertyChanged", "sv" }, { } }; @@ -1030,7 +1030,7 @@ static const GDBusMethodTable network_registration_methods[] = { { } }; -static GDBusSignalTable network_registration_signals[] = { +static const GDBusSignalTable network_registration_signals[] = { { "PropertyChanged", "sv" }, { } }; diff --git a/src/phonebook.c b/src/phonebook.c index 3563cee6..16f1fb93 100644 --- a/src/phonebook.c +++ b/src/phonebook.c @@ -485,7 +485,7 @@ static const GDBusMethodTable phonebook_methods[] = { { } }; -static GDBusSignalTable phonebook_signals[] = { +static const GDBusSignalTable phonebook_signals[] = { { } }; diff --git a/src/radio-settings.c b/src/radio-settings.c index 132fd4a2..4777b184 100644 --- a/src/radio-settings.c +++ b/src/radio-settings.c @@ -609,7 +609,7 @@ static const GDBusMethodTable radio_methods[] = { { } }; -static GDBusSignalTable radio_signals[] = { +static const GDBusSignalTable radio_signals[] = { { "PropertyChanged", "sv" }, { } }; diff --git a/src/sim.c b/src/sim.c index b979ddd6..62076079 100644 --- a/src/sim.c +++ b/src/sim.c @@ -1086,7 +1086,7 @@ static const GDBusMethodTable sim_methods[] = { { } }; -static GDBusSignalTable sim_signals[] = { +static const GDBusSignalTable sim_signals[] = { { "PropertyChanged", "sv" }, { } }; diff --git a/src/sms.c b/src/sms.c index 1f64be91..428eb526 100644 --- a/src/sms.c +++ b/src/sms.c @@ -1114,7 +1114,7 @@ static const GDBusMethodTable sms_manager_methods[] = { { } }; -static GDBusSignalTable sms_manager_signals[] = { +static const GDBusSignalTable sms_manager_signals[] = { { "PropertyChanged", "sv" }, { "IncomingMessage", "sa{sv}" }, { "ImmediateMessage", "sa{sv}" }, diff --git a/src/stk.c b/src/stk.c index 61b29bb0..f111f0d0 100644 --- a/src/stk.c +++ b/src/stk.c @@ -827,7 +827,7 @@ static const GDBusMethodTable stk_methods[] = { { } }; -static GDBusSignalTable stk_signals[] = { +static const GDBusSignalTable stk_signals[] = { { "PropertyChanged", "sv" }, { } diff --git a/src/ussd.c b/src/ussd.c index 25ef61fc..92a7949b 100644 --- a/src/ussd.c +++ b/src/ussd.c @@ -740,7 +740,7 @@ static const GDBusMethodTable ussd_methods[] = { { } }; -static GDBusSignalTable ussd_signals[] = { +static const GDBusSignalTable ussd_signals[] = { { "NotificationReceived", "s" }, { "RequestReceived", "s" }, { "PropertyChanged", "sv" }, diff --git a/src/voicecall.c b/src/voicecall.c index 73b84b9c..36a795d2 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -678,7 +678,7 @@ static const GDBusMethodTable voicecall_methods[] = { { } }; -static GDBusSignalTable voicecall_signals[] = { +static const GDBusSignalTable voicecall_signals[] = { { "PropertyChanged", "sv" }, { "DisconnectReason", "s" }, { } @@ -2143,7 +2143,7 @@ static const GDBusMethodTable manager_methods[] = { { } }; -static GDBusSignalTable manager_signals[] = { +static const GDBusSignalTable manager_signals[] = { { "Forwarded", "s" }, { "BarringActive", "s" }, { "PropertyChanged", "sv" },