validate: Rename libfaultinjector to libgstvalidatefaultinjector

https://bugzilla.gnome.org/show_bug.cgi?id=743994
This commit is contained in:
Thibault Saunier 2015-02-04 22:12:48 +01:00
parent dae4051ed6
commit 1194b313af
2 changed files with 26 additions and 15 deletions

View file

@ -1,10 +1,10 @@
plugin_LTLIBRARIES = libfaultinjection.la
plugin_LTLIBRARIES = libgstvalidatefaultinjection.la
libfaultinjection_la_SOURCES = \
libgstvalidatefaultinjection_la_SOURCES = \
socket_interposer.c
libfaultinjection_la_CFLAGS = $(GST_ALL_CFLAGS)
libfaultinjection_la_LIBADD = $(GST_ALL_LIBS) $(top_builddir)/gst/validate/libgstvalidate-@GST_API_VERSION@.la
libfaultinjection_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(GST_ALL_LDFLAGS)
libgstvalidatefaultinjection_la_CFLAGS = $(GST_ALL_CFLAGS)
libgstvalidatefaultinjection_la_LIBADD = $(GST_ALL_LIBS) $(top_builddir)/gst/validate/libgstvalidate-@GST_API_VERSION@.la
libgstvalidatefaultinjection_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(GST_ALL_LDFLAGS)
CLEANFILES =

View file

@ -340,16 +340,27 @@ socket_interposer_init (GstPlugin * plugin)
gst_validate_register_action_type ("corrupt-socket-recv", gst_plugin_get_name (plugin),
_execute_corrupt_socket_recv, ((GstValidateActionParameter[]) {
{
.name = "port",.description =
"The port the socket to be corrupted listens on",.mandatory =
TRUE,.types = "int",.possible_variables = NULL,}, {
.name = "errno",.description =
"errno to set when failing",.mandatory = TRUE,.types =
"string",}, {
.name = "times",.description =
"Number of times to corrupt recv, default is one",.mandatory =
FALSE,.types = "int",.possible_variables = NULL,.def = "1",}, {
NULL}
.name = "port",
.description = "The port the socket to be corrupted listens on",
.mandatory = TRUE,
.types = "int",
.possible_variables = NULL,
},
{
.name = "errno",
.description = "errno to set when failing",
.mandatory = TRUE,
.types = "string",
},
{
.name = "times",
.description = "Number of times to corrupt recv, default is one",
.mandatory = FALSE,
.types = "int",
.possible_variables = NULL,
.def = "1",
},
{NULL}
}),
"corrupt the next socket receive", GST_VALIDATE_ACTION_TYPE_ASYNC);
/* *INDENT-ON* */