Re: entree_stats access

Denis Corbin <[email protected]> Thu, 05 Apr 2007 20:59:09 +0200
Newsgroups gmane.comp.sysutils.backup.dar.libdar
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--===============0312562777==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="------------enig87ABA6FF052643B8DA837793"

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig87ABA6FF052643B8DA837793
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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
>>[email protected]
>>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
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/dar-libdar_api

--------------enig87ABA6FF052643B8DA837793
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGFUcGpC5CI8gYGlIRAiuTAJ9hP72IGfXex3kbzHaXhizrPk/ElACfej/T
S9/VUnm5q3AW5XG5wkFDFq8=
=dY6/
-----END PGP SIGNATURE-----

--------------enig87ABA6FF052643B8DA837793--


--===============0312562777==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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
--===============0312562777==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Dar-libdar_api mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dar-libdar_api

--===============0312562777==--