summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-11-12 22:34:20 +0000
committerDamien Miller <djm@mindrot.org>2019-11-13 10:15:46 +1100
commit5d1c1590d736694f41b03e686045f08fcae20d62 (patch)
treea8260a4f40fc44afc14c24a29d26092749910ceb /misc.h
parent166927fd410823eec8a7b2472463db51e0e6fef5 (diff)
upstream: dd API for performing one-shot notifications via tty or
SSH_ASKPASS OpenBSD-Commit-ID: 9484aea33aff5b62ce3642bf259546c7639f23f3
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/misc.h b/misc.h
index bcc34f980..7421fbdf9 100644
--- a/misc.h
+++ b/misc.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: misc.h,v 1.81 2019/09/03 08:32:11 djm Exp $ */ 1/* $OpenBSD: misc.h,v 1.82 2019/11/12 22:34:20 djm Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -178,8 +178,13 @@ int opt_match(const char **opts, const char *term);
178#define RP_ALLOW_EOF 0x0004 178#define RP_ALLOW_EOF 0x0004
179#define RP_USE_ASKPASS 0x0008 179#define RP_USE_ASKPASS 0x0008
180 180
181struct notifier_ctx;
182
181char *read_passphrase(const char *, int); 183char *read_passphrase(const char *, int);
182int ask_permission(const char *, ...) __attribute__((format(printf, 1, 2))); 184int ask_permission(const char *, ...) __attribute__((format(printf, 1, 2)));
185struct notifier_ctx *notify_start(int, const char *, ...)
186 __attribute__((format(printf, 2, 3)));
187void notify_complete(struct notifier_ctx *);
183 188
184#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b)) 189#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
185#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b)) 190#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))