19#include "../common/common.h"
30 char solution_name[] =
"solution/solution_test.rprj";
34 printf(
"Select the verbosity [0-1]:");
35 verbosity = getchar() ==
'0' ? 0 : 1;
38 printf(
"Initialize the SqueezeBrains library\n");
43 for(
int t=1; t <= 6; t+=5)
45 printf(
"----------------------------------------------------------------------\n");
46 printf(
"Test all the project in the solution with thread number equal to %d\n", t);
47 printf(
"----------------------------------------------------------------------\n");
67 printf(
"ERROR: you cannot to use the project\n");
71 printf(
"WARNING: you can use the project but with some limitations\n");
75 printf(
"OK: you can use the project without any limitations\n");
100 printf(
"Release SqueezeBrains library\n");
103 printf(
"Press ENTER to terminate\n");
#define CHECK_FN_GOTO(function)
sb_t_err
Errors code enum.
sb_t_err sb_release(void)
Releases all the resources allocates in the library.
sb_t_err sb_init(const char *const license_file)
Initializes the SB library.
void * SB_HANDLE
HANDLE definition.
#define SB_INIT_NO_LICENSE_KEY
Use this define with sb_init in order to not manage license keys.
sb_t_err sb_license_configuration_check(SB_HANDLE module, sb_t_license_configuration_id configuration_id, char **const msg)
Checks if the project can be used with a license configuration.
const char * sb_license_format_configuration(sb_t_license_configuration_id configuration)
Returns the string of the license configuration.
sb_t_license_configuration_id
Enumerations of the license configurations.
@ SB_LICENSE_CONFIGURATION_NUMBER
Number of configurations.
void sb_free(void *ptr)
Deallocates a memory block.
sb_t_err sb_par_destroy(sb_t_par **const par)
Destroys the project parameters structure.
sb_t_err sb_project_set_par(SB_HANDLE handle, const sb_t_par *const par)
Sets the parameters structure into the project handle.
sb_t_err sb_project_load(SB_HANDLE *phandle, const char *const solution_file, const char *const project_uuid, sb_t_project_mode mode)
Loads an existing project from a solution file.
sb_t_err sb_project_destroy(SB_HANDLE *phandle)
Frees all the resources of the project handle.
sb_t_err sb_project_get_par(SB_HANDLE handle, sb_t_par **const par)
Retrieves the project parameters structure.
@ SB_PROJECT_MODE_DETECTION_ONLY
Load/save the minimum module information to allow detection.
sb_t_err sb_solution_get_info(const char *const solution_file, sb_t_solution_info **const solution)
Returns the information contained in the solution_file.
sb_t_err sb_solution_destroy_info(sb_t_solution_info **const solution)
Destroys the structure of the solution information.
int num_threads
Maximum number of OpenMP threads that detection can use.
char name[SB_PAR_STRING_LEN]
Project name.
char uuid[SB_PROJECT_UUID_LEN]
Project UUID.
sb_t_project_info * info
Array of solution project information.
int size
Number of projects.
sb_t_projects_info projects
Array of the projects info.