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

Internal API for copy support via extensions #138

Open
dktapps opened this issue Dec 14, 2023 · 0 comments
Open

Internal API for copy support via extensions #138

dktapps opened this issue Dec 14, 2023 · 0 comments

Comments

@dktapps
Copy link
Member

dktapps commented Dec 14, 2023

Currently it's inconvenient to publish shared libraries for the extension, as it may or may not depend on ext-sockets. There's no way to tell whether sockets support is required until the library attempts to be loaded, at which point it will bail out due to symbol loading errors.

It would probably be advantageous for pmmpthread to expose API to allow other extensions to register copy handlers for particular types. Socket copy support would then be moved to a separate extension ext-pmmpthread-sockets, simplifying the distribution process and allowing users to add socket support on their own if they want to.

This might also be useful for supporting other things, such as copying PalettedBlockArray in ext-chunkutils2 without making ext-chunkutils2 depend on pmmpthread or vice versa.

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

No branches or pull requests

1 participant