GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> FMX / V4-0-10 > fmxshr / linux-gcc
Defines | |
#define | FMX_L_ENUM_TABLES (6) |
Number of enumeration tables FMX recognizes. | |
Typedefs | |
typedef struct _FMX_Connection | FMX_Connection |
Typedef for struct _FMX_Connection. | |
typedef enum _FMX_EnumTableList | FMX_EnumTableList |
Typedef for enum _FMX_EnumTableList. | |
typedef enum _FMX_FileGroup | FMX_FileGroup |
Typedef for enum _FMX_FileGroup. | |
typedef enum _FMX_CaptureModule | FMX_CaptureModule |
Typedef for enum _FMX_CaptureModule. | |
typedef unsigned int | FMX_cb_scanFilesByKey (void *prm, unsigned int key, const char *dir, FMX_FileGroup group, unsigned int flight, unsigned int visible, const char *tag, unsigned int index, unsigned int size, const char *date, const char *name, const char *pkg, const char *ver, const char *con, FMX_CaptureModule captured, unsigned int contents, unsigned int count, const unsigned int *dat) |
Signature for a FMX_scanFilesByKey callback function. | |
typedef unsigned int | FMX_cb_scanFOFmembers (void *prm, unsigned int visible, unsigned int key, const char *dir, unsigned int index, unsigned int size, const char *date, const char *name) |
Signature for a FMX_scanFOFmembers callback function. | |
typedef unsigned int | FMX_cb_scanSBSmembers (void *prm, unsigned int visible, unsigned int key, const char *dir, unsigned int index, unsigned int size, const char *date, const char *name, const char *pkg, const char *ver, const char *con, FMX_CaptureModule captured, unsigned int contents, unsigned int count, const unsigned int *dat) |
Signature for a FMX_scanSBSmembers callback function. | |
Enumerations | |
enum | _FMX_EnumTableList { FMX_ENUM_TABLE_DEVICE = 0, FMX_ENUM_TABLE_FILETYPE = 1, FMX_ENUM_TABLE_HOST = 2, FMX_ENUM_TABLE_INSTRUMENT = 3, FMX_ENUM_TABLE_NODE = 4, FMX_ENUM_TABLE_TAG = 5 } |
Enumeration of enumeration tables FMX recognizes (!). More... | |
enum | _FMX_FileGroup { FMX_GRP_UNKNOWN = -1, FMX_GRP_SIMPLE = 0, FMX_GRP_COMPOUND = 1, FMX_GRP_MODULE = 2 } |
Enumeration of the groups filetypes can belong to. More... | |
enum | _FMX_CaptureModule { FMX_CAP_MOD_NONE = 0, FMX_CAP_MOD_CDM = 1, FMX_CAP_MOD_REL = 2 } |
Enumeration of the methods used to capture extended module information. More... | |
Functions | |
unsigned int | FMX_connect (FMX_Connection **con, const char *host, const char *user, const char *pass, int port) |
Create a connection to the database. | |
unsigned int | FMX_disconnect (FMX_Connection *ucb) |
Break a connection to the database. | |
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_initialize (void) |
Initialize the FMX client. | |
unsigned int | FMX_scanFilesByKey (FMX_Connection *ucb, unsigned int key, FMX_cb_scanFilesByKey rtn, void *prm) |
unsigned int | FMX_scanFOFmembers (FMX_Connection *ucb, unsigned int key, unsigned int flight, FMX_cb_scanFOFmembers rtn, void *prm) |
unsigned int | FMX_scanSBSmembers (FMX_Connection *ucb, unsigned int key, const char *tag, unsigned int flight, FMX_cb_scanSBSmembers rtn, void *prm) |
void | FMX_shutdown (void) |
Shut down the FMX client. |
CVS $Id: FMX_pubdefs.h,v 1.7 2008/11/05 20:41:32 apw Exp $
Signature for a FMX_scanFilesByKey callback function.
< "List key" file processing routine
Signature for a FMX_scanFOFmembers callback function.
< Scan the members of a FOF file
Signature for a FMX_scanSBSmembers callback function.
< Scan the members of an SBS file
enum _FMX_CaptureModule |
enum _FMX_EnumTableList |
enum _FMX_FileGroup |
unsigned int FMX_connect | ( | FMX_Connection ** | con, | |
const char * | host, | |||
const char * | user, | |||
const char * | pass, | |||
int | port | |||
) |
Create a connection to the database.
con | (out) Connection handle | |
host | (in) Host name (NULL: take from $FMX_C_FDB) | |
user | (in) User name (NULL: take from .my.cnf) | |
pass | (in) Password (NULL: take from .my.cnf) | |
port | (in) Connection handle |
FMX_ALLOCBUF | Local (stack) buffer too small | |
FMX_ALLOCMEM | Cannot allocate sufficient memory (dynamic) | |
FMX_EVMISS | Expected environment variable not found | |
FMX_MYSQLCON | Cannot select database status from global table | |
FMX_LINKMIST | Expected file system link not found | |
FMX_MYCNFBAD | User's .my.cnf file insufficiently protected | |
FMX_MYCNFMIS | Cannot find user's .my.cnf file | |
FMX_MYSQLINT | Cannot initialize a MySQL handle | |
FMX_MYSQLCON | Cannot connect to MySQL database | |
FMX_SUCCESS | Success | |
FMX_USERACC | Cannot determine access privileges for user | |
FMX_USERID | Cannot identify user from database tables | |
FMX_USERNOT | User has no privileges on this database |
unsigned int FMX_disconnect | ( | FMX_Connection * | ucb | ) |
Break a connection to the database.
ucb | (in) User connection block |
FMX_UCBMISS | Connection block not found in list | |
FMX_UCBNOT | Invalid connection block | |
FMX_SUCCESS | Success |
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_initialize | ( | void | ) |
Initialize the FMX client.
FMX_FCBINIT | FMX control block already initialized | |
FMX_ALLOCMEM | Cannot allocate memory for FMX control block | |
FMX_SUCCESS | Success |
void FMX_shutdown | ( | void | ) |
Shut down the FMX client.
FMX_SUCCESS | Success |