aboutsummaryrefslogtreecommitdiff
path: root/spawn.h
blob: 1693f1a8c28a9e580764b2a14e8d7aa3f4ae8c2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <stdbool.h>
#include <unistd.h>

#include "config.h"
#include "reaper.h"

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);

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);