aboutsummaryrefslogtreecommitdiff
path: root/src/client/QXmppCallStream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/QXmppCallStream.h')
-rw-r--r--src/client/QXmppCallStream.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/QXmppCallStream.h b/src/client/QXmppCallStream.h
index a9103384..71b27b84 100644
--- a/src/client/QXmppCallStream.h
+++ b/src/client/QXmppCallStream.h
@@ -28,6 +28,8 @@
#include <gst/gst.h>
+#include <functional>
+
#include <QObject>
class QXmppCallStreamPrivate;
@@ -50,8 +52,8 @@ public:
QString media() const;
QString name() const;
int id() const;
- void setReceivePadCallback(void (*cb)(GstPad *));
- void setSendPadCallback(void (*cb)(GstPad *));
+ void setReceivePadCallback(std::function<void(GstPad *)> cb);
+ void setSendPadCallback(std::function<void(GstPad *)> cb);
private:
QXmppCallStream(GstElement *pipeline, GstElement *rtpbin,