From: Andreas Ă–man Date: Tue, 25 Mar 2008 18:51:30 +0000 (+0000) Subject: more comments X-Git-Tag: 2.12~1170 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=610b2c27a05491d7edb2004d35e4cf95015819db;p=thirdparty%2Ftvheadend.git more comments --- diff --git a/spawn.c b/spawn.c index 870d79b60..060d6a3e9 100644 --- a/spawn.c +++ b/spawn.c @@ -42,7 +42,9 @@ typedef struct spawn { } spawn_t; - +/** + * Structs for reading back output from a spawn via a pipe + */ TAILQ_HEAD(spawn_output_buf_queue, spawn_output_buf); #define MAX_SOB_SIZE 4000 @@ -131,8 +133,12 @@ spawn_enq(const char *name, int pid) - - +/** + * Execute the given program and return its output in a malloc()ed buffer + * + * *outp will point to the allocated buffer + * The function will return the size of the buffer + */ int spawn_and_store_stdout(const char *prog, char **outp) {