[dahdi-commits] tzafrir: tools/trunk r4376 - in /tools/trunk/xpp: ./ zconf/ zconf/Zaptel/ zco...
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Tue Jun 17 14:32:09 CDT 2008
Author: tzafrir
Date: Tue Jun 17 14:32:09 2008
New Revision: 4376
URL: http://svn.digium.com/view/dahdi?view=rev&rev=4376
Log:
A little bit of dahdi renaming: zt_registration.
Added:
tools/trunk/xpp/dahdi_registration
- copied, changed from r4374, tools/trunk/xpp/zt_registration
Removed:
tools/trunk/xpp/zt_registration
Modified:
tools/trunk/xpp/zconf/Zaptel.pm
tools/trunk/xpp/zconf/Zaptel/Span.pm
tools/trunk/xpp/zconf/Zaptel/Xpp/Xpd.pm
Copied: tools/trunk/xpp/dahdi_registration (from r4374, tools/trunk/xpp/zt_registration)
URL: http://svn.digium.com/view/dahdi/tools/trunk/xpp/dahdi_registration?view=diff&rev=4376&p1=tools/trunk/xpp/zt_registration&r1=4374&p2=tools/trunk/xpp/dahdi_registration&r2=4376
==============================================================================
--- tools/trunk/xpp/zt_registration (original)
+++ tools/trunk/xpp/dahdi_registration Tue Jun 17 14:32:09 2008
@@ -46,7 +46,7 @@
myprintf "%-10s\t%s\t%s\n", $xbus->name, $xbus->label, $xbus->connector;
next unless $xbus->status eq 'CONNECTED';
foreach my $xpd ($xbus->xpds()) {
- my $prev = $xpd->zt_registration($on);
+ my $prev = $xpd->dahdi_registration($on);
if(!defined($prev)) { # Failure
printf "%s: Failed %s\n", $xpd->fqn, $!;
next;
@@ -66,11 +66,11 @@
=head1 NAME
-zt_registration - Handle registration of Xorcom XPD modules in zaptel.
+dahdi_registration - Handle registration of Xorcom XPD modules in zaptel.
=head1 SYNOPSIS
-zt_registration [on|off]
+dahdi_registration [on|off]
=head1 DESCRIPTION
@@ -92,10 +92,10 @@
=head2 Sample Output
-An example of the output of zt_registration for some registered
+An example of the output of dahdi_registration for some registered
Astribanks:
- $ zt_registration
+ $ dahdi_registration
XBUS-02 [] usb-0000:00:1d.7-4
XBUS-00/XPD-00: on Span 1
XBUS-00/XPD-10: on Span 2
@@ -114,7 +114,7 @@
=over
-=item /proc/xpp/XBUS-nn/XPD-mm/zt_registration
+=item /proc/xpp/XBUS-nn/XPD-mm/dahdi_registration
Reading from this file shows if if the if the specific XPD is
registered. Writing to it 0 or 1 registers / unregisters the device.
Modified: tools/trunk/xpp/zconf/Zaptel.pm
URL: http://svn.digium.com/view/dahdi/tools/trunk/xpp/zconf/Zaptel.pm?view=diff&rev=4376&r1=4375&r2=4376
==============================================================================
--- tools/trunk/xpp/zconf/Zaptel.pm (original)
+++ tools/trunk/xpp/zconf/Zaptel.pm Tue Jun 17 14:32:09 2008
@@ -32,7 +32,7 @@
}
=cut
-my $proc_base = "/proc/zaptel";
+my $proc_base = "/proc/dahdi";
=head1 spans()
Modified: tools/trunk/xpp/zconf/Zaptel/Span.pm
URL: http://svn.digium.com/view/dahdi/tools/trunk/xpp/zconf/Zaptel/Span.pm?view=diff&rev=4376&r1=4375&r2=4376
==============================================================================
--- tools/trunk/xpp/zconf/Zaptel/Span.pm (original)
+++ tools/trunk/xpp/zconf/Zaptel/Span.pm Tue Jun 17 14:32:09 2008
@@ -113,7 +113,7 @@
=cut
-my $proc_base = "/proc/zaptel";
+my $proc_base = "/proc/dahdi";
sub chans($) {
my $span = shift;
Modified: tools/trunk/xpp/zconf/Zaptel/Xpp/Xpd.pm
URL: http://svn.digium.com/view/dahdi/tools/trunk/xpp/zconf/Zaptel/Xpp/Xpd.pm?view=diff&rev=4376&r1=4375&r2=4376
==============================================================================
--- tools/trunk/xpp/zconf/Zaptel/Xpp/Xpd.pm (original)
+++ tools/trunk/xpp/zconf/Zaptel/Xpp/Xpd.pm Tue Jun 17 14:32:09 2008
@@ -40,12 +40,12 @@
return $result;
}
-sub zt_registration($$) {
+sub dahdi_registration($$) {
my $self = shift;
my $on = shift;
my $result;
- my $file = "$proc_base/" . $self->fqn . "/zt_registration";
+ my $file = "$proc_base/" . $self->fqn . "/dahdi_registration";
die "$file is missing" unless -f $file;
# First query
open(F, "$file") or die "Failed to open $file for reading: $!";
More information about the dahdi-commits
mailing list