start toxsync (no tox yet lol)
This commit is contained in:
parent
7fff379d88
commit
3b7db97507
@ -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
|
||||||
|
)
|
||||||
|
|
||||||
|
########################################
|
||||||
|
6
src/solanaceae/crdtnotes_toxsync/crdtnotes_toxsync.cpp
Normal file
6
src/solanaceae/crdtnotes_toxsync/crdtnotes_toxsync.cpp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include "./crdtnotes_toxsync.hpp"
|
||||||
|
|
||||||
|
|
||||||
|
CRDTNotesToxSync::CRDTNotesToxSync(CRDTNotes& notes, Contact3Registry& cr) : _notes(notes), _cr(cr) {
|
||||||
|
}
|
||||||
|
|
15
src/solanaceae/crdtnotes_toxsync/crdtnotes_toxsync.hpp
Normal file
15
src/solanaceae/crdtnotes_toxsync/crdtnotes_toxsync.hpp
Normal 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);
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user