From patchwork Fri Jan 13 08:30:42 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: Fri, 13 Jan 2012 08:30:42 -0000 From: Dongxiao Xu X-Patchwork-Id: 19271 Message-Id: <344db22aba86cb665c3318d32655047c00eb6c6c.1326442655.git.dongxiao.xu@intel.com> 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..a2c464f 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(event, command.cooker.configuration.data) class CommandsAsync: """