FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
Miscellaneous utility functions for demomod. More...
#include "demomod.h"
Go to the source code of this file.
Functions | |
FUNCTION void | CheckTable (char *AgentARSName) |
Check to make sure the demomod and demomod_ars tables exists. More... | |
FUNCTION void | Char2Hex (char *InBuf, int NumBytes, char *OutBuf) |
Convert a character buffer to a hex string. More... | |
FUNCTION void | ExitNow (int ExitVal) |
Exit function. This does all cleanup and should be used instead of calling exit() or main() return. More... | |
Variables | |
psqlCopy_t | psqlcpy |
fo_sqlCopy struct used for fast data insertion | |
PGconn * | pgConn |
Database connection. More... | |
Miscellaneous utility functions for demomod.
Definition in file utils.c.
FUNCTION void Char2Hex | ( | char * | InBuf, |
int | NumBytes, | ||
char * | OutBuf | ||
) |
FUNCTION void CheckTable | ( | char * | AgentARSName | ) |
Check to make sure the demomod and demomod_ars tables exists.
If they don't, then create them. This is also where you would make any table changes for new versions if you aren't part of the fossology release (which uses core-schema.dat).
AgentARSName | Name of _ars table |
FUNCTION void ExitNow | ( | int | ExitVal | ) |
PGconn* pgConn |