p≡p JSON adapter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
582 B

#ifndef MINI_ADAPTER_IMPL_HH
#define MINI_ADAPTER_IMPL_HH
#include <pEp/sync_api.h>
#include "json-adapter.hh"
#include <pEp/Adapter.hh>
namespace pEp{
namespace mini {
void startSync();
void stopSync();
class Adapter : public JsonAdapter
{
public:
static Adapter& createInstance();
std::thread::id get_sync_thread_id() const override;
protected:
virtual inject_sync_event_t getInjectSyncEvent() const override
{
return &::pEp::Adapter::_inject_sync_event;
}
};
} // end of namespace pEp::mini
} // end of namespace pEp
#endif // MINI_ADAPTER_IMPL_HH