line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Protocol::DBus::Address; |
2
|
|
|
|
|
|
|
|
3
|
7
|
|
|
7
|
|
97244
|
use strict; |
|
7
|
|
|
|
|
50
|
|
|
7
|
|
|
|
|
200
|
|
4
|
7
|
|
|
7
|
|
36
|
use warnings; |
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
324
|
|
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
806
|
use Call::Context; |
|
7
|
|
|
|
|
736
|
|
|
7
|
|
|
|
|
2050
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# Not a very choosy parser, and it doesn’t try to validate anything. |
9
|
|
|
|
|
|
|
sub parse { |
10
|
4
|
|
|
4
|
0
|
9956
|
Call::Context::must_be_list(); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
return map { |
13
|
4
|
|
|
|
|
75
|
my $str = $_; |
|
5
|
|
|
|
|
33
|
|
14
|
|
|
|
|
|
|
|
15
|
5
|
|
|
|
|
33
|
my $xport = substr( $_, 0, 1 + index($_, ':'), q<> ); |
16
|
5
|
|
|
|
|
18
|
chop $xport; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
my %kvs = ( |
19
|
5
|
|
|
|
|
24
|
map { split m<=>, $_ } (split m<,>, $_), |
|
6
|
|
|
|
|
42
|
|
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
|
22
|
5
|
|
|
|
|
34
|
s<%(..)>ge for values %kvs; |
|
0
|
|
|
|
|
0
|
|
23
|
|
|
|
|
|
|
|
24
|
5
|
|
|
|
|
65
|
bless { _str => $str, _transport => $xport, _attrs => \%kvs }, __PACKAGE__; |
25
|
|
|
|
|
|
|
} ( split m<;>, $_[0] ); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
#---------------------------------------------------------------------- |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub transport { |
31
|
5
|
|
|
5
|
0
|
9142
|
return $_[0]{'_transport'}; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub to_string { |
35
|
3
|
|
|
3
|
0
|
136
|
return $_[0]{'_str'}; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub attribute { |
39
|
8
|
|
|
8
|
0
|
143
|
return $_[0]{'_attrs'}{$_[1]}; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |