1
0
mirror of https://github.com/danog/libtgvoip.git synced 2024-11-27 04:34:42 +01:00
libtgvoip/MediaStreamItf.cpp

19 lines
516 B
C++
Raw Normal View History

2017-02-02 17:24:40 +01:00
//
// libtgvoip is free and unencumbered public domain software.
// For more information, see http://unlicense.org or the UNLICENSE file
// you should have received with this source code distribution.
//
#include "MediaStreamItf.h"
using namespace tgvoip;
2017-02-02 17:24:40 +01:00
void MediaStreamItf::SetCallback(size_t (*f)(unsigned char *, size_t, void*), void* param){
2017-02-02 17:24:40 +01:00
callback=f;
callbackParam=param;
}
size_t MediaStreamItf::InvokeCallback(unsigned char *data, size_t length){
2017-02-02 17:24:40 +01:00
return (*callback)(data, length, callbackParam);
}