*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*/
#ifndef __GST_UDPSINK_H__
#define __GST_UDPSINK_H__
-
-#include <config.h>
#include <gst/gst.h>
+#include "gstmultiudpsink.h"
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <errno.h>
-#include <string.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#include <sys/socket.h>
-#include <sys/wait.h>
-#include <fcntl.h>
-#include "gstudp.h"
+#include "gstudpnetutils.h"
-#define GST_TYPE_UDPSINK \
- (gst_udpsink_get_type())
-#define GST_UDPSINK(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_UDPSINK,GstUDPSink))
-#define GST_UDPSINK_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_UDPSINK,GstUDPSink))
-#define GST_IS_UDPSINK(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_UDPSINK))
-#define GST_IS_UDPSINK_CLASS(obj) \
- (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_UDPSINK))
+#define GST_TYPE_UDPSINK (gst_udpsink_get_type())
+#define GST_UDPSINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_UDPSINK,GstUDPSink))
+#define GST_UDPSINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_UDPSINK,GstUDPSinkClass))
+#define GST_IS_UDPSINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_UDPSINK))
+#define GST_IS_UDPSINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_UDPSINK))
typedef struct _GstUDPSink GstUDPSink;
typedef struct _GstUDPSinkClass GstUDPSinkClass;
-typedef enum {
- GST_UDPSINK_OPEN = GST_ELEMENT_FLAG_LAST,
-
- GST_UDPSINK_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2,
-} GstUDPSinkFlags;
-
struct _GstUDPSink {
- GstElement element;
-
- /* pads */
- GstPad *sinkpad,*srcpad;
-
- int sock;
- struct sockaddr_in theiraddr;
+ GstMultiUDPSink parent;
- gint port;
- Gst_UDP_Control control;
gchar *host;
-
- guint mtu;
-
- GstClock *clock;
+ guint16 port;
+
+ gchar *uri;
};
struct _GstUDPSinkClass {
- GstElementClass parent_class;
-
+ GstMultiUDPSinkClass parent_class;
};
GType gst_udpsink_get_type(void);
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
#endif /* __GST_UDPSINK_H__ */