Lines Matching refs:callback
36 static struct button_callback button_callback_list[32]; /* The callback list */
41 * This function is called by other drivers to register a callback function
43 * The callback list is a static array of 32 entries (I somehow doubt many
57 int button_add_callback (void (*callback) (void), int count)
63 if (!callback) {
67 for (; (button_callback_list [lp].callback); lp++);
68 button_callback_list [lp].callback = callback;
74 * This function is called by other drivers to deregister a callback function.
75 * If you attempt to unregister a callback which does not exist, it will fail
80 * at the same time, because another driver could have unregistered a callback
85 int button_del_callback (void (*callback) (void))
88 if (!callback) {
92 if ((button_callback_list [lp].callback) == callback) {
93 button_callback_list [lp].callback = NULL;
105 * list of callback functions, and call any of them whose count argument
116 if (button_callback_list [lp].callback) {
117 button_callback_list[lp].callback();