summaryrefslogtreecommitdiffstats
path: root/src/kim/lib/kim_ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kim/lib/kim_ui.c')
-rw-r--r--src/kim/lib/kim_ui.c36
1 files changed, 23 insertions, 13 deletions
diff --git a/src/kim/lib/kim_ui.c b/src/kim/lib/kim_ui.c
index cd119c8d3..ccc59f440 100644
--- a/src/kim/lib/kim_ui.c
+++ b/src/kim/lib/kim_ui.c
@@ -113,12 +113,14 @@ kim_error kim_ui_init (kim_ui_context *io_context)
kim_error kim_ui_enter_identity (kim_ui_context *in_context,
kim_options io_options,
- kim_identity *out_identity)
+ kim_identity *out_identity,
+ kim_boolean *out_change_password)
{
kim_error err = KIM_NO_ERROR;
- if (!err && !in_context ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
- if (!err && !out_identity) { err = check_error (KIM_NULL_PARAMETER_ERR); }
+ if (!err && !in_context ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
+ if (!err && !out_identity ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
+ if (!err && !out_change_password) { err = check_error (KIM_NULL_PARAMETER_ERR); }
if (!err) {
err = kim_ui_init_lazy (in_context);
@@ -128,18 +130,21 @@ kim_error kim_ui_enter_identity (kim_ui_context *in_context,
if (in_context->type == kim_ui_type_gui_plugin) {
err = kim_ui_plugin_enter_identity (in_context,
io_options,
- out_identity);
+ out_identity,
+ out_change_password);
#ifndef LEAN_CLIENT
} else if (in_context->type == kim_ui_type_gui_builtin) {
err = kim_os_ui_gui_enter_identity (in_context,
io_options,
- out_identity);
+ out_identity,
+ out_change_password);
} else if (in_context->type == kim_ui_type_cli) {
err = kim_ui_cli_enter_identity (in_context,
io_options,
- out_identity);
+ out_identity,
+ out_change_password);
#endif /* LEAN_CLIENT */
@@ -155,13 +160,15 @@ kim_error kim_ui_enter_identity (kim_ui_context *in_context,
kim_error kim_ui_select_identity (kim_ui_context *in_context,
kim_selection_hints io_hints,
- kim_identity *out_identity)
+ kim_identity *out_identity,
+ kim_boolean *out_change_password)
{
kim_error err = KIM_NO_ERROR;
- if (!err && !in_context ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
- if (!err && !io_hints ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
- if (!err && !out_identity) { err = check_error (KIM_NULL_PARAMETER_ERR); }
+ if (!err && !in_context ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
+ if (!err && !io_hints ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
+ if (!err && !out_identity ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
+ if (!err && !out_change_password) { err = check_error (KIM_NULL_PARAMETER_ERR); }
if (!err) {
err = kim_ui_init_lazy (in_context);
@@ -171,18 +178,21 @@ kim_error kim_ui_select_identity (kim_ui_context *in_context,
if (in_context->type == kim_ui_type_gui_plugin) {
err = kim_ui_plugin_select_identity (in_context,
io_hints,
- out_identity);
+ out_identity,
+ out_change_password);
#ifndef LEAN_CLIENT
} else if (in_context->type == kim_ui_type_gui_builtin) {
err = kim_os_ui_gui_select_identity (in_context,
io_hints,
- out_identity);
+ out_identity,
+ out_change_password);
} else if (in_context->type == kim_ui_type_cli) {
err = kim_ui_cli_select_identity (in_context,
io_hints,
- out_identity);
+ out_identity,
+ out_change_password);
#endif /* LEAN_CLIENT */