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
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index f1ad6db..d9aff54 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -574,6 +574,7 @@ virFilePid;
virFileReadPid;
virFileLinkPointsTo;
virParseNumber;
+virPipeReadUntilEOF;
virAsprintf;
virRun;
virSkipSpaces;
diff --git a/src/util/util.c b/src/util/util.c
index 1188e5f..62dc5f1 100644
--- a/src/util/util.c
+++ b/src/util/util.c
@@ -786,7 +786,7 @@ int virExecDaemonize(const char *const*argv,
return ret;
}
-static int
+int
virPipeReadUntilEOF(int outfd, int errfd,
char **outbuf, char **errbuf) {
diff --git a/src/util/util.h b/src/util/util.h
index e69eb5c..24dfbfc 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -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;
--
Daniel Veillard | libxml Gnome XML XSLT toolkit
http://xmlsoft.org/
daniel(a)veillard.com | Rpmfind RPM search engine
http://rpmfind.net/
http://veillard.com/ | virtualization library
http://libvirt.org/