/* * Created by victoria on 2021-05-13. */ #include "pre_key_store.h" Signal::Store::PreKeyStore::PreKeyStore(QSharedPointer database) : database( std::move(database)) {} int Signal::Store::PreKeyStore::containsPreKey(uint32_t pre_key_id) { return 0; } int Signal::Store::PreKeyStore::loadPreKey(signal_buffer **record, uint32_t pre_key_id) { return 0; } int Signal::Store::PreKeyStore::storePreKey(uint32_t pre_key_id, uint8_t *record, size_t record_len) { return 0; } int Signal::Store::PreKeyStore::removePreKey(uint32_t pre_key_id) { return 0; } void Signal::Store::PreKeyStore::fillCallbacks(signal_protocol_pre_key_store &store) { store.contains_pre_key = [](uint32_t id, void *ptr) { return static_cast(ptr)->containsPreKey(id); }; store.load_pre_key = [](signal_buffer **record, uint32_t id, void *ptr) { return static_cast(ptr)->loadPreKey(record, id); }; store.remove_pre_key = [](uint32_t id, void *ptr) { return static_cast(ptr)->removePreKey(id); }; store.store_pre_key = [](uint32_t id, uint8_t *record, size_t size, void *ptr) { return static_cast(ptr)->storePreKey(id, record, size); }; }