X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fdaemon.h;h=1e58910042fc8f498c31057f1f861a6b253fc2bd;hb=7e523077d650cfb71044d5e74aa8fe1f91c019ae;hp=4c1b9b05088ae2b456e89602ce738a1fa91b2f8a;hpb=5c31f6126ba4ea3e9056c34c300f6f5e332ab997;p=libguestfs.git diff --git a/daemon/daemon.h b/daemon/daemon.h index 4c1b9b0..1e58910 100644 --- a/daemon/daemon.h +++ b/daemon/daemon.h @@ -21,13 +21,14 @@ #include #include +#include #include #include #include #include -#include "../src/guestfs_protocol.h" +#include "guestfs_protocol.h" /*-- in guestfsd.c --*/ extern int verbose; @@ -102,6 +103,8 @@ extern const char *function_names[]; /*-- in proto.c --*/ extern int proc_nr; extern int serial; +extern uint64_t progress_hint; +extern uint64_t optargs_bitmask; /*-- in mount.c --*/ extern int root_mounted; @@ -123,6 +126,9 @@ extern struct optgroup optgroups[]; /* Use this as a replacement for sync(2). */ extern int sync_disks (void); +/*-- in lvm.c --*/ +extern int lv_canonical (const char *device, char **ret); + /*-- in proto.c --*/ extern void main_loop (int sock) __attribute__((noreturn)); @@ -161,6 +167,12 @@ extern int send_file_end (int cancel); /* only call this if there is a FileOut parameter */ extern void reply (xdrproc_t xdrp, char *ret); +/* Notify progress to caller. This function is self-rate-limiting so + * you can call it as often as necessary. Actions which call this + * should add 'Progress' note in generator. + */ +extern void notify_progress (uint64_t position, uint64_t total); + /* Helper for functions that need a root filesystem mounted. * NB. Cannot be used for FileIn functions. */