Add support for zerofree command.
[libguestfs.git] / daemon / daemon.h
index 331fc0d..8ad7b7c 100644 (file)
@@ -41,8 +41,13 @@ extern void free_strings (char **argv);
 extern void free_stringslen (char **argv, int len);
 
 extern int command (char **stdoutput, char **stderror, const char *name, ...);
+extern int commandr (char **stdoutput, char **stderror, const char *name, ...);
 extern int commandv (char **stdoutput, char **stderror,
                     char * const* const argv);
+extern int commandrv (char **stdoutput, char **stderror,
+                     char * const* const argv);
+
+extern char **split_lines (char *str);
 
 extern int shell_quote (char *out, int len, const char *in);
 
@@ -92,14 +97,6 @@ extern void send_file_end (int cancel);
 /* only call this if there is a FileOut parameter */
 extern void reply (xdrproc_t xdrp, char *ret);
 
-/* Append to existing string.  If existing string is NULL then
- * this creates a new string.  This uses an "interesting" variation
- * of asprintf.
- */
-
-#define catprintf(strp,fs,...) \
-  asprintf ((strp), "%s" fs, *(strp) ? *(strp) : "", __VA_ARGS__)
-
 /* Helper for functions that need a root filesystem mounted.
  * NB. Cannot be used for FileIn functions.
  */