[PATCH 2/6] test/map-client: Add D-Bus API support to make MASInstance request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 test/map-client | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test/map-client b/test/map-client
index b9695da..a1666b2 100755
--- a/test/map-client
+++ b/test/map-client
@@ -66,6 +66,8 @@ def parse_options():
 			help="Undeletes the message")
 	parser.add_option("-u", "--update-inbox", action="store_true", dest="update_inbox",
 			help="Checks for new mails")
+	parser.add_option("-m", "--mas-instance-info", action="store_true", dest="get_mas_info",
+			help="Get MAS Instance Information")
 
 	return parser.parse_args()
 
@@ -172,6 +174,10 @@ class MapClient:
 	def update_inbox(self):
 		self.map.UpdateInbox()
 
+	def get_mas_instance_info(self):
+		ret = self.map.GetMASInstanceInfo()
+		print(pformat(unwrap(ret)))
+
 
 if  __name__ == '__main__':
 
@@ -229,4 +235,7 @@ if  __name__ == '__main__':
 	if options.update_inbox:
 		map_client.update_inbox()
 
+	if options.get_mas_info:
+		map_client.get_mas_instance_info()
+
 	mainloop.run()
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux