X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fdaemon.h;h=ebbeaa2e8a9a6b2f44d09a8cc833ae45a4d7bf2c;hb=c0d73e0e60b99b87855364ff346551f5ff7efccb;hp=bb1ebb3ad9c4425f0f4431774b0e6409a0a4e888;hpb=e9c37113104c1cfb234535adc9b52ad3880a41ce;p=libguestfs.git diff --git a/daemon/daemon.h b/daemon/daemon.h index bb1ebb3..ebbeaa2 100644 --- a/daemon/daemon.h +++ b/daemon/daemon.h @@ -66,8 +66,12 @@ extern int commandrvf (char **stdoutput, char **stderror, int flags, extern char **split_lines (char *str); +extern void trim (char *str); + extern int device_name_translation (char *device, const char *func); +extern int prog_exists (const char *prog); + extern void udev_settle (void); /* This just stops gcc from giving a warning about our custom @@ -129,7 +133,7 @@ extern void reply_with_perror_errno (int err, const char *fs, ...) /* daemon functions that receive files (FileIn) should call * receive_file for each FileIn parameter. */ -typedef int (*receive_cb) (void *opaque, const void *buf, int len); +typedef int (*receive_cb) (void *opaque, const void *buf, size_t len); extern int receive_file (receive_cb cb, void *opaque); /* daemon functions that receive files (FileIn) can call this