summaryrefslogtreecommitdiff
path: root/toxcore/util.h
diff options
context:
space:
mode:
authorirungentoo_trip <irungentoo@gmail.com>2014-10-24 18:05:11 -0700
committerirungentoo_trip <irungentoo@gmail.com>2014-10-24 18:05:11 -0700
commitc8812d4734bc92be34df076accb3a8e416a94d9d (patch)
tree6667d39cb2fcbd9c8e5174e3768ac185fb5c0a35 /toxcore/util.h
parent9878b441b1d2b175b20d28cc41406280e3cada31 (diff)
parentf73ad4ab05aaf35cd720dffbdc47c28d35d609e1 (diff)
Merge branch 'big_endian_save'
Diffstat (limited to 'toxcore/util.h')
-rw-r--r--toxcore/util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/util.h b/toxcore/util.h
index 7992a985..e90eee0f 100644
--- a/toxcore/util.h
+++ b/toxcore/util.h
@@ -42,6 +42,11 @@ uint32_t id_copy(uint8_t *dest, const uint8_t *src); /* return value is CLIENT_I
42void host_to_net(uint8_t *num, uint16_t numbytes); 42void host_to_net(uint8_t *num, uint16_t numbytes);
43#define net_to_host(x, y) host_to_net(x, y) 43#define net_to_host(x, y) host_to_net(x, y)
44 44
45uint16_t lendian_to_host16(uint16_t lendian);
46#define host_tolendian16(x) lendian_to_host16(x)
47
48void host_to_lendian32(uint8_t *dest, uint32_t num);
49
45/* state load/save */ 50/* state load/save */
46typedef int (*load_state_callback_func)(void *outer, const uint8_t *data, uint32_t len, uint16_t type); 51typedef int (*load_state_callback_func)(void *outer, const uint8_t *data, uint32_t len, uint16_t type);
47int load_state(load_state_callback_func load_state_callback, void *outer, 52int load_state(load_state_callback_func load_state_callback, void *outer,