gst/tcp/gstfdset.h: Remove unused field to same some memory.

Original commit message from CVS:
* gst/tcp/gstfdset.h:
Remove unused field to same some memory.
* gst/tcp/gstmultifdsink.c: (gst_multi_fd_sink_class_init):
Mark action signals as such.
This commit is contained in:
Wim Taymans 2008-02-06 15:07:30 +00:00
parent 339a360a96
commit b5aaf1e1a9
3 changed files with 32 additions and 21 deletions

View file

@ -1,3 +1,11 @@
2008-02-06 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/tcp/gstfdset.h:
Remove unused field to same some memory.
* gst/tcp/gstmultifdsink.c: (gst_multi_fd_sink_class_init):
Mark action signals as such.
2008-02-06 Michael Smith <msmith@fluendo.com> 2008-02-06 Michael Smith <msmith@fluendo.com>
* ext/theora/theoradec.c: (_theora_granule_frame), * ext/theora/theoradec.c: (_theora_granule_frame),

View file

@ -32,7 +32,6 @@ typedef struct _GstFDSet GstFDSet;
typedef struct { typedef struct {
int fd; int fd;
gint idx; gint idx;
gpointer data;
} GstFD; } GstFD;
typedef enum { typedef enum {

View file

@ -472,9 +472,10 @@ gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass)
* Hand the given open file descriptor to multifdsink to write to. * Hand the given open file descriptor to multifdsink to write to.
*/ */
gst_multi_fd_sink_signals[SIGNAL_ADD] = gst_multi_fd_sink_signals[SIGNAL_ADD] =
g_signal_new ("add", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, g_signal_new ("add", G_TYPE_FROM_CLASS (klass),
G_STRUCT_OFFSET (GstMultiFdSinkClass, add), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstMultiFdSinkClass,
NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); add), NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1,
G_TYPE_INT);
/** /**
* GstMultiFdSink::add-full: * GstMultiFdSink::add-full:
* @gstmultifdsink: the multifdsink element to emit this signal on * @gstmultifdsink: the multifdsink element to emit this signal on
@ -491,11 +492,12 @@ gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass)
* specify the burst parameters for the new connection. * specify the burst parameters for the new connection.
*/ */
gst_multi_fd_sink_signals[SIGNAL_ADD_BURST] = gst_multi_fd_sink_signals[SIGNAL_ADD_BURST] =
g_signal_new ("add-full", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, g_signal_new ("add-full", G_TYPE_FROM_CLASS (klass),
G_STRUCT_OFFSET (GstMultiFdSinkClass, add_full), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstMultiFdSinkClass,
NULL, NULL, gst_tcp_marshal_VOID__INT_BOOLEAN_INT_UINT64_INT_UINT64, add_full), NULL, NULL,
G_TYPE_NONE, 6, G_TYPE_INT, G_TYPE_BOOLEAN, GST_TYPE_UNIT_TYPE, gst_tcp_marshal_VOID__INT_BOOLEAN_INT_UINT64_INT_UINT64, G_TYPE_NONE, 6,
G_TYPE_UINT64, GST_TYPE_UNIT_TYPE, G_TYPE_UINT64); G_TYPE_INT, G_TYPE_BOOLEAN, GST_TYPE_UNIT_TYPE, G_TYPE_UINT64,
GST_TYPE_UNIT_TYPE, G_TYPE_UINT64);
/** /**
* GstMultiFdSink::remove: * GstMultiFdSink::remove:
* @gstmultifdsink: the multifdsink element to emit this signal on * @gstmultifdsink: the multifdsink element to emit this signal on
@ -504,9 +506,10 @@ gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass)
* Remove the given open file descriptor from multifdsink. * Remove the given open file descriptor from multifdsink.
*/ */
gst_multi_fd_sink_signals[SIGNAL_REMOVE] = gst_multi_fd_sink_signals[SIGNAL_REMOVE] =
g_signal_new ("remove", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, g_signal_new ("remove", G_TYPE_FROM_CLASS (klass),
G_STRUCT_OFFSET (GstMultiFdSinkClass, remove), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstMultiFdSinkClass,
NULL, NULL, gst_tcp_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); remove), NULL, NULL, gst_tcp_marshal_VOID__INT, G_TYPE_NONE, 1,
G_TYPE_INT);
/** /**
* GstMultiFdSink::remove_flush: * GstMultiFdSink::remove_flush:
* @gstmultifdsink: the multifdsink element to emit this signal on * @gstmultifdsink: the multifdsink element to emit this signal on
@ -517,8 +520,9 @@ gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass)
*/ */
gst_multi_fd_sink_signals[SIGNAL_REMOVE_FLUSH] = gst_multi_fd_sink_signals[SIGNAL_REMOVE_FLUSH] =
g_signal_new ("remove-flush", G_TYPE_FROM_CLASS (klass), g_signal_new ("remove-flush", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstMultiFdSinkClass, remove_flush), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstMultiFdSinkClass,
NULL, NULL, gst_tcp_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); remove_flush), NULL, NULL, gst_tcp_marshal_VOID__INT, G_TYPE_NONE, 1,
G_TYPE_INT);
/** /**
* GstMultiFdSink::clear: * GstMultiFdSink::clear:
* @gstmultifdsink: the multifdsink element to emit this signal on * @gstmultifdsink: the multifdsink element to emit this signal on
@ -528,9 +532,9 @@ gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass)
* should do so by connecting to the client-fd-removed callback. * should do so by connecting to the client-fd-removed callback.
*/ */
gst_multi_fd_sink_signals[SIGNAL_CLEAR] = gst_multi_fd_sink_signals[SIGNAL_CLEAR] =
g_signal_new ("clear", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, g_signal_new ("clear", G_TYPE_FROM_CLASS (klass),
G_STRUCT_OFFSET (GstMultiFdSinkClass, clear), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstMultiFdSinkClass,
NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); clear), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
/** /**
* GstMultiFdSink::get-stats: * GstMultiFdSink::get-stats:
@ -549,10 +553,10 @@ gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass)
* The array can be 0-length if the client was not found. * The array can be 0-length if the client was not found.
*/ */
gst_multi_fd_sink_signals[SIGNAL_GET_STATS] = gst_multi_fd_sink_signals[SIGNAL_GET_STATS] =
g_signal_new ("get-stats", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, g_signal_new ("get-stats", G_TYPE_FROM_CLASS (klass),
G_STRUCT_OFFSET (GstMultiFdSinkClass, get_stats), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstMultiFdSinkClass,
NULL, NULL, gst_tcp_marshal_BOXED__INT, G_TYPE_VALUE_ARRAY, 1, get_stats), NULL, NULL, gst_tcp_marshal_BOXED__INT,
G_TYPE_INT); G_TYPE_VALUE_ARRAY, 1, G_TYPE_INT);
/** /**
* GstMultiFdSink::client-added: * GstMultiFdSink::client-added: