diff options
author | Chris Toshok <toshok@ximian.com> | 2001-10-13 06:19:34 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-10-13 06:19:34 +0800 |
commit | 16419940747f03ae8abca3fad025c95f382bc79b (patch) | |
tree | 7182f0ca6413f0e6ff797341fe88650f1da7cc46 /e-util/e-passwords.h | |
parent | 74d8c78022be3b37edb80876e8a21aed3323a0af (diff) | |
download | gsoc2013-evolution-16419940747f03ae8abca3fad025c95f382bc79b.tar.gz gsoc2013-evolution-16419940747f03ae8abca3fad025c95f382bc79b.tar.zst gsoc2013-evolution-16419940747f03ae8abca3fad025c95f382bc79b.zip |
new parameter to e_passwords_init, and add prototype for
2001-10-12 Chris Toshok <toshok@ximian.com>
* e-passwords.h: new parameter to e_passwords_init, and add
prototype for e_passwords_clear_component_passwords.
* e-passwords.c (e_passwords_init): copy off the component name.
(e_passwords_shutdown): free/NULL the component name.
(e_passwords_clear_component_passwords): new function. remove the
subtree rooted at /Passwords/<ComponentName>.
(e_passwords_remember_password): use component_name when building
up the path.
(e_passwords_get_password): same.
(e_passwords_add_password): remove/free the currently stored
session password for this key if there is one, before adding the
new one.
svn path=/trunk/; revision=13637
Diffstat (limited to 'e-util/e-passwords.h')
-rw-r--r-- | e-util/e-passwords.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/e-util/e-passwords.h b/e-util/e-passwords.h index 101a419c4a..30de524242 100644 --- a/e-util/e-passwords.h +++ b/e-util/e-passwords.h @@ -33,7 +33,7 @@ extern "C" { #pragma } #endif /* __cplusplus */ -void e_passwords_init (void); +void e_passwords_init (const char *component); void e_passwords_shutdown (void); void e_passwords_remember_password (const char *key); @@ -41,6 +41,7 @@ void e_passwords_add_password (const char *key, const char *passwd); char *e_passwords_get_password (const char *key); void e_passwords_forget_password (const char *key); void e_passwords_forget_passwords (void); +void e_passwords_clear_component_passwords (void); typedef enum { E_PASSWORDS_DO_NOT_REMEMBER, |