add tox private interface (no impl yet)

This commit is contained in:
Green Sky 2023-11-13 13:24:02 +01:00
parent 9cfd920fca
commit d05875f489
No known key found for this signature in database
2 changed files with 14 additions and 0 deletions

View File

@ -5,6 +5,7 @@ project(solanaceae)
add_library(solanaceae_toxcore_interface INTERFACE
#./solanaceae/toxcore/toxcore_enums.hpp
#./solanaceae/toxcore/tox_interface.hpp
#./solanaceae/toxcore/tox_private_interface.hpp
)
target_include_directories(solanaceae_toxcore_interface INTERFACE .)
target_compile_features(solanaceae_toxcore_interface INTERFACE cxx_std_17)
@ -20,6 +21,7 @@ add_library(solanaceae_toxcore
./solanaceae/toxcore/tox_interface.hpp
./solanaceae/toxcore/tox_interface.cpp
./solanaceae/toxcore/tox_event_interface.hpp
./solanaceae/toxcore/tox_private_interface.hpp
./solanaceae/toxcore/tox_default_impl.hpp
./solanaceae/toxcore/tox_default_impl.cpp

View File

@ -0,0 +1,12 @@
#pragma once
#include <cstdint>
// defines the private interface for tox
struct ToxPrivateI {
virtual ~ToxPrivateI(void) {}
virtual uint16_t toxDHTGetNumCloselist(void) = 0;
virtual uint16_t toxDHTGetNumCloselistAnnounceCapable(void) = 0;
};