FOSSology  4.4.0
Open Source License Compliance by Open Source Software
process.c File Reference

Functions to process a single file and process an upload. More...

#include "demomod.h"
Include dependency graph for process.c:

Go to the source code of this file.

Functions

FUNCTION int ProcessFile (char *FilePath, pFileResult_t FileResult)
 Process a single file - read the first 32 bytes. More...
 
FUNCTION int ProcessUpload (int upload_pk, int agent_fk)
 Process a single upload - read the first 32 bytes in each file. More...
 

Variables

psqlCopy_t psqlcpy
 fo_sqlCopy struct used for fast data insertion
 
PGconn * pgConn
 Database connection. More...
 

Detailed Description

Functions to process a single file and process an upload.

Definition in file process.c.

Function Documentation

◆ ProcessFile()

FUNCTION int ProcessFile ( char *  FilePath,
pFileResult_t  FileResult 
)

Process a single file - read the first 32 bytes.

Parameters
FilePathPath of the file to read.
FileResultStructure to save the file result (32 bytes)
Returns
0 if success, may also write fatal error to stderr.

Definition at line 24 of file process.c.

◆ ProcessUpload()

FUNCTION int ProcessUpload ( int  upload_pk,
int  agent_fk 
)

Process a single upload - read the first 32 bytes in each file.

Parameters
upload_pk
agent_fkversion of the agent that is processing this upload
Returns
0 if success, may also write fatal error to stderr.

Definition at line 61 of file process.c.

Variable Documentation

◆ pgConn

PGconn* pgConn
extern

Database connection.

Database connection.

Definition at line 86 of file adj2nest.c.