-
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
chore: Small API doc fixes #2735
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2735 +/- ##
==========================================
- Coverage 73.12% 73.04% -0.08%
==========================================
Files 149 149
Lines 30516 30516
==========================================
- Hits 22314 22290 -24
- Misses 8202 8226 +24 ☔ View full report in Codecov by Sentry. |
@JFreegman What does it mean when NGC says "core error"? I'm confused by it being named "core". Does that mean it's a toxcore error? Or perhaps it means "a fatal error" -- something horribly went wrong, without specifying what it is, like some sort of a general error? Maybe it's better not to call it a core error but to come up with some other synonym / wording? Lines 3641 to 3644 in 3e05824
Lines 3738 to 3741 in 3e05824
Lines 4890 to 4893 in 3e05824
|
@iphydf Lines 662 to 692 in 3e05824
|
operating_system is experimental. |
@iphydf well, it's not obvious.
I don't see it being marked as experimental in any way. Based on that comment, I would think that it got "renamed to something non-experimental" and "become part of the supported API". |
In the case of join and rejoin, it means Messenger.c failed to create a friend connection for some reason (groupchats use a friend connection for onion/DHT stuff). In the case of invite accept, see: #2736 |
@JFreegman that's one, what about the other two core errors? No plan to rename them to "initiation", "general", "fatal" or anything else, keeping them as "core" errors? |
There is no APIDSL so it shouldn't be mentioned, nor are there old style callbacks that take user data when registering them.
I'm sort of indifferent. I think "core" conveys about as much information as anything else. You can change it if you want. |
Alright, if no one else has an issue with it then I guess let's keep them as "core". |
6ba2320
to
682cc87
Compare
Toxcore public header documentation suffers from an identity crisis. It calls itself three different things: Tox, toxcore and Core, depending on the time period the comment was written in, the author of the comment, whether the comment refers to the Tox instance or the Tox[core] library (it doesn't seem like anything refers to the Tox protocol?), and maybe some other nuances. No one really calls it Core though, so this commit replaces the use of Core with Tox/toxcore, and edits other instances of the documentation referring to the library where I thought rewording was in order, though in the end it's more of a subjective personal preference.
Is there a reason we're putting this in the .19 release? Documentation cleanup isn't critical for the release is it? |
@JFreegman The very first paragraphs of tox.h talk about apidsl, which we no longer use, about The PR is ready to be merged. It looks like we are waiting on @iphydf to mark his comments as resolved and that's it. Any day now. Weird how he approved the PR but didn't resolve them. Or perhaps he expects me to mark them as resolved? |
I usually mark them as resolved myself when I resolve them. |
Yes please resolve it for me. I'm on the road and don't have a laptop so I'm doing this all on the phone, where it's hard to find that comment. I approved it, it looks good to me, no comments need addressing. |
API docs are a bit inconsistent:
@param
are listed after@return
@breif
for some reason when all other functions do. Why?This PR addresses only the first 4 points, and one case of the 5th point that I have noticed by an accident.
5-8 points are not addressed. Would be nice if someone could address those.
This change is