From 06aba59430bdb1ad5058ef513eeb91416057d1db Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 31 Jan 2021 14:40:27 +0100 Subject: notify: break out command template expansion to spawn_expand_template() --- spawn.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spawn.h') diff --git a/spawn.h b/spawn.h index 2ab645a8..c6f9582e 100644 --- a/spawn.h +++ b/spawn.h @@ -1,7 +1,13 @@ #pragma once #include +#include "config.h" #include "reaper.h" bool spawn(struct reaper *reaper, const char *cwd, char *const argv[], int stdin_fd, int stdout_fd, int stderr_fd); + +bool spawn_expand_template( + const struct config_spawn_template *template, + size_t key_count, const char *key_names[static key_count], + const char *key_values[static key_count], size_t *argc, char ***argv); -- cgit v1.3