diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-10-21 15:54:52 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-12-20 16:40:21 +1100 |
commit | 0ba871a497f156dd474a333889cd92eaab9b08dc (patch) | |
tree | 996a2ea1828f6a1f72b652e8f2d37df452668e12 /test/parser/test-pxe-discover-bootfile-pathprefix.c | |
parent | 454f924bbcda7904c4348ef45c3d0d293768a48c (diff) | |
download | talos-petitboot-0ba871a497f156dd474a333889cd92eaab9b08dc.tar.gz talos-petitboot-0ba871a497f156dd474a333889cd92eaab9b08dc.zip |
lib/process: Allow process output to be retrieved on each event
Allow a custom callback function to be set when registering the IO
waiter for asynchronous processes.
To allow output from processes to be parsed as it is received, add
process_stdout_custom() which passes a new "line" parameter to
process_read_stdout_once() in order to consume output as it appears.
Users of a custom IO callback will only have access to the process_info
struct which is internal to lib/process; the function
procinfo_get_process() is added to allow these callers to access process
information.
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'test/parser/test-pxe-discover-bootfile-pathprefix.c')
0 files changed, 0 insertions, 0 deletions