| 1 | #################################################################### | ||||||||||
| 2 | # | ||||||||||
| 3 | # This file was generated using XDR::Parse version v1.0.1, | ||||||||||
| 4 | # XDR::Gen version 1.1.2 and LibVirt version v12.9.0 | ||||||||||
| 5 | # | ||||||||||
| 6 | # Don't edit this file, use the source template instead | ||||||||||
| 7 | # | ||||||||||
| 8 | # ANY CHANGES HERE WILL BE LOST ! | ||||||||||
| 9 | # | ||||||||||
| 10 | #################################################################### | ||||||||||
| 11 | |||||||||||
| 12 | package Protocol::Sys::Virt::KeepAlive::XDR v12.9.0; | ||||||||||
| 13 | |||||||||||
| 14 | 1 | ▶ | use v5.14; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | 1 | ▶ | use warnings FATAL => 'uninitialized'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | 1 | ▶ | use Config; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | 1 | ▶ | use Carp qw(croak); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | 1 | ▶ | use constant PROGRAM => 1801807216; # 0x6b656570 | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | 1 | ▶ | use constant PROTOCOL_VERSION => 1; # 1 | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 20 | # Define elements from enum 'procedure' | ||||||||||
| 21 | 1 | ▶ | use constant { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 22 | 1 | PROC_PING => 1, | |||||||||
| 23 | PROC_PONG => 2, | ||||||||||
| 24 | 1 | }; | |||||||||
| 25 | # @_: ($class, $value, $index, $input) = @_; | ||||||||||
| 26 | 0 | ▶ | sub deserialize_procedure { | ||||||||
|
Subroutine
deserialize_procedure: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||
| 27 | 0 | my $input_length = length $_[3]; | |||||||||
| 28 | # my ($class, $value, $index, $input) = @_; | ||||||||||
| 29 | 0 | ▶ | die "Input buffer too short" | ||||||||
|
Branch: 1 branch
| |||||||||||
| 30 | if ($input_length - $_[2]) < 4; | ||||||||||
| 31 | 0 | $_[1] = unpack("l>", substr( $_[3], $_[2] ) ); | |||||||||
| 32 | 0 | ▶ | die "Out of range enum value supplied: $_[1]" | ||||||||
|
Branch: 1 branch
| |||||||||||
| 33 | unless vec(state $m = pack('H*', '06'), | ||||||||||
| 34 | $_[1], 1); | ||||||||||
| 35 | 0 | $_[2] += 4; | |||||||||
| 36 | } | ||||||||||
| 37 | # @_: ($class, $value, $index, $output) = @_; | ||||||||||
| 38 | 0 | ▶ | sub serialize_procedure { | ||||||||
|
Subroutine
serialize_procedure: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||
| 39 | # my ($class, $value, $index, $output) = @_; | ||||||||||
| 40 | 0 | ▶ | croak "Missing required input 'enum' value" | ||||||||
|
Branch: 1 branch
| |||||||||||
| 41 | unless defined $_[1]; | ||||||||||
| 42 | 0 | ▶ | die "Out of range enum value: $_[1]" | ||||||||
|
Branch: 1 branch
| |||||||||||
| 43 | unless vec(state $m = pack('H*', '06'), | ||||||||||
| 44 | $_[1], 1); | ||||||||||
| 45 | 0 | substr( $_[3], $_[2] ) = pack("l>", $_[1]); | |||||||||
| 46 | 0 | $_[2] += 4; | |||||||||
| 47 | } | ||||||||||
| 48 | |||||||||||
| 49 | |||||||||||
| 50 | 1 | 1; | |||||||||
| 51 | |||||||||||
| 52 | __END__ | ||||||||||