inital commit, add tox_contacts (version 2)

This commit is contained in:
2023-07-23 13:23:49 +02:00
commit df87cd9c8a
7 changed files with 587 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
#pragma once
#include <solanaceae/toxcore/tox_key.hpp>
namespace Contact::Components {
// ==========
// friend
// ==========
struct ToxFriendPersistent {
ToxKey key;
};
struct ToxFriendEphemeral {
uint32_t friend_number;
};
// ==========
// TODO: conference (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 ToxGroupPeerPersistent {
ToxKey chat_id;
ToxKey peer_key;
};
struct ToxGroupPeerEphemeral {
uint32_t group_number;
uint32_t peer_number;
};
} // Contact::Components
#include "./components_id.inl"