From a96de45e14a9779163091452496ac91b4c3079ea Mon Sep 17 00:00:00 2001 From: Ralf Ertzinger Date: Wed, 8 May 2013 19:58:00 +0200 Subject: [PATCH] videosite-dl: Convert to built in config functions --- videosite-dl.pl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/videosite-dl.pl b/videosite-dl.pl index 594b020..46c8b49 100755 --- a/videosite-dl.pl +++ b/videosite-dl.pl @@ -40,13 +40,8 @@ push(@INC, dirname(realpath($0))); load 'libvideosite'; unless(libvideosite::register_api({ - config_init => sub {}, - config_save => sub {}, - config_get => sub { return $config{join(".", @{$_[0]})} }, - config_set => sub { $config{join(".", @{$_[0]})} = $_[1] }, - config_has => sub { exists($config{join(".", @{$_[0]})}) }, - config_del => sub { delete($config{join(".", @{$_[0]})}) }, link_callback => \&link_callback, + _config_default => sub { return \%config }, _debug => sub { return $debug }, })) { die("Error registering API: $libvideosite::error"); -- 1.8.3.1