Skip to content

Commit 419d783

Browse files
committed
docs: Public headers, tox -> Tox
1 parent 5c8aa65 commit 419d783

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

toxav/toxav.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* SPDX-License-Identifier: GPL-3.0-or-later
2-
* Copyright © 2016-2018 The TokTok team.
2+
* Copyright © 2016-2024 The TokTok team.
33
* Copyright © 2013-2015 Tox project.
44
*/
55

@@ -24,22 +24,22 @@
2424
* @section av_threading Threading implications
2525
*
2626
* Only toxav_iterate is thread-safe, all other functions must run from the
27-
* tox thread.
27+
* Tox thread.
2828
*
2929
* Important exceptions are the `*_iterate` and `*_iterate_interval`
3030
* functions. You have to choose either the single thread or the multi thread
3131
* functions and read their documentation.
3232
*
3333
* A common way to run ToxAV (multiple or single instance) is to have a thread,
34-
* separate from tox instance thread, running a simple toxav_iterate loop,
34+
* separate from Tox instance thread, running a simple toxav_iterate loop,
3535
* sleeping for `toxav_iteration_interval * milliseconds` on each iteration.
3636
*
37-
* An important thing to note is that events are triggered from both tox and
38-
* toxav thread (see above). Audio and video receive frame events are triggered
39-
* from toxav thread while all the other events are triggered from tox thread.
37+
* An important thing to note is that events are triggered from both Tox and
38+
* ToxAV thread (see above). Audio and video receive frame events are triggered
39+
* from ToxAV thread while all the other events are triggered from Tox thread.
4040
*
4141
* Tox thread has priority with mutex mechanisms. Any api function can
42-
* fail if mutexes are held by tox thread in which case they will set SYNC
42+
* fail if mutexes are held by Tox thread in which case they will set SYNC
4343
* error code.
4444
*
4545
* @subsection av_multi_threading Separate audio and video threads
@@ -737,7 +737,7 @@ void toxav_callback_video_receive_frame(ToxAV *av, toxav_video_receive_frame_cb
737737
#ifndef APIGEN_IGNORE
738738

739739
/***
740-
* NOTE Compatibility with old toxav group calls. TODO(iphydf): remove
740+
* NOTE Compatibility with old ToxAV group calls. TODO(iphydf): remove
741741
*
742742
* TODO(iphydf): Use proper new API guidelines for these. E.g. don't use inline
743743
* function types, don't have per-callback userdata, especially don't have one
@@ -751,7 +751,7 @@ typedef void toxav_group_audio_cb(Tox *tox, uint32_t groupnumber, uint32_t peern
751751
typedef void toxav_audio_data_cb(void *tox, uint32_t groupnumber, uint32_t peernumber, const int16_t pcm[],
752752
uint32_t samples, uint8_t channels, uint32_t sample_rate, void *userdata);
753753

754-
/** @brief Create a new toxav group.
754+
/** @brief Create a new ToxAV group.
755755
*
756756
* @return group number on success.
757757
* @retval -1 on failure.

toxcore/tox.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ struct Tox_Options {
642642
size_t savedata_length;
643643

644644
/**
645-
* Logging callback for the new tox instance.
645+
* Logging callback for the new Tox instance.
646646
*/
647647
tox_log_cb *log_callback;
648648

@@ -905,7 +905,7 @@ Tox *tox_new(const Tox_Options *options, Tox_Err_New *error);
905905
void tox_kill(Tox *tox);
906906

907907
/**
908-
* @brief Calculates the number of bytes required to store the tox instance with
908+
* @brief Calculates the number of bytes required to store the Tox instance with
909909
* tox_get_savedata.
910910
*
911911
* This function cannot fail. The result is always greater than 0.
@@ -915,11 +915,12 @@ void tox_kill(Tox *tox);
915915
size_t tox_get_savedata_size(const Tox *tox);
916916

917917
/**
918-
* @brief Store all information associated with the tox instance to a byte array.
918+
* @brief Store all information associated with the Tox instance to a byte
919+
* array.
919920
*
920-
* @param savedata A memory region large enough to store the tox instance
921-
* data. Call tox_get_savedata_size to find the number of bytes required. If this parameter
922-
* is NULL, this function has no effect.
921+
* @param savedata A memory region large enough to store the Tox instance
922+
* data. Call tox_get_savedata_size to find the number of bytes required. If
923+
* this parameter is NULL, this function has no effect.
923924
*/
924925
void tox_get_savedata(const Tox *tox, uint8_t savedata[]);
925926

toxcore/tox_private.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* SPDX-License-Identifier: GPL-3.0-or-later
2-
* Copyright © 2016-2020 The TokTok team.
2+
* Copyright © 2016-2024 The TokTok team.
33
* Copyright © 2013 Tox project.
44
*/
55

@@ -98,7 +98,7 @@ typedef enum Tox_Err_Dht_Get_Nodes {
9898
TOX_ERR_DHT_GET_NODES_OK,
9999

100100
/**
101-
* UDP is disabled in tox options; the DHT can only be queried when UDP is enabled.
101+
* UDP is disabled in Tox options; the DHT can only be queried when UDP is enabled.
102102
*/
103103
TOX_ERR_DHT_GET_NODES_UDP_DISABLED,
104104

0 commit comments

Comments
 (0)