diff --git a/tests/old/testsuite/gst-lint b/tests/old/testsuite/gst-lint index 37f87b0a15..3d8a122f47 100755 --- a/tests/old/testsuite/gst-lint +++ b/tests/old/testsuite/gst-lint @@ -35,6 +35,7 @@ sub check_deprecated(); sub check_config_h(); sub check_varargs_functions(); sub check_debugging(); +sub check_old_typefind(); sub m_check_plugindir(); @@ -64,6 +65,7 @@ foreach $filename () { check_varargs_functions(); check_debugging(); check_bad_includes(); + check_old_typefind(); } open FIND, "find . -name \"Makefile.am\" -print|"; @@ -329,3 +331,13 @@ sub m_check_plugindir() } } +# +# check for old typefinding code +# +sub check_old_typefind() +{ + if (grep { /GstTypeDefinition/ || /GstTypeFactory/ } @lines) { + print "E: old typefind interface has been removed\n" + } +} + diff --git a/testsuite/gst-lint b/testsuite/gst-lint index 37f87b0a15..3d8a122f47 100755 --- a/testsuite/gst-lint +++ b/testsuite/gst-lint @@ -35,6 +35,7 @@ sub check_deprecated(); sub check_config_h(); sub check_varargs_functions(); sub check_debugging(); +sub check_old_typefind(); sub m_check_plugindir(); @@ -64,6 +65,7 @@ foreach $filename () { check_varargs_functions(); check_debugging(); check_bad_includes(); + check_old_typefind(); } open FIND, "find . -name \"Makefile.am\" -print|"; @@ -329,3 +331,13 @@ sub m_check_plugindir() } } +# +# check for old typefinding code +# +sub check_old_typefind() +{ + if (grep { /GstTypeDefinition/ || /GstTypeFactory/ } @lines) { + print "E: old typefind interface has been removed\n" + } +} +