GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > FMX / V3-3-0

Constituent: fmxshr     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

FMX_command.c File Reference

Command interfaces. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mysql.h"
#include "FMX/FMX_msgs.h"
#include "MDB/MDB_pubdefs.h"
#include "FMX_prvdefs.h"

Include dependency graph for FMX_command.c:


Functions

static unsigned int findCDMbyKey (FMX_Connection *ucb, unsigned int key, FMX_EnumTable *num, unsigned int absolute, char *nambuf, unsigned int bufmax, unsigned int *namlen)
 Return the filename of a CDM file corresponding to key.
static unsigned int scanFilesByKeyCompound (FMX_Connection *ucb, unsigned int key, const char *dir, FMX_cb_scanFilesByKey *rtn, void *prm)
 Scan files for a compound key (the key itself, not its members).
static unsigned int scanFilesByKeyModule (FMX_Connection *ucb, unsigned int key, const char *dir, FMX_cb_scanFilesByKey *rtn, void *prm)
 Scan files for a module key.
static unsigned int scanFilesByKeySimple (FMX_Connection *ucb, unsigned int key, const char *dir, FMX_cb_scanFilesByKey *rtn, void *prm)
 Scan files for a simple key.
static unsigned int scanCompoundMembers (FMX_Connection *ucb, unsigned int key, const char *tag, unsigned int flight, void *rtn, void *prm)
 Scan the members of a compound file.
static unsigned int scanFOFmembers (FMX_Connection *ucb, unsigned int key, unsigned int flight, FMX_cb_scanFOFmembers *rtn, void *prm)
 Scan the members of a "file-of-files".
static unsigned int scanSBSmembers (FMX_Connection *ucb, unsigned int key, const char *tag, unsigned int flight, FMX_cb_scanSBSmembers *rtn, void *prm)
 Scan the members of a secondary boot script.
unsigned int FMX_findCDMbyKey (FMX_Connection *ucb, unsigned int key, const char *tag, unsigned int absolute, char *nambuf, unsigned int bufmax, unsigned int *namlen)
 Return the filename of a CDM file corresponding to key.
unsigned int FMX_scanFilesByKey (FMX_Connection *ucb, unsigned int key, FMX_cb_scanFilesByKey *rtn, void *prm)
 Scan all files with logical key key.
unsigned int FMX_scanFOFmembers (FMX_Connection *ucb, unsigned int key, unsigned int flight, FMX_cb_scanFOFmembers *rtn, void *prm)
 Scan the members of a "file-of-files" compounf file.
unsigned int FMX_scanSBSmembers (FMX_Connection *ucb, unsigned int key, const char *tag, unsigned int flight, FMX_cb_scanSBSmembers *rtn, void *prm)
 Scan the members of a secondary boot script.

Detailed Description

Command interfaces.

CVS $Id: FMX_command.c,v 1.3 2007/04/19 21:36:10 apw Exp $
Author:
A.P.Waite

Function Documentation

static unsigned int findCDMbyKey FMX_Connection ucb,
unsigned int  key,
FMX_EnumTable num,
unsigned int  absolute,
char *  nambuf,
unsigned int  bufmax,
unsigned int *  namlen
[static]
 

Return the filename of a CDM file corresponding to key.

Parameters:
ucb (in) Database connection handle
key (in) Logical key to find
num (in) Architecture tag enumeration entry
absolute (in) Request absolute file name
nambuf (in) Buffer into which to place the file name
bufmax (in) Length of nambuf
namlen (in) Actual length of file name
Return values:
FMX_CDMNOT Logical key does not resolve to a CDM file
FMX_SUCCESS Success
FMX_KEYNOT Invalid logical file key

unsigned int FMX_findCDMbyKey FMX_Connection ucb,
unsigned int  key,
const char *  tag,
unsigned int  absolute,
char *  nambuf,
unsigned int  bufmax,
unsigned int *  namlen
 

Return the filename of a CDM file corresponding to key.

Parameters:
ucb (in) Database connection handle
key (in) Logical file key to scan
tag (in) Architecture tag name
absolute (in) Request absolute file name
nambuf (in) Buffer into which to place the file name
bufmax (in) Length of nambuf
namlen (in) Actual length of file name
Return values:
FMX_NULLPNTR NULL pointer
FMX_SUCCESS Success
FMX_TAGTYPE Unknown architecture (tag) type
FMX_UCBNOT Invalid connection block

unsigned int FMX_scanFilesByKey FMX_Connection ucb,
unsigned int  key,
FMX_cb_scanFilesByKey rtn,
void *  prm
 

Scan all files with logical key key.

Parameters:
ucb (in) Database connection handle
key (in) Logical file key to scan
rtn (in) Callback routine
prm (in) Callback routine parameter
Return values:
FMX_ALLOCMEM Cannot allocate sufficient memory (dynamic)
FMX_FILEGRP Unrecognized file group
FMX_KEYNOT Invalid logical file key
FMX_SUCCESS Success
FMX_TAGMISS Unknown tag type (database inconsistency?)
FMX_UCBNOT Invalid connection block

