Functions to process a single file and process an upload.
More...
#include "demomod.h"
Go to the source code of this file.
Functions to process a single file and process an upload.
Definition in file process.c.
◆ ProcessFile()
FUNCTION int ProcessFile |
( |
char * |
FilePath, |
|
|
pFileResult_t |
FileResult |
|
) |
| |
Process a single file - read the first 32 bytes.
- Parameters
-
FilePath | Path of the file to read. |
FileResult | Structure 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_fk | version 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.
◆ pgConn
Database connection.
Database connection.
Definition at line 86 of file adj2nest.c.