-
Notifications
You must be signed in to change notification settings - Fork 291
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 ToxAV stateless #130
Make ToxAV stateless #130
Conversation
27efe0e
to
91ec4fb
Compare
23199d3
to
c98a168
Compare
Review status: 0 of 20 files reviewed at latest revision, 6 unresolved discussions, some commit checks failed. other/apidsl/toxav.in.h, line 34 at r1 (raw file):
Why is this in the public API? other/apidsl/toxav.in.h, line 221 at r1 (raw file):
toxav/audio.c, line 99 at r1 (raw file):
I very much dislike "fxn" as abbreviation. Also, none of the other callbacks have this suffix. None of the callbacks have the namespace prefixed, either, and that doesn't really make sense inside structs (since they have their own scope). How about naming this toxav/toxav.c, line 78 at r1 (raw file):
Why was this moved? toxav/toxav.c, line 80 at r1 (raw file):
(Awesome comment, I wouldn't have figured out that toxcore/Messenger.c, line 1714 at r1 (raw file):
Rename to Comments from Reviewable |
other/apidsl/tox.in.h, line 1094 at r1 (raw file):
Why? The correct behaviour would be to have the core automatically end the call before deleting the friend. Comments from Reviewable |
other/apidsl/tox.in.h, line 1094 at r1 (raw file):
|
Review status: 0 of 20 files reviewed at latest revision, 7 unresolved discussions, some commit checks failed. other/apidsl/tox.in.h, line 1094 at r1 (raw file):
|
Review status: 0 of 20 files reviewed at latest revision, 7 unresolved discussions, some commit checks failed. other/apidsl/toxav.in.h, line 34 at r1 (raw file):
|
Review status: 0 of 20 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. toxav/toxav.c, line 78 at r2 (raw file):
Can you rename these things to Comments from Reviewable |
Review status: 0 of 20 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. Comments from Reviewable |
Reviewed 12 of 20 files at r1, 8 of 8 files at r2. Comments from Reviewable |
32e7e6b
to
68b8d66
Compare
Review status: 1 of 20 files reviewed at latest revision, 2 unresolved discussions. toxav/toxav.c, line 78 at r2 (raw file):
|
Reviewed 18 of 19 files at r3, 1 of 1 files at r4. Comments from Reviewable |
Reviewed 1 of 20 files at r1, 17 of 19 files at r3, 1 of 1 files at r4. Comments from Reviewable |
Reviewed 1 of 19 files at r3. Comments from Reviewable |
Review status: all files reviewed at latest revision, 3 unresolved discussions. toxav/toxav.c, line 82 at r4 (raw file):
This is incorrect. Bit rate status is not bit rate change. It is the "advice" callback. Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions. toxav/toxav.c, line 82 at r4 (raw file):
|
Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. toxav/toxav.c, line 82 at r4 (raw file):
|
9e134ad
to
4615275
Compare
Review status: 19 of 21 files reviewed at latest revision, 2 unresolved discussions. toxav/toxav.c, line 82 at r4 (raw file):
|
4615275
to
ebaa768
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hate reviewable... Anyways I failed to see the point of this change.
@@ -36,16 +36,18 @@ | |||
#include <stdlib.h> | |||
#include <string.h> | |||
|
|||
#define TOXAV_PAIR(TYPE1__, TYPE2__) struct { TYPE1__ first; TYPE2__ second; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this prefixed with TOXAV? It's not a part of the public API
And by change I mean this PR. |
@mannol: See #40 for the reason for this PR. Review status: 19 of 21 files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. Comments from Reviewable |
This way you loose the ability to provide different user data pointers per callback; I can see that being useful. Anyways, it mostly effects upper levels so this (almost) LGTM. |
Yes, that is an intentional tradeoff. This way the API is simplified for the common case (most clients either don't use userdata or use a single userdata for all callbacks) and much easier to write FFI (foreign language bindings) for. It also makes it easier to reason about behaviour: currently, any function could potentially invoke a callback. Turns out, indeed some group functions directly invoke callbacks, so not every callback comes from Review status: 19 of 21 files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. Comments from Reviewable |
Right. Once the |
ebaa768
to
04066b7
Compare
Comments from Reviewable |
Reviewed 1 of 20 files at r1, 18 of 19 files at r3, 1 of 2 files at r5, 1 of 1 files at r6. Comments from Reviewable |
Reviewed 1 of 20 files at r1, 18 of 19 files at r3, 1 of 2 files at r5, 1 of 1 files at r6. Comments from Reviewable |
8db8c25
to
21f8db1
Compare
unassigned @tux3 and @cleverca22 for being idle. 4/6 approved at time of merge. |
See #40.
This change is