diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-11-11 22:58:34 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-11-11 22:58:34 +0000 |
commit | d8007f45125fe297970aa53665fa6e3c4182699a (patch) | |
tree | 8d9371f9acc12c4d8da2cc605461967140f2bb2b /render/form.h | |
parent | d9ce975822296ffe1483448733f43a5ec3598203 (diff) | |
download | netsurf-d8007f45125fe297970aa53665fa6e3c4182699a.tar.gz netsurf-d8007f45125fe297970aa53665fa6e3c4182699a.tar.bz2 |
change form API to return error instead of warning user.
Update the form API so instead of directly warning the user it returns
an error code to the caller allowing the appropriate action to be
taken outside the core. Additionally clean up documentation of this
API.
Diffstat (limited to 'render/form.h')
-rw-r--r-- | render/form.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/render/form.h b/render/form.h index 05898e3c5..eefa5ae37 100644 --- a/render/form.h +++ b/render/form.h @@ -126,6 +126,12 @@ struct form_control { }; -void form_select_process_selection(struct form_control *control, int item); +/** + * Process a selection from a form select menu. + * + * \param control form control with menu + * \param item index of item selected from the menu + */ +nserror form_select_process_selection(struct form_control *control, int item); #endif |