From 69aab78dd830b0ad570cf9b7bfe2da8e8b793e23 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 23 Aug 2013 16:16:50 +0000 Subject: bitbake: bitbake: Add ui event handlers filtering Add functionality to allow UIs to update and change the types of events they recieve. To do this we need to add a new command and also need to be able to obtain the current event hander ID. In the case of xmlrpc, this is straightforward, in the case of the process server we need to save the result in a multiprocessing.Value() so we can retrive it. An excplit command was added to the server API to facilitate this. The same function can also be used to mask or unmask specific log messages, allowing the UI to optionally differ from the standard set of message filtering. Based upon work by Cristiana Voicu (Bitbake rev: ba5a6c88785d9889d4172ec79937ac2a5555327e) Signed-off-by: Richard Purdie --- bitbake/lib/bb/command.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bitbake/lib/bb/command.py') diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 33a24406b5..bdf1c36636 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py @@ -240,6 +240,13 @@ class CommandsSync: name = params[0] command.cooker.createConfigFile(name) + def setEventMask(self, command, params): + handlerNum = params[0] + llevel = params[1] + debug_domains = params[2] + mask = params[3] + return bb.event.set_UIHmask(handlerNum, llevel, debug_domains, mask) + class CommandsAsync: """ A class of asynchronous commands -- cgit v1.2.3-54-g00ecf