FOSSology  4.4.0
Open Source License Compliance by Open Source Software
license.h
1 /*
2  Author: Daniele Fognini, Andreas Wuerl
3  SPDX-FileCopyrightText: © 2013-2014 Siemens AG
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
7 
8 #ifndef MONK_AGENT_LICENSE_H
9 #define MONK_AGENT_LICENSE_H
10 
11 #include "database.h"
12 #include "monk.h"
13 
14 int isIgnoredLicense(const License* license);
15 
17 #define license_index(licenses, index) (&g_array_index((licenses), License, (index)))
18 
19 Licenses* extractLicenses(fo_dbManager* dbManager, PGresult* licensesResult, unsigned minAdjacentMatches, unsigned maxLeadingDiff);
20 Licenses* buildLicenseIndexes(GArray* licenses, unsigned minAdjacentMatches, unsigned maxLeadingDiff);
21 void licenses_free(Licenses* licenses);
22 const GArray* getLicenseArrayFor(const Licenses* licenses, unsigned searchPos, const GArray* textTokens, unsigned textStart);
23 const GArray* getShortLicenseArray(const Licenses* licenses);
24 
25 
26 #endif // MONK_AGENT_LICENSE_H
fo_dbManager * dbManager
fo_dbManager object
Definition: process.c:16
Definition: monk.h:55
Definition: monk.h:67
Definition: nomos.h:426