]>
git.proxmox.com Git - proxmox-perl-rs.git/blob - Proxmox/Lib/Common.pm
1 package Proxmox
::Lib
::Common
;
5 Proxmox::Lib::Common - base module for rust bindings common between PVE and PMG
9 package Proxmox::RS::CalendarEvent;
11 use base 'Proxmox::Lib::Common';
13 BEGIN { __PACKAGE__->bootstrap(); }
19 This is the base modules for bindings which are provided by both PVE and PMG. This will ensure that
20 either Proxmox::Lib::PVE or Proxmox::Lib::PMG have been loaded (in that order) and then use
32 my $data = ($::{'proxmox-rs-library'} //= {});
33 my $base = $data->{-package};
37 eval { require Proxmox
::Lib
::PVE
and push @ISA, 'Proxmox::Lib::PVE'; };
38 eval { require Proxmox
::Lib
::PMG
and push @ISA, 'Proxmox::Lib::PMG'; } if $@;