NetSurf
|
Go to the source code of this file.
Typedefs | |
typedef void(* | handle_command_fn) (int argc, char **argv) |
Functions | |
nserror | monkey_register_handler (const char *cmd, handle_command_fn fn) |
void | monkey_process_command (void) |
void | monkey_free_handlers (void) |
typedef void(* handle_command_fn) (int argc, char **argv) |
Definition at line 22 of file dispatch.h.
void monkey_free_handlers | ( | void | ) |
Definition at line 53 of file dispatch.c.
References cmdhandler::cmd, handler_ring, and RING_REMOVE.
Referenced by main().
void monkey_process_command | ( | void | ) |
Definition at line 64 of file dispatch.c.
References buffer, cmdhandler::fn, handler_ring, PATH_MAX, RING_ITERATE_END, RING_ITERATE_START, and RING_ITERATE_STOP.
Referenced by monkey_run().
nserror monkey_register_handler | ( | const char * | cmd, |
handle_command_fn | fn | ||
) |
Definition at line 39 of file dispatch.c.
References cmdhandler::cmd, cmdhandler::fn, handler_ring, NSERROR_NOMEM, NSERROR_OK, NSLOG, and RING_INSERT.
Referenced by main().