mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
udp: Use the generic marshaller instead of generating marshallers
This commit is contained in:
parent
07d3363436
commit
a957457cc1
4 changed files with 10 additions and 14 deletions
|
@ -8,8 +8,8 @@ glib_gen_basename = gstudp
|
|||
|
||||
include $(top_srcdir)/common/gst-glib-gen.mak
|
||||
|
||||
built_sources = gstudp-enumtypes.c gstudp-marshal.c
|
||||
built_headers = gstudp-enumtypes.h gstudp-marshal.h
|
||||
built_sources = gstudp-enumtypes.c
|
||||
built_headers = gstudp-enumtypes.h
|
||||
|
||||
BUILT_SOURCES = $(built_sources) $(built_headers)
|
||||
|
||||
|
@ -25,7 +25,7 @@ nodist_libgstudp_la_SOURCES = \
|
|||
|
||||
noinst_HEADERS = gstudpsink.h gstudpsrc.h gstudp.h gstmultiudpsink.h gstdynudpsink.h gstudpnetutils.h
|
||||
|
||||
EXTRA_DIST = README gstudp-marshal.list
|
||||
EXTRA_DIST = README
|
||||
|
||||
CLEANFILES = $(BUILT_SOURCES)
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include "gstudp-marshal.h"
|
||||
#include "gstdynudpsink.h"
|
||||
|
||||
#include <gst/net/gstnetaddressmeta.h>
|
||||
|
@ -105,7 +104,7 @@ gst_dynudpsink_class_init (GstDynUDPSinkClass * klass)
|
|||
g_signal_new ("get-stats", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstDynUDPSinkClass, get_stats),
|
||||
NULL, NULL, gst_udp_marshal_BOXED__STRING_INT, GST_TYPE_STRUCTURE, 2,
|
||||
NULL, NULL, g_cclosure_marshal_generic, GST_TYPE_STRUCTURE, 2,
|
||||
G_TYPE_STRING, G_TYPE_INT);
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_SOCKET,
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include "gstudp-marshal.h"
|
||||
#include "gstmultiudpsink.h"
|
||||
|
||||
#include <string.h>
|
||||
|
@ -174,7 +173,7 @@ gst_multiudpsink_class_init (GstMultiUDPSinkClass * klass)
|
|||
g_signal_new ("add", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiUDPSinkClass, add),
|
||||
NULL, NULL, gst_udp_marshal_VOID__STRING_INT, G_TYPE_NONE, 2,
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2,
|
||||
G_TYPE_STRING, G_TYPE_INT);
|
||||
/**
|
||||
* GstMultiUDPSink::remove:
|
||||
|
@ -189,7 +188,7 @@ gst_multiudpsink_class_init (GstMultiUDPSinkClass * klass)
|
|||
g_signal_new ("remove", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiUDPSinkClass, remove),
|
||||
NULL, NULL, gst_udp_marshal_VOID__STRING_INT, G_TYPE_NONE, 2,
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2,
|
||||
G_TYPE_STRING, G_TYPE_INT);
|
||||
/**
|
||||
* GstMultiUDPSink::clear:
|
||||
|
@ -201,7 +200,7 @@ gst_multiudpsink_class_init (GstMultiUDPSinkClass * klass)
|
|||
g_signal_new ("clear", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiUDPSinkClass, clear),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 0);
|
||||
/**
|
||||
* GstMultiUDPSink::get-stats:
|
||||
* @gstmultiudpsink: the sink on which the signal is emitted
|
||||
|
@ -217,7 +216,7 @@ gst_multiudpsink_class_init (GstMultiUDPSinkClass * klass)
|
|||
g_signal_new ("get-stats", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiUDPSinkClass, get_stats),
|
||||
NULL, NULL, gst_udp_marshal_BOXED__STRING_INT, GST_TYPE_STRUCTURE, 2,
|
||||
NULL, NULL, g_cclosure_marshal_generic, GST_TYPE_STRUCTURE, 2,
|
||||
G_TYPE_STRING, G_TYPE_INT);
|
||||
/**
|
||||
* GstMultiUDPSink::client-added:
|
||||
|
@ -231,7 +230,7 @@ gst_multiudpsink_class_init (GstMultiUDPSinkClass * klass)
|
|||
gst_multiudpsink_signals[SIGNAL_CLIENT_ADDED] =
|
||||
g_signal_new ("client-added", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstMultiUDPSinkClass, client_added),
|
||||
NULL, NULL, gst_udp_marshal_VOID__STRING_INT, G_TYPE_NONE, 2,
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2,
|
||||
G_TYPE_STRING, G_TYPE_INT);
|
||||
/**
|
||||
* GstMultiUDPSink::client-removed:
|
||||
|
@ -245,7 +244,7 @@ gst_multiudpsink_class_init (GstMultiUDPSinkClass * klass)
|
|||
gst_multiudpsink_signals[SIGNAL_CLIENT_REMOVED] =
|
||||
g_signal_new ("client-removed", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstMultiUDPSinkClass,
|
||||
client_removed), NULL, NULL, gst_udp_marshal_VOID__STRING_INT,
|
||||
client_removed), NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_INT);
|
||||
|
||||
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_BYTES_TO_SERVE,
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
VOID:STRING,INT
|
||||
BOXED:STRING,INT
|
Loading…
Reference in a new issue