summaryrefslogtreecommitdiff
path: root/protocols/Tox/tox/include
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/tox/include')
-rw-r--r--protocols/Tox/tox/include/toxav.h4
-rw-r--r--protocols/Tox/tox/include/toxdns.h10
2 files changed, 11 insertions, 3 deletions
diff --git a/protocols/Tox/tox/include/toxav.h b/protocols/Tox/tox/include/toxav.h
index e31c7aad1f..34c8be5d25 100644
--- a/protocols/Tox/tox/include/toxav.h
+++ b/protocols/Tox/tox/include/toxav.h
@@ -167,7 +167,7 @@ void toxav_kill(ToxAv *av);
void toxav_register_callstate_callback (ToxAv *av, ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
/**
- * @brief Register callback for recieving audio data
+ * @brief Register callback for receiving audio data
*
* @param av Handler.
* @param callback The callback
@@ -177,7 +177,7 @@ void toxav_register_audio_recv_callback (ToxAv *av, void (*callback)(ToxAv *, in
void *user_data);
/**
- * @brief Register callback for recieving video data
+ * @brief Register callback for receiving video data
*
* @param av Handler.
* @param callback The callback
diff --git a/protocols/Tox/tox/include/toxdns.h b/protocols/Tox/tox/include/toxdns.h
index a0cc323b43..1ecba978e4 100644
--- a/protocols/Tox/tox/include/toxdns.h
+++ b/protocols/Tox/tox/include/toxdns.h
@@ -26,6 +26,10 @@
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* How to use this api to make secure tox dns3 requests:
*
* 1. Get the public key of a server that supports tox dns3.
@@ -61,7 +65,7 @@ void tox_dns3_kill(void *dns3_object);
* This is what the string returned looks like:
* 4haaaaipr1o3mz0bxweox541airydbovqlbju51mb4p0ebxq.rlqdj4kkisbep2ks3fj2nvtmk4daduqiueabmexqva1jc
*
- * returns length of string on sucess.
+ * returns length of string on success.
* returns -1 on failure.
*/
int tox_generate_dns3_string(void *dns3_object, uint8_t *string, uint16_t string_max_len, uint32_t *request_id,
@@ -82,4 +86,8 @@ int tox_generate_dns3_string(void *dns3_object, uint8_t *string, uint16_t string
int tox_decrypt_dns3_TXT(void *dns3_object, uint8_t *tox_id, uint8_t *id_record, uint32_t id_record_len,
uint32_t request_id);
+#ifdef __cplusplus
+}
+#endif
+
#endif