Skip to content
Snippets Groups Projects
Commit fe96d499 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

jni: bind datatransfer signal

Change-Id: I2c08bb0bc21384bffeb03abea453ceae4928767d
parent c7bf4131
No related branches found
No related tags found
No related merge requests found
...@@ -207,7 +207,7 @@ namespace std { ...@@ -207,7 +207,7 @@ namespace std {
* that are not declared elsewhere in the c++ code * that are not declared elsewhere in the c++ code
*/ */
void init(ConfigurationCallback* confM, Callback* callM, PresenceCallback* presM, VideoCallback* videoM) { void init(ConfigurationCallback* confM, Callback* callM, PresenceCallback* presM, DataTransferCallback* dataM, VideoCallback* videoM) {
using namespace std::placeholders; using namespace std::placeholders;
using std::bind; using std::bind;
...@@ -278,6 +278,7 @@ void init(ConfigurationCallback* confM, Callback* callM, PresenceCallback* presM ...@@ -278,6 +278,7 @@ void init(ConfigurationCallback* confM, Callback* callM, PresenceCallback* presM
}; };
const std::map<std::string, SharedCallback> dataTransferEvHandlers = { const std::map<std::string, SharedCallback> dataTransferEvHandlers = {
exportable_callback<DataTransferSignal::DataTransferEvent>(bind(&DataTransferCallback::dataTransferEvent, dataM, _1, _2))
}; };
const std::map<std::string, SharedCallback> videoEvHandlers = { const std::map<std::string, SharedCallback> videoEvHandlers = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment