GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> FMX / V4-0-13 > fmxshr / rhel5-64
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mysql.h>
#include <FMX/FMX_msgs.h>
#include <MDB/MDB_pubdefs.h>
#include <FMX_diction.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.9 2011/03/25 20:42:51 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 |
References FMX_makeVisible(), _FMX_Tag::index, _FMX_Connection::mysql, _FMX_Tag::name, _FMX_Connection::root, and _FMX_EnumTable::tag.
Referenced by FMX_findCDMbyKey().
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 |
References findCDMbyKey(), FMX_ENUM_TABLE_TAG, FMX_findEnumByName(), FMX_rollback(), and _FMX_Connection::self.
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 |
References _FMX_EnumTable::filetype, FMX_ENUM_TABLE_FILETYPE, FMX_findEnumByIndex(), FMX_GRP_COMPOUND, FMX_GRP_MODULE, FMX_GRP_SIMPLE, FMX_rollback(), _FMX_Filetype::group, _FMX_Connection::mysql, scanFilesByKeyCompound(), scanFilesByKeyModule(), scanFilesByKeySimple(), and _FMX_Connection::self.
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 |
References scanCompoundMembers().
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 |
References scanCompoundMembers().
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 |
References _FMX_EnumTable::filetype, FMX_ENUM_TABLE_FILETYPE, FMX_findEnumByIndex(), FMX_rollback(), _FMX_Connection::mysql, _FMX_Filetype::name, s_fof, s_sbs, scanFOFmembers(), scanSBSmembers(), and _FMX_Connection::self.
Referenced by FMX_scanFOFmembers(), and FMX_scanSBSmembers().
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 |
References FMX_CAP_MOD_NONE, FMX_GRP_COMPOUND, FMX_makeVisible(), and _FMX_Connection::mysql.
Referenced by FMX_scanFilesByKey().
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?) |
References FMX_ENUM_TABLE_TAG, FMX_findEnumByIndex(), FMX_GRP_MODULE, FMX_makeVisible(), _FMX_Connection::mysql, _FMX_Tag::name, and _FMX_EnumTable::tag.
Referenced by FMX_scanFilesByKey().
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 |
References FMX_CAP_MOD_NONE, FMX_GRP_SIMPLE, FMX_makeVisible(), and _FMX_Connection::mysql.
Referenced by FMX_scanFilesByKey().
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 |
References FMX_makeVisible(), _FMX_Connection::mysql, s_export, and s_import.
Referenced by scanCompoundMembers().
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?) |
References FMX_ENUM_TABLE_TAG, FMX_findEnumByName(), FMX_makeVisible(), _FMX_Tag::index, _FMX_Connection::mysql, s_export, s_import, and _FMX_EnumTable::tag.
Referenced by scanCompoundMembers().