blob: 6e6490b3831ebb3dfeb10a130c3fc8eafb01c33d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#ifndef TSL_COMMAND_H
#define TSL_COMMAND_H
#include "string_view.h"
/* Return 1 if you want to continue reading. @data is null-terminated */
typedef int (*ProgramOutputCallback)(char *data, int size, void *userdata);
/* Returns the program exit code (a positive value), or a negative value on failure */
int tsl_command_exec(char **args, ProgramOutputCallback output_callback, void *userdata);
#endif /* TSL_COMMAND_H */
|