GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > FMX / V3-2-4

Constituent: fmxshr     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

FMX_pubdefs.h File Reference

Public definitions for the ITC package. More...

This graph shows which files directly or indirectly include this file:


Defines

#define FMX_L_ENUM_TABLES   (6)
 Number of enumeration tables FMX recognizes.

Typedefs

typedef _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 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)
 Signature for a FMX_scanFilesByKey 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...

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)
 Initialize the FMX client.
void FMX_shutdown (void)
 Shut down the FMX client.

Detailed Description

Public definitions for the ITC package.

CVS $Id: FMX_pubdefs.h,v 1.2 2007/04/13 20:11:25 apw Exp $
Author:
A.P.Waite

Enumeration Type Documentation

enum _FMX_EnumTableList
 

Enumeration of enumeration tables FMX recognizes (!).

Enumerator:
FMX_ENUM_TABLE_DEVICE  Device table
FMX_ENUM_TABLE_FILETYPE  Filetype table
FMX_ENUM_TABLE_HOST  Host table
FMX_ENUM_TABLE_INSTRUMENT  Instrument table
FMX_ENUM_TABLE_NODE  Node table
FMX_ENUM_TABLE_TAG  Tag table

enum _FMX_FileGroup
 

Enumeration of the groups filetypes can belong to.

Enumerator:
FMX_GRP_UNKNOWN  Unknown filetype membership
FMX_GRP_SIMPLE  Member of group "simple"
FMX_GRP_COMPOUND  Member of group "compound"
FMX_GRP_MODULE  Member of group "module"


Function Documentation

unsigned int FMX_connect FMX_Connection **  con,
const char *  host,
const char *  user,
const char *  pass,
int  port
 

Create a connection to the database.

Parameters:
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
Return values:
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.

Parameters:
ucb (in) User connection block
Return values:
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.

Parameters:
ucb (in) Connection handle
key (in) File key to find
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_initialize void   ) 
 

Initialize the FMX client.

Return values:
FMX_FCBINIT FMX control block already initialized
FMX_ALLOCMEM Cannot allocate memory for FMX control block
FMX_SUCCESS Success

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

Initialize the FMX client.

Parameters:
ucb (in) Connection handle
key (in) File key to list
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

void FMX_shutdown void   ) 
 

Shut down the FMX client.

Return values:
FMX_SUCCESS Success


Generated on Sat Apr 14 01:42:19 2007 by  doxygen 1.4.4