summaryrefslogtreecommitdiff
path: root/libsylph/utils.h
diff options
context:
space:
mode:
authorSimeon Simeonov2018-03-08 15:01:45 +0100
committerSimeon Simeonov2018-03-08 15:01:45 +0100
commit57944f6147f077ccf4d84b9d2659f4e8645e8858 (patch)
treeb5a4f7af257058fb602d36590568ffd06681f6cd /libsylph/utils.h
parent9bcc1f9650eb2d9dff7a78c632dcc14dfcfac9ee (diff)
Reastructure master password functionality
Diffstat (limited to 'libsylph/utils.h')
-rw-r--r--libsylph/utils.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libsylph/utils.h b/libsylph/utils.h
index 9ac65cf..ede55ff 100644
--- a/libsylph/utils.h
+++ b/libsylph/utils.h
@@ -202,6 +202,8 @@ typedef void (*ProgressFunc) (gint cur,
202 gint total); 202 gint total);
203typedef gchar * (*QueryPasswordFunc) (const gchar *server, 203typedef gchar * (*QueryPasswordFunc) (const gchar *server,
204 const gchar *user); 204 const gchar *user);
205typedef gchar * (*QueryMasterPasswordFunc) (void);
206typedef gchar * (*SetNewPasswordFunc) (guint max_attempts);
205typedef void (*LogFunc) (const gchar *str); 207typedef void (*LogFunc) (const gchar *str);
206typedef void (*LogFlushFunc) (void); 208typedef void (*LogFlushFunc) (void);
207 209
@@ -560,9 +562,12 @@ void progress_show (gint cur,
560 562
561/* user input */ 563/* user input */
562void set_input_query_password_func (QueryPasswordFunc func); 564void set_input_query_password_func (QueryPasswordFunc func);
563
564gchar *input_query_password (const gchar *server, 565gchar *input_query_password (const gchar *server,
565 const gchar *user); 566 const gchar *user);
567void set_input_query_master_password_func(QueryMasterPasswordFunc func);
568gchar *input_query_master_password(void);
569void set_input_set_new_password_func(SetNewPasswordFunc func);
570gchar *input_set_new_password(guint max_attempts);
566 571
567/* logging */ 572/* logging */
568void set_log_file (const gchar *filename); 573void set_log_file (const gchar *filename);