FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
externs.h
Go to the documentation of this file.
1 /*******************************************************************
2  Copyright (C) 2011 Hewlett-Packard Development Company, L.P.
3 
4  This program is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public License
6  version 2 as published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16  *******************************************************************/
21 #ifndef EXTERNS_H
22 #define EXTERNS_H
23 extern cmdlist CMD[];
24 extern int Verbose;
25 extern int Quiet;
26 extern int UnlinkSource;
27 extern int UnlinkAll;
28 extern int ForceContinue;
29 extern int ForceDuplicate;
30 extern int IgnoreSCMData;
31 extern int PruneFiles;
32 extern int SetContainerArtifact;
33 extern FILE *ListOutFile;
34 extern int ReunpackSwitch;
35 
36 /* for the repository */
37 extern int UseRepository;
38 extern char REP_GOLD[16];
39 extern char REP_FILES[16];
40 
41 extern char UploadFileName[FILENAME_MAX];
42 
43 /*** For DB queries ***/
44 extern char *Pfile;
45 extern char *Pfile_Pk;
46 extern char *Upload_Pk;
47 extern PGconn *pgConn;
48 extern int agent_pk;
49 extern char SQL[MAXSQL];
50 extern char uploadtree_tablename[19];
51 extern magic_t MagicCookie;
52 
53 extern unpackqueue Queue[MAXCHILD+1];
54 extern int MaxThread;
55 extern int Thread;
56 
57 /*** Global Stats (for summaries) ***/
58 extern long TotalItems;
59 extern int TotalFiles;
60 extern int TotalCompressedFiles;
61 extern int TotalDirectories;
62 extern int TotalContainers;
63 extern int TotalArtifacts;
64 #endif
65 
int Quiet
Run in quiet mode?
int TotalFiles
Number of regular files.
char SQL[MAXSQL]
SQL query to execute.
Definition: adj2nest.c:90
Queue for files to be unpacked.
Definition: ununpack.h:93
unpackqueue Queue[MAXCHILD+1]
Manage children.
int Thread
Number of threads in execution.
int TotalCompressedFiles
Number of compressed files.
char * Pfile
Pfile name (SHA1.MD5.Size)
FILE * ListOutFile
File to store unpack list.
char * Pfile_Pk
Pfile pk in DB.
int TotalArtifacts
Number of artifacts.
int Verbose
Global verbose level.
Definition: util.c:28
int IgnoreSCMData
1: Ignore SCM data, 0: dont ignore it.
char UploadFileName[FILENAME_MAX]
Upload file name.
char uploadtree_tablename[19]
upload.uploadtree_tablename
Definition: adj2nest.c:112
cmdlist CMD[]
Global command table.
Command table's single row.
Definition: ununpack.h:147
int ReunpackSwitch
Set if the uploadtree records are missing from db.
magic_t MagicCookie
Magic Cookie.
Definition: finder.c:34
int ForceDuplicate
When using db, should it process duplicates?
int UseRepository
Using files from the repository?
int PruneFiles
Remove links? >1 hard links, zero files, etc.
int TotalContainers
Number of containers.
int UnlinkSource
Remove recursive sources after unpacking?
PGconn * pgConn
DB connection.
Definition: adj2nest.c:98
char * Upload_Pk
Upload pk in DB.
char REP_FILES[16]
Files repository name.
char REP_GOLD[16]
Gold repository name.
int TotalDirectories
Number of directories.
int MaxThread
Value between 1 and MAXCHILD.
int agent_pk
Agent pk in DB.
long TotalItems
Number of records inserted.
int UnlinkAll
Remove ALL unpacked files when done (clean up)?
int ForceContinue
Force continue when unpack tool fails?
int SetContainerArtifact
Should initial container be an artifact?