FOSSology  4.4.0
Open Source License Compliance by Open Source Software
snippet_scan.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-2.0-only
24 #ifndef _SNIPPET_SCAN_H
25 #define _SNIPPET_SCAN_H 1
26 
27 #include <stdlib.h>
28 #include <stdio.h>
29 #include <string.h>
30 #include <ctype.h>
31 #include <signal.h>
32 #include <libgen.h>
33 #include <time.h>
34 
35 #include <sys/wait.h>
36 
37 
38 #include <libfossology.h>
39 
40 #define MAXCMD 5000
41 #define MAXLENGTH 256
42 
43 
44 extern PGconn* db_conn;
45 
46 int ProcessUpload(long upload_pk,char *tempFolder);
47 void Usage(char *Name);
48 int runScan(char *path, char **licenses, unsigned char *purl,unsigned char *url, unsigned char *matchType, unsigned char *oss_lines, unsigned char *filePath);
49 void loadDeprecated();
50 
51 #endif /* _SNIPPET_SCAN_H */
The main FOSSology C library.
void Usage(char *Name)
Say how to run this program.
Definition: adj2nest.c:561
PGconn * db_conn
the connection to Database
Definition: pkgagent.c:22
const char * upload_pk
Definition: sqlstatements.h:82