ml_register_action

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
LICENSE
VERSION
SEE ALSO

NAME

ml_register_action, ml_unregister_action - register callbacks

SYNOPSIS

#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);

DESCRIPTION

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.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

GNU LGPL (see http://www.gnu.org/)

VERSION

monolith-1.0.0

SEE ALSO

new_ml_button(3).