From baebacd9974eea3ea063a47217d822564a35c1ce Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 11 Mar 2016 19:57:04 +0100 Subject: [PATCH] migration: patch all sdp_client_query calls --- tool/conversion_to_v1.0/convert.cocci | 39 +++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/tool/conversion_to_v1.0/convert.cocci b/tool/conversion_to_v1.0/convert.cocci index 3aa5c5dd4..c613d2c47 100644 --- a/tool/conversion_to_v1.0/convert.cocci +++ b/tool/conversion_to_v1.0/convert.cocci @@ -87,10 +87,43 @@ expression E1, E2; - sdp_general_query_for_uuid(E1, E2) + sdp_client_query_uuid16(sdp_client_callback, E1, E2) +@@ +identifier sdp_parser_register_callback.sdp_client_callback; +expression E1, E2; +@@ +- sdp_general_query_for_uuid128(E1, E2) ++ sdp_client_query_uuid128(sdp_client_callback, E1, E2) + +@@ +identifier sdp_parser_register_callback.sdp_client_callback; +expression E1, E2, E3; +@@ ++ sdp_client_query(E1, E2, E3) +- sdp_client_query(sdp_client_callback, E1, E2, E3) + +@@ +identifier sdp_parser_register_callback.sdp_client_callback; +expression E1, E2; +@@ +- sdp_query_rfcomm_channel_and_name_for_uuid(E1, E2) ++ sdp_client_query_uuid16(sdp_client_callback, E1, E2) + +@@ +identifier sdp_parser_register_callback.sdp_client_callback; +expression E1, E2; +@@ +- sdp_query_rfcomm_channel_and_name_for_uuid(E1, E2) ++ sdp_query_rfcomm_channel_and_name_for_uuid(sdp_client_callback, E1, E2) + +@@ +identifier sdp_parser_register_callback.sdp_client_callback; +expression E1, E2; +@@ +- sdp_query_rfcomm_channel_and_name_for_search_pattern(E1, E2) ++ sdp_query_rfcomm_channel_and_name_for_search_pattern(sdp_client_callback, E1, E2) + @@ identifier fn, event; -identifier ve; -identifier ce; typedef sdp_query_event_t; typedef sdp_query_attribute_value_event_t; typedef sdp_query_complete_event_t; @@ -106,3 +139,5 @@ type T; + +