aboutsummaryrefslogtreecommitdiff
path: root/include/Program.h
blob: 5f986a45d5bb3883fa3bbef8e8da85af79af8eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef QUICKMEDIA_PROGRAM_H
#define QUICKMEDIA_PROGRAM_H

/* Return 0 if you want to continue reading */
typedef int (*ProgramOutputCallback)(char *data, int size, void *userdata);

/*
    @args need to have at least 2 arguments. The first which is the program name
    and the last which is NULL, which indicates end of args
*/
int exec_program(char **args, ProgramOutputCallback output_callback, void *userdata);

#endif