diff pwm.h @ 18:1e39a251cbe9

Use libtecla for interactive input
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Thu, 24 Aug 2017 13:10:56 +0200
parents a07665727c19
children 5c6155c8e9b6
line wrap: on
line diff
--- a/pwm.h	Sat Aug 12 10:41:52 2017 +0200
+++ b/pwm.h	Thu Aug 24 13:10:56 2017 +0200
@@ -24,8 +24,13 @@
 #ifndef	PWM_H
 #define	PWM_H
 
+#include <libtecla.h>
 #include <pws.h>
 
+#ifndef	PWM_LINE_MAX
+#define	PWM_LINE_MAX	16384
+#endif /* !PWM_LINE_MAX */
+
 struct pwm_ctx {
 	const char	*prev_cmd;
 	char		*errmsg;
@@ -38,5 +43,6 @@
 };
 
 void	pwm_err(struct pwm_ctx *, char *, ...);
+int	pwm_read_password(struct pwm_ctx *, int);
 
 #endif /* PWM_H */