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_p.h File Reference

Definition of private structures. More...

#include "list.h"

Include dependency graph for list_p.h:

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


Data Structures

struct  LL_node_
 Declaration of the APID_handler_ structure. More...

Functions

LL_nodeLL_newNode (LL_node *next, unsigned int id, void *pay)
 Create a new linked-list node.
void LL_deleteNode (LL_node *node)
 Wrapper around free.
void LL_deleteNextNode (LL_node *node)
 Delete the node after the one pointed to by node from the linked list.
int LL_newNextNode (LL_node *node, unsigned int id, void *pay)
 Create a new node on the linked list immediately after the one indicated.
LL_nodeLL_findPrevNode (LL_node *head, unsigned int id)
 Scan through the linked list until we find either the last node, or the one before the node where the node with id should reside.

Detailed Description

Definition of private structures.

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

Function Documentation

void LL_deleteNextNode LL_node handler  ) 
 

Delete the node after the one pointed to by node from the linked list.

Parameters:
handler Pointer to the node on the linked list before the one to be deleted

void LL_deleteNode LL_node handler  ) 
 

Wrapper around free.

Parameters:
handler Pointer to linked-list node to free

LL_node* LL_findPrevNode LL_node head,
unsigned int  uid
 

Scan through the linked list until we find either the last node, or the one before the node where the node with id should reside.

Parameters:
head Pointer to the start of the list of LL handlers
uid Unique id for the node being sought (or about to be inserted)
Returns:
Pointer to the node immediately before the one being sort (or the position to insert) or the last node of the list

int LL_newNextNode LL_node handler,
unsigned int  uid,
void *  pay
 

Create a new node on the linked list immediately after the one indicated.

Parameters:
handler Pointer to the node after which the new node is to be added
uid Unique ID
pay Pointer to the payload
Return values:
0 The insertion of a new node was successful
-1 The insertion of a new node failed because of a memory allocation error

LL_node* LL_newNode LL_node next,
unsigned int  uid,
void *  pay
 

Create a new linked-list node.

Parameters:
next Pointer to use as the next node for the new node
uid Unique id for this node
pay Pointer to the payload structure associated with this node
Returns:
Pointer to the new linked-list node, or NULL if there is memory allocation failure


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