Back to index

avfs  1.0.1
runprog.h
Go to the documentation of this file.
00001 /*
00002     AVFS: A Virtual File System Library
00003     Copyright (C) 2000-2001  Miklos Szeredi <miklos@szeredi.hu>
00004 
00005     This program can be distributed under the terms of the GNU GPL.
00006     See the file COPYING.
00007 */
00008 
00009 struct program;
00010 
00011 int av_start_program(const char **prog, struct program **resp);
00012 int av_program_getline(struct program *pr, char **linep, long timeoutms);
00013 int av_program_log_output(struct program *pr);
00014 int av_run_program(const char **prog);
00015 
00016 /* av_program_getline() will return:
00017    1 and *linep != NULL  -- success
00018    1 and *linep == NULL  -- eof
00019    0                     -- timeout
00020    < 0                   -- error
00021 */
00022