diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-07-09 13:40:36 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-09 20:36:39 +0000 |
commit | c8697ccc20e12b0f4a2394c10f01ce147eeca269 (patch) | |
tree | 88a2fbf4455b9fdfc58d15865340b1a184191483 /toxcore/util.h | |
parent | 751d0948abfd69629d32fabb1f505ff7ad7fb078 (diff) |
Move `load_state` and its helper functions to their own module.
Diffstat (limited to 'toxcore/util.h')
-rw-r--r-- | toxcore/util.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/toxcore/util.h b/toxcore/util.h index 3979cefe..c4d55f12 100644 --- a/toxcore/util.h +++ b/toxcore/util.h | |||
@@ -51,17 +51,6 @@ uint32_t id_copy(uint8_t *dest, const uint8_t *src); /* return value is CLIENT_I | |||
51 | void host_to_net(uint8_t *num, uint16_t numbytes); | 51 | void host_to_net(uint8_t *num, uint16_t numbytes); |
52 | #define net_to_host(x, y) host_to_net(x, y) | 52 | #define net_to_host(x, y) host_to_net(x, y) |
53 | 53 | ||
54 | uint16_t lendian_to_host16(uint16_t lendian); | ||
55 | #define host_tolendian16(x) lendian_to_host16(x) | ||
56 | |||
57 | void host_to_lendian32(uint8_t *dest, uint32_t num); | ||
58 | void lendian_to_host32(uint32_t *dest, const uint8_t *lendian); | ||
59 | |||
60 | /* state load/save */ | ||
61 | typedef int (*load_state_callback_func)(void *outer, const uint8_t *data, uint32_t len, uint16_t type); | ||
62 | int load_state(load_state_callback_func load_state_callback, const Logger *log, void *outer, | ||
63 | const uint8_t *data, uint32_t length, uint16_t cookie_inner); | ||
64 | |||
65 | /* Returns -1 if failed or 0 if success */ | 54 | /* Returns -1 if failed or 0 if success */ |
66 | int create_recursive_mutex(pthread_mutex_t *mutex); | 55 | int create_recursive_mutex(pthread_mutex_t *mutex); |
67 | 56 | ||