major msg -> obj file transfer refactor

mostly done, some things are hacky or not done
This commit is contained in:
2024-07-29 20:03:24 +02:00
parent 676e50c61a
commit e2c9880a15
13 changed files with 500 additions and 285 deletions

View File

@@ -0,0 +1,42 @@
#pragma once
#include <solanaceae/object_store/meta_components_file.hpp> // contains the alias
#include <solanaceae/toxcore/tox_key.hpp>
namespace ObjectStore::Components {
namespace Tox {
struct FileID {
// persistent ID
// sometimes called file_id or hash
ToxKey id;
// TODO: variable length
};
struct FileKind {
// TODO: use tox file kind
uint64_t kind {0};
};
// temporary replacement for Sending/Receiving
// TODO: something generic in os ?????
struct TagIncomming {};
struct TagOutgoing {};
} // Tox
namespace Ephemeral {
struct ToxTransferFriend {
uint32_t friend_number;
uint32_t transfer_number;
};
} // Ephemeral
} // ObjectStore::Components
#include "./obj_components_id.inl"