summaryrefslogtreecommitdiff
path: root/toxcore/crypto_core.api.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-01-21 22:38:08 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-02-01 23:35:44 +0000
commit83779a21eaf19bbf6aa5d61d8f59681a306e4f65 (patch)
treeb713524d8ce29ca05500fb95f315de94a4d4ae75 /toxcore/crypto_core.api.h
parentd9413d557696e3aecde9d019e1738e99882d4579 (diff)
Manually serialise RTPHeader struct instead of memcpy.
Diffstat (limited to 'toxcore/crypto_core.api.h')
-rw-r--r--toxcore/crypto_core.api.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/toxcore/crypto_core.api.h b/toxcore/crypto_core.api.h
index 0ba28c0c..bb2c0a13 100644
--- a/toxcore/crypto_core.api.h
+++ b/toxcore/crypto_core.api.h
@@ -28,6 +28,10 @@
28#include <stdbool.h> 28#include <stdbool.h>
29#include <stdint.h> 29#include <stdint.h>
30#include <stdlib.h> 30#include <stdlib.h>
31
32#ifdef __cplusplus
33extern "C" {
34#endif
31%} 35%}
32 36
33/** 37/**
@@ -251,5 +255,9 @@ static void increment_nonce_number(uint8_t[CRYPTO_NONCE_SIZE] nonce, uint32_t ho
251static void new_symmetric_key(uint8_t[CRYPTO_SYMMETRIC_KEY_SIZE] key); 255static void new_symmetric_key(uint8_t[CRYPTO_SYMMETRIC_KEY_SIZE] key);
252 256
253%{ 257%{
258#ifdef __cplusplus
259} // extern "C"
260#endif
261
254#endif /* CRYPTO_CORE_H */ 262#endif /* CRYPTO_CORE_H */
255%} 263%}