Skip to content

Commit bac254c

Browse files
committed
Add documentation of the notify parameter to mbedToolchain
1 parent 12492c1 commit bac254c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/toolchains/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,14 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False,
274274
self.legacy_ignore_dirs = LEGACY_IGNORE_DIRS - set([target.name, LEGACY_TOOLCHAIN_NAMES[self.name]])
275275

276276
# Output notify function
277+
# This function is passed all events, and expected to handle notification of the
278+
# user, emit the events to a log, etc.
279+
# The API for all notify methods passed into the notify parameter is as follows:
280+
# def notify(Event, Silent)
281+
# Where *Event* is a dict representing the toolchain event that was generated
282+
# e.g.: a compile succeeded, or a warning was emitted by the compiler
283+
# or an application was linked
284+
# *Silent* is a boolean
277285
if notify:
278286
self.notify_fun = notify
279287
elif extra_verbose:

0 commit comments

Comments
 (0)