30 extern char SQL[MAXCMD];
42 extern char A[MAXCMD];
46 int ReadLine(FILE *Fin,
char *Line,
int MaxLine);
47 void Usage (
char *Name);
PGresult * DBMime
contents of mimetype table
PGconn * pgConn
Database connection.
int DBFindMime(char *Mimetype)
Find a mime type in the DBMime table.
char A[MAXCMD]
input for this system
void SetEnv(char *S, char *TempFileDir)
Convert input pairs into globals.
void DBCheckMime(char *Filename)
Given a file, check if it has a mime type in the DB.
char SQL[256]
SQL query to execute.
Usage()
Print Usage statement.
int Agent_pk
agent identifier
The main FOSSology C library.
int MaxDBMime
how many rows in DBMime
FILE * FMimetype
for /etc/mime.types
magic_t MagicCookie
for Magic
int ReadLine(FILE *Fin, char *Line, int MaxLine)