FOSSology  4.4.0
Open Source License Compliance by Open Source Software
snippet_scan.h File Reference

scanoss header More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <signal.h>
#include <libgen.h>
#include <time.h>
#include <sys/wait.h>
#include <libfossology.h>
Include dependency graph for snippet_scan.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAXCMD   5000
 
#define MAXLENGTH   256
 

Functions

int ProcessUpload (long upload_pk, char *tempFolder)
 
void Usage (char *Name)
 Say how to run this program. More...
 
int runScan (char *path, char **licenses, unsigned char *purl, unsigned char *url, unsigned char *matchType, unsigned char *oss_lines, unsigned char *filePath)
 
void loadDeprecated ()
 

Variables

PGconn * db_conn
 the connection to Database More...
 

Detailed Description

scanoss header

snippet_scan.h

SCANOSS Scanner interface for SCANOSS Agent for Fossology

Copyright (C) 2018-2022 SCANOSS.COM

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Definition in file snippet_scan.h.

Function Documentation

◆ Usage()

void Usage ( char *  Name)

Say how to run this program.

Print usage of bucket agent

Parameters
NameAbsolute path of agent

Many agents permit running from the command-line for testing. At minimum, you need "-i" to initialize the DB and exit.

Say how to run this program.

Parameters
Name- the name of the executable, usually it is mimetype

Say how to run this program.

Parameters
NamePath to nomos binary

Print usage of bucket agent

Parameters
NameAbsolute path of agent

Many agents permit running from the command-line for testing. At minimum, you need "-i" to initialize the DB and exit.

Say how to run this program.

Parameters
Name- the name of the executable, usually it is mimetype

Say how to run this program.

Parameters
NamePath to nomos binary

Usage():

Print usage of bucket agent

Parameters
NameAbsolute path of agent

Many agents permit running from the command-line for testing. At minimum, you need "-i" to initialize the DB and exit.

Say how to run this program.

Parameters
Name- the name of the executable, usually it is mimetype

Say how to run this program.

Parameters
NamePath to nomos binary

Usage():

Say how to run this program.

Usage():

Say how to run this program.

Usage():

Parameters
NamePath of the binary

Print usage of bucket agent

Parameters
NameAbsolute path of agent

Many agents permit running from the command-line for testing. At minimum, you need "-i" to initialize the DB and exit.

Say how to run this program.

Parameters
Name- the name of the executable, usually it is mimetype

Say how to run this program.

Parameters
NamePath to nomos binary

Usage():

Say how to run this program.

Usage():

Say how to run this program.

Usage():

Parameters
NamePath of the binary

Say how to run this program.

Parameters
Filename(executable argv[0] name)

Say how to run this program.

Parameters
NameThe name of the executable, usually it is wget_agent

Definition at line 561 of file adj2nest.c.

Variable Documentation

◆ db_conn

PGconn* db_conn
extern

the connection to Database

the connection to Database

Definition at line 22 of file pkgagent.c.