unsigned int FMX_scanFOFmembers FMX_Connection ucb,
unsigned int  key,
unsigned int  flight,
FMX_cb_scanFOFmembers rtn,
void *  prm
 

Scan the members of a "file-of-files" compounf file.

Parameters:
ucb (in) Database connection handle
key (in) Resolved file key for the "file-of-files"
flight (in) Scan the ground/flight files (boolean)
rtn (in) Callback routine
prm (in) Callback routine parameter
Return values:
FMX_ALLOCMEM Cannot allocate sufficient memory (dynamic)
FMX_FILEGRP Unrecognized file group
FMX_KEYNOT Invalid logical file key
FMX_SUCCESS Success
FMX_TAGMISS Unknown tag type (database inconsistency?)
FMX_UCBNOT Invalid connection block

unsigned int FMX_scanSBSmembers FMX_Connection ucb,
unsigned int  key,
const char *  tag,
unsigned int  flight,
FMX_cb_scanSBSmembers rtn,
void *  prm
 

Scan the members of a secondary boot script.

Parameters:
ucb (in) Database connection handle
key (in) Resolved file key for the secondary boot script
tag (in) Architecture tag name for which to resolve files
flight (in) Scan the ground/flight files (boolean)
rtn (in) Callback routine
prm (in) Callback routine parameter
Return values:
FMX_ALLOCMEM Cannot allocate sufficient memory (dynamic)
FMX_FILEGRP Unrecognized file group
FMX_KEYNOT Invalid logical file key
FMX_SUCCESS Success
FMX_TAGMISS Unknown tag type (database inconsistency?)
FMX_UCBNOT Invalid connection block

unsigned int scanCompoundMembers FMX_Connection ucb,
unsigned int  key,
const char *  tag,
unsigned int  flight,
void *  rtn,
void *  prm
[static]
 

Scan the members of a compound file.

Parameters:
ucb (in) Database connection handle
key (in) Resolved file key for the compound file
tag (in) Architecture tag name (NULL if "fof")
flight (in) Scan the ground/flight files (boolean)
rtn (in) Callback routine
prm (in) Callback routine parameter
Return values:
FMX_ALLOCMEM Cannot allocate sufficient memory (dynamic)
FMX_FILEGRP Unrecognized file group
FMX_KEYNOT Invalid logical file key
FMX_SUCCESS Success
FMX_TAGMISS Unknown tag type (database inconsistency?)
FMX_UCBNOT Invalid connection block

static unsigned int scanFilesByKeyCompound FMX_Connection ucb,
unsigned int  key,
const char *  dir,
FMX_cb_scanFilesByKey rtn,
void *  prm
[static]
 

Scan files for a compound key (the key itself, not its members).

Parameters:
ucb (in) Database connection handle
key (in) Logical file key to scan
dir (in) Directory name associated with file type
rtn (in) Callback routine
prm (in) Callback routine parameter
Return values:
FMX_SUCCESS Success

static unsigned int scanFilesByKeyModule FMX_Connection ucb,
unsigned int  key,
const char *  dir,
FMX_cb_scanFilesByKey rtn,
void *  prm
[static]
 

Scan files for a module key.

Parameters:
ucb (in) Database connection handle
key (in) Logical file key to scan
dir (in) Directory name associated with file type
rtn (in) Callback routine
prm (in) Callback routine parameter
Return values:
FMX_SUCCESS Success
FMX_TAGMISS Unknown tag type (database inconsistency?)

static unsigned int scanFilesByKeySimple FMX_Connection ucb,
unsigned int  key,
const char *  dir,
FMX_cb_scanFilesByKey rtn,
void *  prm
[static]
 

Scan files for a simple key.

Parameters:
ucb (in) Connection handle
key (in) Logical file key to scan
dir (in) Directory name associated with file type
rtn (in) Callback routine
prm (in) Callback routine parameter
Return values:
FMX_SUCCESS Success

static unsigned int scanFOFmembers FMX_Connection ucb,
unsigned int  key,
unsigned int  flight,
FMX_cb_scanFOFmembers rtn,
void *  prm
[static]
 

Scan the members of a "file-of-files".

Parameters:
ucb (in) Database connection handle
key (in) Resolved file key for the "file-of-files"
flight (in) Scan the ground/flight files (boolean)
rtn (in) Callback routine
prm (in) Callback routine parameter
Return values:
FMX_SUCCESS Success

static unsigned int scanSBSmembers FMX_Connection ucb,
unsigned int  key,
const char *  tag,
unsigned int  flight,
FMX_cb_scanSBSmembers rtn,
void *  prm
[static]
 

Scan the members of a secondary boot script.

Parameters:
ucb (in) Database connection handle
key (in) Resolved file key for the secondary boot script
tag (in) Architecture tag name
flight (in) Scan the ground/flight files (boolean)
rtn (in) Callback routine
prm (in) Callback routine parameter
Return values:
FMX_SUCCESS Success
FMX_TAGMISS Unknown tag type (database inconsistency?)


Generated on Fri Apr 20 05:39:27 2007 by  doxygen 1.4.4