1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-31 12:49:46 +00:00

bitbake: event/command: Allow UI to request the UI eventhander ID

The UI may want to change its event mask however to do this, it needs the
event handler's ID. Tweak the code to allow this to be stored and add
a command to query it.

Use the new command in the process server backend.

(Bitbake rev: f8cf2cb58b80ce74f756a11a9773b6b0e78d51ee)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2017-07-18 22:01:15 +01:00
parent 201fe6ee42
commit dd71707d5a
3 changed files with 19 additions and 4 deletions
+6 -1
View File
@@ -63,7 +63,12 @@ class ServerCommunicator():
pass
def getEventHandle(self):
return self.event_handle.value
handle, error = self.runCommand(["getUIHandlerNum"])
if error:
logger.error("Unable to get UI Handler Number: %s" % error)
raise BaseException(error)
return handle
class EventAdapter():
"""