diff options
author | dakkar <dakkar@thenautilus.net> | 2021-12-30 11:24:52 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2021-12-30 11:24:52 +0000 |
commit | bd23f27f363f7c30d7db57010810b87f97891a5f (patch) | |
tree | e240ebc94f55b4b6167e3935d0484fe996b72a54 /lib | |
parent | play from media list (diff) | |
download | media-control-bd23f27f363f7c30d7db57010810b87f97891a5f.tar.gz media-control-bd23f27f363f7c30d7db57010810b87f97891a5f.tar.bz2 media-control-bd23f27f363f7c30d7db57010810b87f97891a5f.zip |
mark all required parameters as such
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Lirc/Client.rakumod | 4 | ||||
-rw-r--r-- | lib/Vlc/Client.rakumod | 2 |
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), |