diff options
Diffstat (limited to 'src/kim/lib/kim_selection_hints.c')
-rw-r--r-- | src/kim/lib/kim_selection_hints.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/kim/lib/kim_selection_hints.c b/src/kim/lib/kim_selection_hints.c index a4d7d666a..6903afb86 100644 --- a/src/kim/lib/kim_selection_hints.c +++ b/src/kim/lib/kim_selection_hints.c @@ -314,6 +314,28 @@ kim_error kim_selection_hints_get_explanation (kim_selection_hints in_selection /* ------------------------------------------------------------------------ */ +kim_error kim_selection_hints_get_application_id (kim_selection_hints in_selection_hints, + kim_string *out_application_id) +{ + kim_error err = KIM_NO_ERROR; + + if (!err && !in_selection_hints) { err = check_error (KIM_NULL_PARAMETER_ERR); } + if (!err && !out_application_id) { err = check_error (KIM_NULL_PARAMETER_ERR); } + + if (!err) { + if (in_selection_hints->application_identifier) { + err = kim_string_copy (out_application_id, + in_selection_hints->application_identifier); + } else { + *out_application_id = NULL; + } + } + + return check_error (err); +} + +/* ------------------------------------------------------------------------ */ + kim_error kim_selection_hints_set_options (kim_selection_hints io_selection_hints, kim_options in_options) { |