NetSurf
Typedefs | Functions
dispatch.h File Reference
This graph shows which files directly or indirectly include this file:

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 Documentation

◆ handle_command_fn

typedef void(* handle_command_fn) (int argc, char **argv)

Definition at line 22 of file dispatch.h.

Function Documentation

◆ monkey_free_handlers()

void monkey_free_handlers ( void  )

Definition at line 53 of file dispatch.c.

References cmdhandler::cmd, handler_ring, and RING_REMOVE.

Referenced by main().

Here is the caller graph for this function:

◆ monkey_process_command()

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().

Here is the caller graph for this function:

◆ monkey_register_handler()

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().

Here is the caller graph for this function: