GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> FMX / V4-0-10 > fmxshr / linux-gcc
#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"
Defines | |
#define | FMX_L_DAT_MODNAM (8) |
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. |
CVS $Id: FMX_command.c,v 1.8 2008/11/05 20:41:33 apw Exp $
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
.
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 |
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
.
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 |
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
.
ucb | (in) Database connection handle | |
key | (in) Logical file key to scan | |
rtn | (in) Callback routine | |
prm | (in) Callback routine parameter |
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.
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 |
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.
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 |
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.
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 |
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).
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 |
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.
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 |
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.
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 |
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".
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 |
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.
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 |
FMX_SUCCESS | Success | |
FMX_TAGMISS | Unknown tag type (database inconsistency?) |