testsuite/gst-lint: Check for pad templates that aren't statically scoped.

Original commit message from CVS:
* testsuite/gst-lint: Check for pad templates that aren't statically
scoped.
This commit is contained in:
David Schleef 2004-11-07 20:50:10 +00:00
parent 75c18f1b4e
commit 4b8c8d5469
3 changed files with 35 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2004-11-07 David Schleef <ds@schleef.org>
* testsuite/gst-lint: Check for pad templates that aren't statically
scoped.
2004-11-07 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* configure.ac:

View file

@ -47,6 +47,7 @@ sub check_typo();
sub check_explicit_caps();
sub check_signals();
sub check_gettext();
sub check_padtemplate();
sub m_check_plugindir();
sub m_check_interfaces();
@ -76,6 +77,7 @@ foreach $filename (<FIND>) {
check_explicit_caps();
check_signals();
check_gettext();
check_padtemplate();
# less important stuff
check_license();
@ -539,3 +541,16 @@ sub check_gettext()
}
}
#
# Check that pad templates are statically scoped
#
sub check_padtemplate()
{
foreach $line (@lines){
if ($line =~ /GstStaticPadTemplate/ && !($line =~ /static/)) {
print "W: pad template definitions should be static\n"
return;
}
}
}

View file

@ -47,6 +47,7 @@ sub check_typo();
sub check_explicit_caps();
sub check_signals();
sub check_gettext();
sub check_padtemplate();
sub m_check_plugindir();
sub m_check_interfaces();
@ -76,6 +77,7 @@ foreach $filename (<FIND>) {
check_explicit_caps();
check_signals();
check_gettext();
check_padtemplate();
# less important stuff
check_license();
@ -539,3 +541,16 @@ sub check_gettext()
}
}
#
# Check that pad templates are statically scoped
#
sub check_padtemplate()
{
foreach $line (@lines){
if ($line =~ /GstStaticPadTemplate/ && !($line =~ /static/)) {
print "W: pad template definitions should be static\n"
return;
}
}
}