FOSSology  4.4.0
Open Source License Compliance by Open Source Software
externs.h
Go to the documentation of this file.
1 /*
2  SPDX-FileCopyrightText: © 2011 Hewlett-Packard Development Company, L.P.
3 
4  SPDX-License-Identifier: GPL-2.0-only
5 */
10 #ifndef EXTERNS_H
11 #define EXTERNS_H
12 extern cmdlist CMD[];
13 extern int Verbose;
14 extern int Quiet;
15 extern int UnlinkSource;
16 extern int UnlinkAll;
17 extern int ForceContinue;
18 extern int ForceDuplicate;
19 extern int IgnoreSCMData;
20 extern int PruneFiles;
21 extern int SetContainerArtifact;
22 extern FILE *ListOutFile;
23 extern int ReunpackSwitch;
24 
25 /* for the repository */
26 extern int UseRepository;
27 extern char REP_GOLD[16];
28 extern char REP_FILES[16];
29 
30 extern char UploadFileName[FILENAME_MAX];
31 
32 /*** For DB queries ***/
33 extern char *Pfile;
34 extern char *Pfile_Pk;
35 extern char *Upload_Pk;
36 extern PGconn *pgConn;
37 extern int agent_pk;
38 extern char SQL[MAXSQL];
39 extern char uploadtree_tablename[19];
40 extern magic_t MagicCookie;
41 
42 extern unpackqueue Queue[MAXCHILD+1];
43 extern int MaxThread;
44 extern int Thread;
45 
46 /*** Global Stats (for summaries) ***/
47 extern long TotalItems;
48 extern int TotalFiles;
49 extern int TotalCompressedFiles;
50 extern int TotalDirectories;
51 extern int TotalContainers;
52 extern int TotalArtifacts;
53 #endif
54 
int SetContainerArtifact
Should initial container be an artifact?
char * Pfile_Pk
Pfile pk in DB.
int ReunpackSwitch
Set if the uploadtree records are missing from db.
int UseRepository
Using files from the repository?
char uploadtree_tablename[19]
upload.uploadtree_tablename
Definition: adj2nest.c:100
int MaxThread
Value between 1 and MAXCHILD.
int UnlinkSource
Remove recursive sources after unpacking?
char * Pfile
Pfile name (SHA1.MD5.Size)
int TotalDirectories
Number of directories.
unpackqueue Queue[MAXCHILD+1]
Manage children.
int Quiet
Run in quiet mode?
int Thread
Number of threads in execution.
int TotalFiles
Number of regular files.
int TotalArtifacts
Number of artifacts.
PGconn * pgConn
DB connection.
Definition: adj2nest.c:86
cmdlist CMD[]
Global command table.
int PruneFiles
Remove links? >1 hard links, zero files, etc.
char SQL[MAXSQL]
SQL query to execute.
Definition: adj2nest.c:78
int TotalContainers
Number of containers.
char UploadFileName[FILENAME_MAX]
Upload file name.
magic_t MagicCookie
Magic Cookie.
Definition: finder.c:23
int Verbose
Global verbose level.
Definition: util.c:19
char * Upload_Pk
Upload pk in DB.
int UnlinkAll
Remove ALL unpacked files when done (clean up)?
char REP_FILES[16]
Files repository name.
FILE * ListOutFile
File to store unpack list.
char REP_GOLD[16]
Gold repository name.
int agent_pk
Agent pk in DB.
long TotalItems
Number of records inserted.
int IgnoreSCMData
1: Ignore SCM data, 0: dont ignore it.
int TotalCompressedFiles
Number of compressed files.
int ForceDuplicate
When using db, should it process duplicates?
int ForceContinue
Force continue when unpack tool fails?
Command table's single row.
Definition: ununpack.h:143
Queue for files to be unpacked.
Definition: ununpack.h:89