ml_register_action, ml_unregister_action - register callbacks |
#include <monolith.h> const char *ml_register_action (ml_session session, void (*callback_fn) (ml_session, void *), void *data); void ml_unregister_action (ml_session session, const char *action_id); |
Widgets such as buttons may register actions (callback functions) to be run when a user clicks a button or submits a form. Each action is associated with a unique action ID (a string). A separate set of actions is registered within each session. The callback function is invoked as void callback_fn (ml_session session, void *data). |
ml_register_action registers an action within a given session and returns the action ID string. |
ml_unregister_action unregisters an action. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
monolith-1.0.0 |
new_ml_button(3). |