start toxsync (no tox yet lol)

This commit is contained in:
Green Sky 2023-11-03 18:16:16 +01:00
parent 7fff379d88
commit 3b7db97507
No known key found for this signature in database
3 changed files with 37 additions and 0 deletions

View File

@ -28,3 +28,19 @@ target_link_libraries(solanaceae_crdtnotes_imgui PUBLIC
)
########################################
add_library(solanaceae_crdtnotes_toxsync
./solanaceae/crdtnotes_toxsync/crdtnotes_toxsync.hpp
./solanaceae/crdtnotes_toxsync/crdtnotes_toxsync.cpp
)
target_include_directories(solanaceae_crdtnotes_toxsync PUBLIC .)
target_compile_features(solanaceae_crdtnotes_toxsync PUBLIC cxx_std_17)
target_link_libraries(solanaceae_crdtnotes_toxsync PUBLIC
solanaceae_crdtnotes
#solanaceae_util
solanaceae_contact
#tox
)
########################################

View File

@ -0,0 +1,6 @@
#include "./crdtnotes_toxsync.hpp"
CRDTNotesToxSync::CRDTNotesToxSync(CRDTNotes& notes, Contact3Registry& cr) : _notes(notes), _cr(cr) {
}

View File

@ -0,0 +1,15 @@
#pragma once
#include <solanaceae/crdtnotes/crdtnotes.hpp>
#include <solanaceae/contact/contact_model3.hpp>
class CRDTNotesToxSync {
CRDTNotes& _notes;
Contact3Registry& _cr;
public:
CRDTNotesToxSync(CRDTNotes& notes, Contact3Registry& cr);
float iterate(void);
};