2020-07-15 12:39:10 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
2024-07-23 06:57:30 +02:00
|
|
|
#include <unistd.h>
|
|
|
|
|
|
2021-01-31 14:40:27 +01:00
|
|
|
#include "config.h"
|
2020-07-15 12:39:10 +02:00
|
|
|
#include "reaper.h"
|
|
|
|
|
|
2024-07-23 06:57:30 +02:00
|
|
|
pid_t spawn(struct reaper *reaper, const char *cwd, char *const argv[],
|
|
|
|
|
int stdin_fd, int stdout_fd, int stderr_fd,
|
|
|
|
|
reaper_cb cb, void *cb_data, const char *xdg_activation_token);
|
2021-01-31 14:40:27 +01:00
|
|
|
|
|
|
|
|
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);
|