mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
notify: break out command template expansion to spawn_expand_template()
This commit is contained in:
parent
4233c806c3
commit
06aba59430
3 changed files with 97 additions and 60 deletions
6
spawn.h
6
spawn.h
|
|
@ -1,7 +1,13 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue