summaryrefslogtreecommitdiff
path: root/src/datatypes.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-09-24 23:34:21 +0200
committerChristian Pointner <equinox@spreadspace.org>2014-09-24 23:34:21 +0200
commitbe982f880df6388bd00386b2cae8c318f902f1b2 (patch)
tree4452fa85d9b32bd1f98dca9fa25c97b9d2b76e1a /src/datatypes.h
parentadded simple UDP protocol (diff)
moved pipeline creation subs to own file
Diffstat (limited to 'src/datatypes.h')
-rw-r--r--src/datatypes.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/datatypes.h b/src/datatypes.h
index 6481eb8..b6c6003 100644
--- a/src/datatypes.h
+++ b/src/datatypes.h
@@ -38,4 +38,28 @@
#include <stdint.h>
+#include <glib.h>
+#include <gst/gst.h>
+
+#include <netdb.h>
+
+struct addr_port{
+ enum { IPv4, IPv6 } type_;
+ gchar addr_[INET6_ADDRSTRLEN + 1];
+ guint16 port_;
+};
+
+struct udp_sink {
+ GstElement *udp_;
+ GList* clients_;
+};
+
+struct udp_sinks {
+ struct udp_sink rtp_video_;
+ struct udp_sink rtcp_video_;
+ struct udp_sink rtp_audio_;
+ struct udp_sink rtcp_audio_;
+};
+
+
#endif