GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> FMX / V4-0-14 > fmxshr / rhel5-32
General FMX utilities. More...
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <mysql.h>
#include <FMX/FMX_msgs.h>
#include <MDB/MDB_pubdefs.h>
#include <FMX_prvdefs.h>
Functions | |
unsigned int | FMX_commit (FMX_Connection *ucb) |
Commit a SQL transaction. | |
unsigned int | FMX_makeVisible (FMX_Connection *ucb, const char *rel) |
Ensure that a file rele reported by FMX is visible. | |
unsigned int | FMX_rollback (FMX_Connection *ucb) |
Rollback a SQL transaction. |
General FMX utilities.
CVS $Id: FMX_utility.c,v 1.2 2011/03/25 20:42:51 apw Exp $
unsigned int FMX_commit | ( | FMX_Connection * | ucb | ) |
Commit a SQL transaction.
ucb | (in) Connection handle |
FMX_COMTFAIL | SQL "commit" failed |
FMX_SUCCESS | Success |
FMX_UCBNOT | Invalid connection block |
References FMX_freeEnumTable(), FMX_L_ENUM_TABLES, _FMX_Connection::mysql, and _FMX_Connection::self.
unsigned int FMX_makeVisible | ( | FMX_Connection * | ucb, |
const char * | rel | ||
) |
Ensure that a file rele reported by FMX is visible.
ucb | (in) Connection handle |
rel | (in) Name of visible file (FMX_C_FDB relative) |
FMX_SUCCESS | Success |
FMX_UCBNOT | Invalid connection block |
References _FMX_Connection::mysql, and _FMX_Connection::root.
Referenced by findCDMbyKey(), scanFilesByKeyCompound(), scanFilesByKeyModule(), scanFilesByKeySimple(), scanFOFmembers(), and scanSBSmembers().
unsigned int FMX_rollback | ( | FMX_Connection * | ucb | ) |
Rollback a SQL transaction.
ucb | (in) Connection handle |
FMX_ROLLFAIL | SQL "rollback" failed |
FMX_SUCCESS | Success |
FMX_UCBNOT | Invalid connection block |
References FMX_freeEnumTable(), FMX_L_ENUM_TABLES, _FMX_Connection::mysql, and _FMX_Connection::self.
Referenced by FMX_findCDMbyKey(), FMX_scanFilesByKey(), and scanCompoundMembers().