64 lines
942 B
C++
64 lines
942 B
C++
#pragma once
|
|
|
|
#include <solanaceae/toxcore/tox_key.hpp>
|
|
|
|
namespace Contact::Components {
|
|
|
|
// ====================
|
|
// friends
|
|
// ====================
|
|
|
|
struct ToxFriendPersistent {
|
|
ToxKey key;
|
|
};
|
|
|
|
struct ToxFriendEphemeral {
|
|
uint32_t friend_number;
|
|
};
|
|
|
|
|
|
// ====================
|
|
// TODO: conferences (old groups)
|
|
// ====================
|
|
|
|
struct ToxConfPersistent {
|
|
ToxKey key;
|
|
};
|
|
|
|
struct ToxConfEhpemeral {
|
|
uint32_t id;
|
|
};
|
|
|
|
|
|
// ====================
|
|
// groups (ngc)
|
|
// ====================
|
|
|
|
struct ToxGroupPersistent {
|
|
ToxKey chat_id;
|
|
};
|
|
|
|
struct ToxGroupEphemeral {
|
|
uint32_t group_number;
|
|
};
|
|
|
|
struct ToxGroupIncomingRequest {
|
|
uint32_t friend_number;
|
|
std::vector<uint8_t> invite_data;
|
|
};
|
|
|
|
struct ToxGroupPeerPersistent {
|
|
ToxKey chat_id;
|
|
ToxKey peer_key;
|
|
};
|
|
|
|
struct ToxGroupPeerEphemeral {
|
|
uint32_t group_number;
|
|
uint32_t peer_number;
|
|
};
|
|
|
|
} // Contact::Components
|
|
|
|
#include "./components_id.inl"
|
|
|