Mercurial > projects > pwm
diff pwm.h @ 16:a07665727c19
Add status command
Add status command to redisplay an error message of the previous command and
unsaved changes.
Add pwm_err function to display and save error messages.
author | Guido Berhoerster <guido+pwm@berhoerster.name> |
---|---|
date | Tue, 08 Aug 2017 10:47:04 +0200 |
parents | cf81eb0c2d5a |
children | 1e39a251cbe9 |
line wrap: on
line diff
--- a/pwm.h Mon Aug 07 19:11:56 2017 +0200 +++ b/pwm.h Tue Aug 08 10:47:04 2017 +0200 @@ -28,6 +28,7 @@ struct pwm_ctx { const char *prev_cmd; + char *errmsg; char *filename; struct pws3_file *file; struct record_id_tree *record_id_tree; @@ -36,4 +37,6 @@ char password[PWS3_MAX_PASSWORD_LEN + 1]; }; +void pwm_err(struct pwm_ctx *, char *, ...); + #endif /* PWM_H */