![]() |
SqueezeBrains SDK 1.18
|
Solution management interface. More...

Data Structures | |
| struct | sb_t_solution_info |
| Solution info structure. More... | |
Macros | |
| #define | SB_SOLUTION_EXT "rprj" |
| Extension of the SqueezeBrains solution file. | |
Functions | |
| 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. More... | |
| sb_t_err | sb_solution_destroy_info (sb_t_solution_info **const solution) |
| Destroys the structure of the solution information. More... | |
| sb_t_err | sb_solution_set_current_project (const char *const solution_file, const char *const project_uuid) |
| Set current project in the solution_file. More... | |
| sb_t_err | sb_solution_remove_project (const char *const solution_file, const char *const project_uuid) |
| Delete the project with the specified uuid from file. More... | |
| sb_t_err | sb_solution_get_version (const char *const solution_file, sb_t_version *version, char *const version_str, int size_version_str) |
| Gets the version of the solution file. More... | |
Solution management interface.
See Solution and projects management for more information.
| sb_t_err sb_solution_destroy_info | ( | sb_t_solution_info **const | solution | ) |
Destroys the structure of the solution information.
| [in,out] | solution | Pointer to the solution information structure. |
| 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.
Since in an solution file there can be more than one project, the function allows to have the list of existing projects.
| [in] | solution_file | Solution file name. |
| [out] | solution | Pointer to the structure of the solution Information contained in the solution_file. The variable must be destroyed with the function sb_solution_destroy_info . |
| sb_t_err sb_solution_get_version | ( | const char *const | solution_file, |
| sb_t_version * | version, | ||
| char *const | version_str, | ||
| int | size_version_str | ||
| ) |
Gets the version of the solution file.
| [in] | solution_file | Name with path of the solution file. |
| [out] | version | Pointer of the structure. |
| [out] | version_str | Pointer of the string. This parameter can be left to NULL if not necessary. |
| [in] | size_version_str | Size of the version_str string. |
| sb_t_err sb_solution_remove_project | ( | const char *const | solution_file, |
| const char *const | project_uuid | ||
| ) |
Delete the project with the specified uuid from file.
| [in] | solution_file | Filename of the solution. |
| [in] | project_uuid | Project uuid. |
| sb_t_err sb_solution_set_current_project | ( | const char *const | solution_file, |
| const char *const | project_uuid | ||
| ) |
Set current project in the solution_file.
| [in] | solution_file | Solution file name. |
| [in] | project_uuid | UUID of the project to be set as current. |