Export virPipeReadUntilEOF internally

used to read the data from virExec stdout/err file descriptors

* src/util/util.c src/util/util.h: not static anymore and export it
* src/libvirt_private.syms: allow access internally
This commit is contained in:
Daniel Veillard 2010-03-26 11:50:10 +01:00
parent e455b221be
commit b3bff9546b
3 changed files with 4 additions and 1 deletions

View File

@ -633,6 +633,7 @@ virFilePid;
virFileReadPid;
virFileLinkPointsTo;
virParseNumber;
virPipeReadUntilEOF;
virAsprintf;
virRun;
virSkipSpaces;

View File

@ -786,7 +786,7 @@ int virExecDaemonize(const char *const*argv,
return ret;
}
static int
int
virPipeReadUntilEOF(int outfd, int errfd,
char **outbuf, char **errbuf) {

View File

@ -81,6 +81,8 @@ int virRun(const char *const*argv, int *status) ATTRIBUTE_RETURN_CHECK;
int virRunWithHook(const char *const*argv,
virExecHook hook, void *data,
int *status) ATTRIBUTE_RETURN_CHECK;
int virPipeReadUntilEOF(int outfd, int errfd,
char **outbuf, char **errbuf);
int virFork(pid_t *pid);
int virFileReadLimFD(int fd, int maxlen, char **buf) ATTRIBUTE_RETURN_CHECK;