![]() |
FOSSology
4.6.0-rc1
Open Source License Compliance by Open Source Software
|
Entry point for compatibility agent. More...
#include <stdexcept>#include "compatibility.hpp"
Go to the source code of this file.
Macros | |
| #define | return_sched(retval) |
Functions | |
| void | check_file_compatibility (const string &lic_type_loc, const string &rule_loc, bool json, const string &lic_result_json, const string &main_license) |
| Check and print license compatibility of scan result. More... | |
| int | main (int argc, char **argv) |
| vector< tuple< string, string, bool > > | checkCompatibility (const set< string > &license_set, const unordered_map< string, string > &license_map, const map< tuple< string, string, string, string >, bool > &rule_list, map< tuple< string, string >, bool > &scan_results) |
| find the compatibility for cli mode More... | |
Entry point for compatibility agent.
Definition in file compatibility.cc.
| #define return_sched | ( | retval | ) |
Send disconnect to scheduler with retval and return function with retval.
Definition at line 53 of file compatibility.cc.
| void check_file_compatibility | ( | const string & | lic_type_loc, |
| const string & | rule_loc, | ||
| bool | json, | ||
| const string & | lic_result_json, | ||
| const string & | main_license | ||
| ) |
Check and print license compatibility of scan result.
| lic_type_loc | Location of CSV holding license types |
| rule_loc | Location of YAML holding rules |
| json | Is JSON output required? |
| lic_result_json | Location of JSON holding scan results |
| main_license | Main license for the package to use |
Definition at line 68 of file compatibility.cc.
| vector<tuple<string, string, bool> > checkCompatibility | ( | const set< string > & | license_set, |
| const unordered_map< string, string > & | license_map, | ||
| const map< tuple< string, string, string, string >, bool > & | rule_list, | ||
| map< tuple< string, string >, bool > & | scan_results | ||
| ) |
find the compatibility for cli mode
| license_set | containing licenses present in the file |
| license_map | map of license name and its type |
| rule_list | Parsed map of YAML rule file |
Definition at line 216 of file compatibility.cc.