inital commit, add tox_contacts (version 2)
This commit is contained in:
58
solanaceae/tox_contacts/components.hpp
Normal file
58
solanaceae/tox_contacts/components.hpp
Normal 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"
|
||||
|
Reference in New Issue
Block a user