mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
a0a317db49
tox_unpack is for unpacking Tox types, and bin_unpack is for unpacking ints and binary data. This prevents us from creating dependency cycles due to tox_unpack depending on tox.h
20 lines
729 B
C
20 lines
729 B
C
/* SPDX-License-Identifier: GPL-3.0-or-later
|
|
* Copyright © 2022 The TokTok team.
|
|
*/
|
|
|
|
#ifndef C_TOXCORE_TOXCORE_TOX_UNPACK_H
|
|
#define C_TOXCORE_TOXCORE_TOX_UNPACK_H
|
|
|
|
#include <msgpack.h>
|
|
|
|
#include "attributes.h"
|
|
#include "tox.h"
|
|
|
|
non_null() bool tox_unpack_conference_type(Tox_Conference_Type *val, const msgpack_object *obj);
|
|
non_null() bool tox_unpack_connection(Tox_Connection *val, const msgpack_object *obj);
|
|
non_null() bool tox_unpack_file_control(Tox_File_Control *val, const msgpack_object *obj);
|
|
non_null() bool tox_unpack_message_type(Tox_Message_Type *val, const msgpack_object *obj);
|
|
non_null() bool tox_unpack_user_status(Tox_User_Status *val, const msgpack_object *obj);
|
|
|
|
#endif // C_TOXCORE_TOXCORE_TOX_UNPACK_H
|