Add documentation of the notify parameter to mbedToolchain

pull/2122/head
Jimmy Brisson 2016-07-07 15:19:36 -05:00
parent 12492c17b8
commit bac254c7a3
1 changed files with 8 additions and 0 deletions

View File

@ -274,6 +274,14 @@ class mbedToolchain:
self.legacy_ignore_dirs = LEGACY_IGNORE_DIRS - set([target.name, LEGACY_TOOLCHAIN_NAMES[self.name]])
# Output notify function
# This function is passed all events, and expected to handle notification of the
# user, emit the events to a log, etc.
# The API for all notify methods passed into the notify parameter is as follows:
# def notify(Event, Silent)
# Where *Event* is a dict representing the toolchain event that was generated
# e.g.: a compile succeeded, or a warning was emitted by the compiler
# or an application was linked
# *Silent* is a boolean
if notify:
self.notify_fun = notify
elif extra_verbose: