-
Notifications
You must be signed in to change notification settings - Fork 292
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 Tox_Options struct opaque: remove definition from tox.h, leaving only declaration #273
Comments
Agreed, but I don't think v0.1 is necessary, this could be merged in much earlier than that. This is an easy beneficial change. Alternatively, we could drop the idea of making clients manage the options at all, and either A) rewrite |
A) Is bad because nothing prevents users from trying to set options after B) Pretty much the same issue as in A). I like the idea of the |
@nurupo I renamed this to something more obvious, and moved the milestone to v0.0.5. If we're going to do this. We might as well get it over with now. Edit -- uTox already supports this method. |
For v0.0.5:
For v0.1, we can then actually remove it. Its existence doesn't do much harm at the moment, and delaying its removal gives client and bindings authors time to update. CC: @zetok @SkyzohKey for client updates. |
AFAICS, this will need:
|
I'd update Ricin once I know what changes needs to be made. :) |
#333 does point 4 (tox.c using accessor functions). |
There is no reason for
Tox_Options
not to be an opaque pointer. Accessing the struct's members directly breaks ABI compatibility and adding members to the struct in the middle of it, as it's done in #226 doesn't, help that cause much.The text was updated successfully, but these errors were encountered: