GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > DUMP / V0-0-0

Constituent: dump     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

list.h File Reference

Functions to maintain linked lists. More...

This graph shows which files directly or indirectly include this file:


Typedefs

typedef LL_node_ LL_node
 Forward declaration of the LL_node structure.

Functions

int LL_registerNode (LL_node *head, unsigned int uid, void *pay)
 Create an association between the uid and the pay pointer.
void * LL_unregisterNode (LL_node *head, unsigned int uid)
 Remove an id from the list of handled ids (NO-OP if no node on the list has this id).
void * LL_getPayload (LL_node *head, unsigned int uid)
 Find the payload corresponding to a give id.
int LL_isPresent (LL_node *head, unsigned int uid)
 Check if any node on the list contains this id.

Detailed Description

Functions to maintain linked lists.

Author:
James Swain -- jswain@slac.stanford.edu

Function Documentation

void* LL_getPayload LL_node head,
unsigned int  uid
 

Find the payload corresponding to a give id.

Parameters:
head Pointer to the start of the linked list
uid Unique ID
Returns:
Pointer to payload associated with id

int LL_isPresent LL_node head,
unsigned int  uid
 

Check if any node on the list contains this id.

Parameters:
head Pointer to the start of the linked list
uid Unique ID
Returns:
1 If there is a node on the list with this id

0 If no node has this id

int LL_registerNode LL_node head,
unsigned int  uid,
void *  pay
 

Create an association between the uid and the pay pointer.

Parameters:
head Pointer to the start of the list of LL handlers
uid Unique id for this node
pay Pointer to the void structure used for all datagrams for this LL
Return values:
1 If the attempt to register a new handler failed because a handler with that ID already exists; use replace.
-1 If the attempt to register a new handler failed because of a memory allocation error
0 The new handler was successfully registered

void* LL_unregisterNode LL_node head,
unsigned int  uid
 

Remove an id from the list of handled ids (NO-OP if no node on the list has this id).

Parameters:
head Pointer to the start of the list of LL handlers
uid Unique id for the node to remove
Returns:
Pointer to the payload of the unregistered node, or NULL if the node does not exist


Generated on Wed May 3 23:03:54 2006 by  doxygen 1.4.4