HandlerNode Struct Reference

A datatype for storing a Handler on a LinkedList. More...

#include <handler.h>

Inheritance diagram for HandlerNode:
[legend]
Collaboration diagram for HandlerNode:
[legend]

Public Member Functions

HandlerNodeAllocateHandlerNode (struct Handler *handler_p)
 Allocate a HandlerNode for the given Handler. More...
 
void FreeHandlerNode (ListItem *node_p)
 Free a HandlerNode. More...
 

Data Fields

ListItem hn_node
 The base list node. More...
 
Handlerhn_handler_p
 The Handler. More...
 
- Data Fields inherited from ListItem
ListItemln_prev_p
 A pointer to the previous ListItem. More...
 
ListItemln_next_p
 A pointer to the next ListItem. More...
 

Detailed Description

A datatype for storing a Handler on a LinkedList.

Member Function Documentation

◆ AllocateHandlerNode()

HandlerNode * AllocateHandlerNode ( struct Handler handler_p)

Allocate a HandlerNode for the given Handler.

Parameters
handler_pThe Handler to associate with the newly-created HandlerNode.
Returns
The new HandlerNode or NULL upon error.

◆ FreeHandlerNode()

void FreeHandlerNode ( ListItem node_p)

Free a HandlerNode.

This frees a HandlerNode and its associated Handler.

Parameters
node_p
See also
FreeHandler

Field Documentation

◆ hn_node

ListItem hn_node

The base list node.

◆ hn_handler_p

Handler* hn_handler_p

The Handler.


The documentation for this struct was generated from the following file: