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_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)
 List files for a compound key.
static unsigned int scanFilesByKeyModule (FMX_Connection *ucb, unsigned int key, const char *dir, FMX_cb_scanFilesByKey *rtn, void *prm)
 List files for a module key.
static unsigned int scanFilesByKeySimple (FMX_Connection *ucb, unsigned int key, const char *dir, FMX_cb_scanFilesByKey *rtn, void *prm)
 List files for a simple 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.
unsigned int FMX_scanFilesByKey (FMX_Connection *ucb, unsigned int key, FMX_cb_scanFilesByKey *rtn, void *prm)
 Initialize the FMX client.

Detailed Description

Command interfaces.

CVS $Id: FMX_command.c,v 1.2 2007/01/31 22:41:12 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) Connection handle
key (in) File 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) 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_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

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

List files for a compound key.

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

List files for a module key.

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

List files for a simple key.

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


Generated on Sat Apr 14 01:41:43 2007 by  doxygen 1.4.4