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

Constituent: qmem_unit_test     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

qmem_util_wrap.c File Reference

Wrappers for QMEM functions. More...

#include <stdlib.h>
#include <string.h>
#include "QMEM/QMEM.h"
#include "qmem_unit_test.h"
#include "qmem_util_wrap.h"

Include dependency graph for qmem_util_wrap.c:


Functions

void WRAP_init_info (WRAP_Info *info_p)
 Init a wrap info structure.
void WRAP_free_context (QMEM_Context *context_p)
 Free a QMEM parsing context.
int WRAP_alloc_context (test_Test_Descriptor *td_p, int id, QMEM_Context **ctx_pp)
 Allocate a QMEM parsing context.
int WRAP_get_context (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p)
 Call QMEM context functions and validate the results.
int WRAP_init_context (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p)
 Call QMEM_init_context() and validate the results.
int WRAP_parse_contribution (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p)
 Call QMEM_parse_contribution() and validate the results.
int WRAP_parse_datagram (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p)
 Call QMEM_parse_datagram() and validate the results.
int WRAP_start_parsing (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p)
 Call QMEM_start_parsing() and validate the results.

Detailed Description

Wrappers for QMEM functions.

**  CVS $Id: qmem_util_wrap.c,v 1.1.1.1 2005/12/13 21:46:07 dmay Exp $
**  

Function Documentation

int WRAP_alloc_context test_Test_Descriptor td_p,
int  id,
QMEM_Context **  ctx_pp
 

Allocate a QMEM parsing context.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
ctx_pp Location to return pointer to allocated context.
Return values:
0 Success.
-1 Failure.

void WRAP_free_context QMEM_Context context_p  ) 
 

Free a QMEM parsing context.

Parameters:
context_p Pointer to context to free.
Returns:
Nothing.

int WRAP_get_context test_Test_Descriptor td_p,
int  id,
WRAP_Info info_p
 

Call QMEM context functions and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to wrap control info.
Return values:
0 Success.
-1 Failure.

int WRAP_init_context test_Test_Descriptor td_p,
int  id,
WRAP_Info info_p
 

Call QMEM_init_context() and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to wrap control info.
Return values:
0 Success.
-1 Failure.

int WRAP_init_info WRAP_Info info_p  ) 
 

Init a wrap info structure.

Parameters:
info_p Pointer to wrap info.
Returns:
Nothing.

int WRAP_parse_contribution test_Test_Descriptor td_p,
int  id,
WRAP_Info info_p
 

Call QMEM_parse_contribution() and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to wrap control info.
Return values:
0 Success.
-1 Failure.

int WRAP_parse_datagram test_Test_Descriptor td_p,
int  id,
WRAP_Info info_p
 

Call QMEM_parse_datagram() and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to wrap control info.
Return values:
0 Success.
-1 Failure.

int WRAP_start_parsing test_Test_Descriptor td_p,
int  id,
WRAP_Info info_p
 

Call QMEM_start_parsing() and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to wrap control info.
Return values:
0 Success.
-1 Failure.


Generated on Sun Jun 14 02:18:45 2009 by  doxygen 1.4.4