diff options
Diffstat (limited to 'daemon/daemon.h')
-rw-r--r-- | daemon/daemon.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/daemon/daemon.h b/daemon/daemon.h index 3a67758b..40a087de 100644 --- a/daemon/daemon.h +++ b/daemon/daemon.h @@ -174,6 +174,23 @@ extern void reply (xdrproc_t xdrp, char *ret); */ extern void notify_progress (uint64_t position, uint64_t total); +/* Pulse mode progress messages. + * + * Call pulse_mode_start to start sending progress messages. + * + * Call pulse_mode_end along the ordinary exit path (ie. before a + * reply message is sent). + * + * Call pulse_mode_cancel along all error paths *before* any reply is + * sent. pulse_mode_cancel does not modify errno, so it is safe to + * call it before reply_with_perror. + * + * Pulse mode and ordinary notify_progress must not be mixed. + */ +extern void pulse_mode_start (void); +extern void pulse_mode_end (void); +extern void pulse_mode_cancel (void); + /* Helper for functions that need a root filesystem mounted. * NB. Cannot be used for FileIn functions. */ |