Re: [Dar-libdar_api] entree_stats access
For full, incremental, compressed and encrypted backups or archives
Brought to you by:
edrusb
|
From: Denis C. <dar...@fr...> - 2007-04-05 18:59:22
|
This is now in CVS branch_2_3_x.
Regards,
Denis.
Denis Corbin wrote:
> Johnathan Burchill wrote:
>
>>Hi Denis,
>
>
> Hello Johnathan!
>
> Happy to hear about you again. This is my turn this next few month to be
> out of time, but the patch you propose is OK.
>
> However, I think it would better to have it available from 2.3.x branch,
> as it may take some time for the 2.4.x (current CVS trunk) to mature and
> become a release.
>
> Current libdar is 4.1.0 it could become 4.2.0 with the addition of this
> small patch (plus other potential bug fixes) for you can get the
> entree_stats you need. Having a new release (2.3.4 is the next one) from
> branch_2_3_x does not imply a lot of effort (and testing), thus I can
> afford it currently.
>
> New version of kdar relying on this new little enhancement would just
> have to test that they are linked with libdar version 4.x.y where x >= 2.
>
> Regards,
> Denis.
>
>
>>It's been a long time, but I've finally put some spare time into
>>adapting KDar to KDE4 and libdar-4.0.
>>
>>I'd like to be able to get information about existing archives,
>>basically the info that is stored in the catalogue and which is
>>accessible by
>>
>>entree_stats catalogue::get_stats () const.
>>
>>Since you don't want the user to call the
>>
>>const catalogue & archive::get_catalogue () const
>>
>>function directly, could we have a passthrough for the entree_stats?
>>This patch for cvs HEAD is what I have in mind.
>>
>>Index: archive.hpp
>>===================================================================
>>RCS file: /cvsroot/dar/dar/src/libdar/archive.hpp,v
>>retrieving revision 1.35
>>diff -u -r1.35 archive.hpp
>>--- archive.hpp 14 Jan 2007 21:16:07 -0000 1.35
>>+++ archive.hpp 4 Apr 2007 13:24:46 -0000
>>@@ -494,6 +494,9 @@
>> /// not part of the API but must remain a public method
>>for been usable by the database class
>> const catalogue & get_catalogue() const { if(cat == NULL)
>>throw SRC_BUG; return *cat; };
>>
>>+ /// gives access to archive statistics. Obtained from the
>>archive's catalogue.
>>+ const entree_stats get_stats() const { if(cat == NULL) throw
>>SRC_BUG; return cat->get_stats(); };
>>+
>> private:
>> enum operation { oper_create, oper_isolate, oper_merge };
>>
>>
>>
>>Cheers,
>>JB
>>
>>-------------------------------------------------------------------------
>>Take Surveys. Earn Cash. Influence the Future of IT
>>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>>opinions on IT & business topics through brief surveys-and earn cash
>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>_______________________________________________
>>Dar-libdar_api mailing list
>>Dar...@li...
>>https://lists.sourceforge.net/lists/listinfo/dar-libdar_api
>>
>>
>>
>>
>>
>>------------------------------------------------------------------------
>>
>>-------------------------------------------------------------------------
>>Take Surveys. Earn Cash. Influence the Future of IT
>>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>>opinions on IT & business topics through brief surveys-and earn cash
>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Dar-libdar_api mailing list
>>Dar...@li...
>>https://lists.sourceforge.net/lists/listinfo/dar-libdar_api
|