aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2021-12-30 11:24:52 +0000
committerdakkar <dakkar@thenautilus.net>2021-12-30 11:24:52 +0000
commitbd23f27f363f7c30d7db57010810b87f97891a5f (patch)
treee240ebc94f55b4b6167e3935d0484fe996b72a54
parentplay from media list (diff)
downloadmedia-control-bd23f27f363f7c30d7db57010810b87f97891a5f.tar.gz
media-control-bd23f27f363f7c30d7db57010810b87f97891a5f.tar.bz2
media-control-bd23f27f363f7c30d7db57010810b87f97891a5f.zip
mark all required parameters as such
-rw-r--r--lib/Lirc/Client.rakumod4
-rw-r--r--lib/Vlc/Client.rakumod2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Lirc/Client.rakumod b/lib/Lirc/Client.rakumod
index 0065335..f87528c 100644
--- a/lib/Lirc/Client.rakumod
+++ b/lib/Lirc/Client.rakumod
@@ -21,14 +21,14 @@ class Lirc::Client {
X::Init.new(rc => -$!fd).throw() if $!fd < 0;
}
- method !send-sync(Str :$remote, Str :$keysym) {
+ method !send-sync(Str :$remote!, Str :$keysym!) {
my $rc = lirc_send_one($!fd, $remote, $keysym);
X::Send.new().throw() if $rc != 0;
}
# copied from OO::Actors
has Lock::Async $!orderer .= new;
- method send(Str :$remote, Str :$keysym) {
+ method send(Str :$remote!, Str :$keysym!) {
$!orderer.lock.then({
LEAVE $!orderer.unlock;
self!send-sync(:$remote, :$keysym);
diff --git a/lib/Vlc/Client.rakumod b/lib/Vlc/Client.rakumod
index 5b19c53..8951c60 100644
--- a/lib/Vlc/Client.rakumod
+++ b/lib/Vlc/Client.rakumod
@@ -39,7 +39,7 @@ class Vlc::Client {
return self!call-vlc('status.xml', :$command, |%args);
}
- method play-file(Str:D :$path, Str:D :$name) {
+ method play-file(Str:D :$path!, Str:D :$name!) {
return self.command(
'in_play',
input => self.mrl-root.child($path).child($name),