diff options
Diffstat (limited to 'toxdns/toxdns.h')
-rw-r--r-- | toxdns/toxdns.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/toxdns/toxdns.h b/toxdns/toxdns.h index 90b74281..06071b82 100644 --- a/toxdns/toxdns.h +++ b/toxdns/toxdns.h | |||
@@ -24,6 +24,10 @@ | |||
24 | #ifndef TOXDNS_H | 24 | #ifndef TOXDNS_H |
25 | #define TOXDNS_H | 25 | #define TOXDNS_H |
26 | 26 | ||
27 | #ifdef __cplusplus | ||
28 | extern "C" { | ||
29 | #endif | ||
30 | |||
27 | #include <stdint.h> | 31 | #include <stdint.h> |
28 | 32 | ||
29 | /* Clients are encouraged to set this as the maximum length names can have. */ | 33 | /* Clients are encouraged to set this as the maximum length names can have. */ |
@@ -85,4 +89,8 @@ int tox_generate_dns3_string(void *dns3_object, uint8_t *string, uint16_t string | |||
85 | int tox_decrypt_dns3_TXT(void *dns3_object, uint8_t *tox_id, uint8_t *id_record, uint32_t id_record_len, | 89 | int tox_decrypt_dns3_TXT(void *dns3_object, uint8_t *tox_id, uint8_t *id_record, uint32_t id_record_len, |
86 | uint32_t request_id); | 90 | uint32_t request_id); |
87 | 91 | ||
92 | #ifdef __cplusplus | ||
93 | } | ||
94 | #endif | ||
95 | |||
88 | #endif | 96 | #endif |