Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
system.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2020 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
13#ifndef __UTILS_SYSTEM_H__
14#define __UTILS_SYSTEM_H__
15
16#include <stdbool.h>
17
32int
33system_run_cmd (const char * cmd, long ms_timer);
34
48char *
49system_get_cmd_output (char ** argv, long ms_timer, bool always_wait);
50
55#endif
int system_run_cmd(const char *cmd, long ms_timer)
Runs the given command in the background, waits for it to finish and returns its exit code.
char * system_get_cmd_output(char **argv, long ms_timer, bool always_wait)
Runs the command and returns the output, or NULL.