search for: callback_head

Displaying 1 result from an estimated 1 matches for "callback_head".

2010 Apr 27
4
Patch sensible callback framework
...------------------------------------ */ + +/* + * callback.c + * + * generic callback handlers + */ + +#include <errno.h> +#include <stdio.h> +#include <stdlib.h> +#include <stdbool.h> +#include <string.h> + +#include "syslinux/callback.h" + +callback_record *callback_head = NULL; + +int register_callback(uint16_t type, void *callback) { + callback_record *curr; + if (callback_head) { + /* check to see if we're already registered */ + curr = callback_head; + while (curr->next) { + if (curr->type == type && curr-...