GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QLSW / V1-1-0

Constituent: qlsw_print     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QLSW_print.c File Reference

The implementation of the qlsw_print command. More...

#include <fcntl.h>
#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "CLI/CLI_pubdefs.h"
#include "FBS/FBS_pubrtos.h"
#include "MSG/MSG_printProc.h"
#include "MSG/MSG_pubdefs.h"
#include "PBI/Endianness.h"
#include "PBS/TASK.h"
#include "QLSW/QLSW_msgs.h"
#include "QLSW/QLSW_pubdefs.h"
#include "TRC/TRC_pubdefs.h"
#include "TRC_prvdefs.h"
#include "QLSW_macdefs.h"

Include dependency graph for QLSW_print.c:


Functions

void freeBuffer (TRC_Buffer *trc)
 Free a trace buffer.
void freeCommon (TRC_Common *com)
 Free a trace common area.
unsigned int readBuffer (TRC_Buffer **trc, int fd)
 Read a trace buffer from a file.
unsigned int readCommon (TRC_Common **com, int fd)
 Read a trace common area from a file.
unsigned int readTrace (TRC_Buffer **trc, TRC_Common **com, const char *fil)
 Read a trace from a file (assuming trace buffer and common area).
CLI_Syntax * syntax (void)
 Define the qlsw_extract syntax.
int main (int argc, char *argv[])
 Main routine.
unsigned int QLSW_help (CLI_Control *ctl, void *user)
 Handle the verb help.
unsigned int QLSW_trace (CLI_Control *ctl, void *user)
 Dump a trace.

Variables

static const char * s_common = "common"
 The string "common".
static const char * s_header = "header"
 The string "header".
static const char * s_help = "help"
 The string "help".
static const char * s_QLSW = "QLSW"
 The string "QLSW".
static const char * s_trace = "trace"
 The string "trace".
static const char * d_0 = "$0"
 The string "$0".
static const char * f_help = "QLSW_help"
 The function name "QLSW_help".
static const char * f_trace = "QLSW_trace"
 The function name "QLSW_trace".

Detailed Description

The implementation of the qlsw_print command.

CVS $Id: QLSW_print.c,v 1.2 2007/03/22 02:03:38 apw Exp $
Author:
A.P.Waite

Function Documentation

void freeBuffer TRC_Buffer *  trc  ) 
 

Free a trace buffer.

Parameters:
trc Pointer to the trace buffer

void freeCommon TRC_Common *  com  ) 
 

Free a trace common area.

Parameters:
com Pointer to the trace buffer

unsigned int QLSW_help CLI_Control *  ctl,
void *  user
 

Handle the verb help.

Parameters:
ctl (in) Anonymous control pointer
user (in) User parameter
Returns:
Status code

unsigned int QLSW_trace CLI_Control *  ctl,
void *  user
 

Dump a trace.

Parameters:
ctl (in) Anonymous control pointer
user (in) User parameter
Returns:
Status code

unsigned int readBuffer TRC_Buffer **  trc,
int  fd
 

Read a trace buffer from a file.

Parameters:
trc Pointer to the trace buffer (returned)
fd File descriptor to read from

unsigned int readCommon TRC_Common **  com,
int  fd
 

Read a trace common area from a file.

Parameters:
com Pointer to the trace commona area (returned)
fd File descriptor to read from

unsigned int readTrace TRC_Buffer **  trc,
TRC_Common **  com,
const char *  fil
 

Read a trace from a file (assuming trace buffer and common area).

Parameters:
trc (out) Pointer to the trace buffer
com (out) Pointer to the trace buffer
fil (in) File name

CLI_Syntax * syntax void   ) 
 

Define the qlsw_extract syntax.

Returns:
Primary syntax pointer


Generated on Fri Jan 18 01:17:00 2008 by  doxygen 1.4.4