diff options
| author | 0x221E | 2026-05-10 22:53:59 +0200 |
|---|---|---|
| committer | 0x221E | 2026-05-10 22:53:59 +0200 |
| commit | b4cd16236d97c0074a927159bb7df8620273f263 (patch) | |
| tree | 7d825dc482f38b13d0cc0d652759fa7d7ea3ba69 /include | |
| parent | 0bdf49ae045071a99674b4ac426c2c852f744443 (diff) | |
cookbook: add process return code checking for cookbook recipes
cookbook_recipe_run() now returns the return code of fork() to manage
success state.
Diffstat (limited to 'include')
| -rw-r--r-- | include/cookbook.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/cookbook.h b/include/cookbook.h index 86f66aa..05a8f63 100644 --- a/include/cookbook.h +++ b/include/cookbook.h @@ -2,7 +2,10 @@ #define COOKBOOK_H typedef struct url url; +typedef struct string_view string_view; -int cookbook_run(struct url *script_loc, char *script); +int cookbook_recipe_run(struct url *script_loc, + char *script, + struct string_view *out); #endif |
