X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=perl%2FAmanda%2FXferServer.swg;fp=perl%2FAmanda%2FXferServer.swg;h=4f25a21926ff54440569c77409933601f70f68af;hb=949b8910a5e23c4285d0b1aedacfc82a14dc97a5;hp=becc5792d81b6b4381f556cb9be0483bc1d53f81;hpb=c6f0a88c567f8536c498f554285aed1f8150da18;p=debian%2Famanda diff --git a/perl/Amanda/XferServer.swg b/perl/Amanda/XferServer.swg index becc579..4f25a21 100644 --- a/perl/Amanda/XferServer.swg +++ b/perl/Amanda/XferServer.swg @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Zmanda, Inc. All Rights Reserved. + * Copyright (c) 2009-2012 Zmanda, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published @@ -47,6 +47,9 @@ XferElement *xfer_dest_device( XferElement * xfer_source_holding( const char *filename); +guint64 xfer_source_holding_get_bytes_read( + XferElement *self); + %newobject xfer_dest_taper_splitter; XferElement *xfer_dest_taper_splitter( Device *first_device, @@ -96,6 +99,10 @@ void xfer_source_recovery_use_device( XferElement *self, Device *device); +guint64 xfer_source_recovery_get_bytes_read( + XferElement *self); + + /* ---- */ PACKAGE(Amanda::Xfer::Source::Device) @@ -113,6 +120,7 @@ DECLARE_CONSTRUCTOR(Amanda::XferServer::xfer_dest_device) PACKAGE(Amanda::Xfer::Source::Holding) XFER_ELEMENT_SUBCLASS() DECLARE_CONSTRUCTOR(Amanda::XferServer::xfer_source_holding) +DECLARE_METHOD(get_bytes_read, Amanda::XferServer::xfer_source_holding_get_bytes_read) /* ---- */ @@ -148,3 +156,5 @@ XFER_ELEMENT_SUBCLASS() DECLARE_CONSTRUCTOR(Amanda::XferServer::xfer_source_recovery) DECLARE_METHOD(start_part, Amanda::XferServer::xfer_source_recovery_start_part) DECLARE_METHOD(use_device, Amanda::XferServer::xfer_source_recovery_use_device) +DECLARE_METHOD(get_bytes_read, Amanda::XferServer::xfer_source_recovery_get_bytes_read) +