Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make get_wall_material_names return material name for one layer id #408

Merged
merged 3 commits into from
Sep 26, 2024

Conversation

alexandrebbruno
Copy link
Member

PR description:

  • There was a bug at get_wall_material_names which was returning the wall names for all layers at once with char** (The char** doesn't know how many steps should be done to find the next wall name, since it does not have information about the length of the name).
    Solution: make the get_wall_material_name only return one wall name at once, by making the user provide the layer_id.

# Conflicts:
#	src/alfasim_sdk/alfasim_sdk_api/api.h
#	src/alfasim_sdk/alfasim_sdk_api/detail/api_pointers.h
#	src/alfasim_sdk/alfasim_sdk_api/detail/bootstrap_linux.h
#	src/alfasim_sdk/alfasim_sdk_api/detail/bootstrap_win.h
Copy link

@alexandrebbruno alexandrebbruno merged commit 7763eb0 into master Sep 26, 2024
12 checks passed
@return An #error_code value.
*/
DLL_EXPORT int get_wall_material_names(void* ctx, char*** material_names_in_wall, int control_volume_id, int* size);
DLL_EXPORT int get_wall_material_name(void* ctx, char** material_name, int control_volume_id, int layer_id);
Copy link
Member

@prusse-martin prusse-martin Sep 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the old signature already released?

I ask because if it did be released this will probably cause a binary incompatibility. No?

The API has been broken, but that is kind of "OK". The next release will change major version to indicate we are moving back to semantic versioning. Otherwise major version update would be required to indicate we did break the old API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants