From patchwork Thu Feb 23 13:47:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel,8/9] command.py: Add a new API triggerEvent() Date: Thu, 23 Feb 2012 13:47:20 -0000 From: Dongxiao Xu X-Patchwork-Id: 21699 Message-Id: To: bitbake-devel@lists.openembedded.org This functions enables the client to request triggering specific event from bitbake server. Signed-off-by: Dongxiao Xu --- lib/bb/command.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/lib/bb/command.py b/lib/bb/command.py index 43875f7..06e8869 100644 --- a/lib/bb/command.py +++ b/lib/bb/command.py @@ -179,6 +179,12 @@ class CommandsSync: """ return bb.utils.cpu_count() + def triggerEvent(self, command, params): + """ + Trigger a certain event + """ + event = params[0] + bb.event.fire(eval(event), command.cooker.configuration.data) class CommandsAsync: """