|
|
@ -27,7 +27,12 @@ |
|
|
|
#include "json_spirit/json_spirit_reader.h"
|
|
|
|
|
|
|
|
// HACK:
|
|
|
|
#ifndef ADAPTER_LIBRARY
|
|
|
|
#include "mini-adapter-impl.hh"
|
|
|
|
#else // ADAPTER_LIBRARY
|
|
|
|
void startSync(); |
|
|
|
void stopSync(); |
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
namespace fs = boost::filesystem; |
|
|
@ -148,9 +153,13 @@ const FunctionMap functions = { |
|
|
|
FP( "leave_device_group" , new Func<PEP_STATUS, In_Pep_Session> (&leave_device_group) ), |
|
|
|
FP( "enable_identity_for_sync" , new Func<PEP_STATUS, In_Pep_Session, InOut<pEp_identity*>> (&enable_identity_for_sync)), |
|
|
|
FP( "disable_identity_for_sync", new Func<PEP_STATUS, In_Pep_Session, InOut<pEp_identity*>> (&disable_identity_for_sync)), |
|
|
|
#ifndef ADAPTER_LIBRARY
|
|
|
|
FP( "startSync", new Func<void> (&pEp::mini::startSync) ), |
|
|
|
FP( "stopSync" , new Func<void> (&pEp::mini::stopSync) ), |
|
|
|
|
|
|
|
#else
|
|
|
|
FP( "startSync", new Func<void> (&startSync) ), |
|
|
|
FP( "stopSync" , new Func<void> (&stopSync) ), |
|
|
|
#endif
|
|
|
|
// my own example function that does something useful. :-)
|
|
|
|
FP( "Other", new Separator ), |
|
|
|
FP( "serverVersion", new Func<ServerVersion>( &server_version ) ), |
|
|
|