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

Rework element creation #289

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

robUx4
Copy link
Contributor

@robUx4 robUx4 commented Mar 2, 2024

To create a bare EbmlElement we don't need an actual element as in CreateElement(). We just need an EbmlCallbacks which may or may not come from an element.

For now CreateElement() is kept for backward compatibility but it can be replaced by an EBML_CREATE() call, which can call CreateElement() when compiled with libebml 1.x.

@robUx4 robUx4 added api-break breaks the API (e.g. programs using it will have to adjust their source code) abi-break breaks the ABI (e.g. programs linked against the library have to be recompiled) labels Mar 2, 2024
@robUx4 robUx4 force-pushed the create_semantic branch 2 times, most recently from 8dddf21 to 0b334d4 Compare March 3, 2024 06:43
In all cases we were creating an element with the empty constructor.
This is available via the EbmlCallbacks.
We don't need a specific function for that.
EBML_SEM_CREATE should be used instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abi-break breaks the ABI (e.g. programs linked against the library have to be recompiled) api-break breaks the API (e.g. programs using it will have to adjust their source code)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant