Update use of deprecated brotli decoder APIs
[io-compress-brotli.git] / lib / IO / Uncompress / Brotli.pm
index 77e8b69293bc11b6a5f269fa5fa49e9206a02d54..2f37d8fb758f37f1d2202b60f2f610d30df9e6d5 100644 (file)
@@ -15,18 +15,18 @@ XSLoader::load('IO::Compress::Brotli', $VERSION);
 
 sub create {
        my ($class) = @_;
-       my $state = BrotliCreateState();
+       my $state = BrotliDecoderCreateInstance();
        bless \$state, $class
 }
 
 sub DESTROY {
        my ($self) = @_;
-       BrotliDestroyState($$self)
+       BrotliDecoderDestroyInstance($$self)
 }
 
 sub decompress {
        my ($self, $data) = @_;
-       BrotliDecompressStream($$self, $data)
+       BrotliDecoderDecompressStream($$self, $data)
 }
 
 # Untested, probably not working
This page took 0.009401 seconds and 4 git commands to generate.