| 1 | #################################################################### | ||||||||||||
| 2 | # | ||||||||||||
| 3 | # This file was generated using XDR::Parse version v1.0.1 | ||||||||||||
| 4 | # 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 | |||||||||||||
| 13 | 1 | ▶ | use v5.26; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 14 | 1 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 15 | 1 | ▶ | use experimental 'signatures'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 16 | 1 | ▶ | use Future::AsyncAwait; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 17 | 1 | ▶ | use Object::Pad; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 18 | |||||||||||||
| 19 | class Sys::Async::Virt::DomainCheckpoint v0.6.9; | ||||||||||||
| 20 | |||||||||||||
| 21 | 1 | ▶ | use Carp qw(croak); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 22 | 1 | ▶ | use Log::Any qw($log); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 23 | |||||||||||||
| 24 | 1 | ▶ | use Protocol::Sys::Virt::Remote::XDR v12.9.0; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 25 | 1 | my $remote = 'Protocol::Sys::Virt::Remote::XDR'; | |||||||||||
| 26 | |||||||||||||
| 27 | 1 | ▶ | use constant { | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 28 | 1 | XML_SECURE => (1 << 0), | |||||||||||
| 29 | XML_NO_DOMAIN => (1 << 1), | ||||||||||||
| 30 | XML_SIZE => (1 << 2), | ||||||||||||
| 31 | LIST_ROOTS => (1 << 0), | ||||||||||||
| 32 | LIST_DESCENDANTS => (1 << 0), | ||||||||||||
| 33 | LIST_TOPOLOGICAL => (1 << 1), | ||||||||||||
| 34 | LIST_LEAVES => (1 << 2), | ||||||||||||
| 35 | LIST_NO_LEAVES => (1 << 3), | ||||||||||||
| 36 | DELETE_CHILDREN => (1 << 0), | ||||||||||||
| 37 | DELETE_METADATA_ONLY => (1 << 1), | ||||||||||||
| 38 | DELETE_CHILDREN_ONLY => (1 << 2), | ||||||||||||
| 39 | 1 | }; | |||||||||||
| 40 | |||||||||||||
| 41 | |||||||||||||
| 42 | 0 | ▶ | field $_rpc_id :param :reader; | ||||||||||
|
Subroutine
rpc_id: not called CC=1 SCAR=2.6
Pod
undocumented
| |||||||||||||
| 43 | 0 | ▶ | field $_client :param :reader; | ||||||||||
|
Subroutine
client: not called CC=1 SCAR=2.6
Pod
undocumented
| |||||||||||||
| 44 | |||||||||||||
| 45 | 0 | ▶ | method domain() { | ||||||||||
|
Subroutine
domain: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 46 | 0 | return $_client->_domain_instance( $_rpc_id->{dom} ); | |||||||||||
| 47 | 1 | } | |||||||||||
| 48 | |||||||||||||
| 49 | 0 | ▶ | method name() { | ||||||||||
|
Subroutine
name: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 50 | 0 | return $_rpc_id->{name}; | |||||||||||
| 51 | 1 | } | |||||||||||
| 52 | |||||||||||||
| 53 | |||||||||||||
| 54 | 0 | ▶ | method delete($flags = 0) { | ||||||||||
|
Subroutine
delete: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 55 | 0 | ▶ | return $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 56 | $remote->PROC_DOMAIN_CHECKPOINT_DELETE, | ||||||||||||
| 57 | { checkpoint => $_rpc_id, flags => $flags // 0 }, empty => 1 ); | ||||||||||||
| 58 | 1 | } | |||||||||||
| 59 | |||||||||||||
| 60 | 0 | ▶ | async method get_parent($flags = 0) { | ||||||||||
|
Subroutine
get_parent: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 61 | 0 | ▶ | return await $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 62 | $remote->PROC_DOMAIN_CHECKPOINT_GET_PARENT, | ||||||||||||
| 63 | { checkpoint => $_rpc_id, flags => $flags // 0 }, unwrap => 'parent' ); | ||||||||||||
| 64 | 1 | } | |||||||||||
| 65 | |||||||||||||
| 66 | 0 | ▶ | async method get_xml_desc($flags = 0) { | ||||||||||
|
Subroutine
get_xml_desc: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 67 | 0 | ▶ | return await $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 68 | $remote->PROC_DOMAIN_CHECKPOINT_GET_XML_DESC, | ||||||||||||
| 69 | { checkpoint => $_rpc_id, flags => $flags // 0 }, unwrap => 'xml' ); | ||||||||||||
| 70 | 1 | } | |||||||||||
| 71 | |||||||||||||
| 72 | 0 | ▶ | async method list_all_children($flags = 0) { | ||||||||||
|
Subroutine
list_all_children: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 73 | 0 | ▶ | return await $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 74 | $remote->PROC_DOMAIN_CHECKPOINT_LIST_ALL_CHILDREN, | ||||||||||||
| 75 | { checkpoint => $_rpc_id, need_results => $remote->DOMAIN_SNAPSHOT_LIST_MAX, flags => $flags // 0 }, unwrap => 'checkpoints' ); | ||||||||||||
| 76 | 1 | } | |||||||||||
| 77 | |||||||||||||
| 78 | |||||||||||||
| 79 | |||||||||||||
| 80 | 1 | 1; | |||||||||||
| 81 | |||||||||||||
| 82 | |||||||||||||
| 83 | __END__ | ||||||||||||