Removed remaining and replaced pagination-mode with locked parameter
Dispatcher: Added dispatcher_free(), fixed mem-leaks and malloc return checks
This commit is contained in:
parent
ce06f25be7
commit
edbbb43e1f
14 changed files with 204 additions and 161 deletions
|
|
@ -46,6 +46,7 @@ struct _dispatcher_entry {
|
|||
/*
|
||||
* peer_head points at leftmost peer at this level
|
||||
* if NULL, then this is the leftmost and first on the list
|
||||
* XXX: it seems it points to itself if it is first on the list?
|
||||
*/
|
||||
dispatcher_entry_t *peer_head;
|
||||
|
||||
|
|
@ -71,5 +72,6 @@ struct _dispatcher_entry {
|
|||
*/
|
||||
int dispatcher_register_handler(dispatcher_entry_t **root, dispatcher_definition *x);
|
||||
int dispatcher_call_handlers(dispatcher_entry_t *root, void *handle, char *path, void *user_args);
|
||||
int dispatcher_free(dispatcher_entry_t *root);
|
||||
|
||||
#endif /* DISPATCH_DISPATCHER_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue