Re: problem compiling KDar with libdar CVS

Denis Corbin <[email protected]> Wed, 03 Nov 2004 21:08:04 +0100
Newsgroups gmane.comp.sysutils.backup.dar.libdar
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Denis Corbin wrote:
|[...]
| I proposes the following API :
|
| ~    void cancel_thread(pthread_t tid);
| ~    bool cancel_current(pthread_t & tid);
| ~    void cancel_clear();
|
| where cancel_thread() is used to cancel the given thread. Which will
| make libdar throw a Euser_abort exception, cleanly free memory and
| release any mutex.
|
| cancel_current() return true and the tid of the thread that will be
| canceled when execution will reach the next checkpoint, false if there
| is not pending cancelation.
|
| cancel_clear() abort cancelation process if the thread has not already
| terminated.
|
| Only one thread can be canceled at a time.
|
|
|[...]

Hello,

This is implemented and tested. CVS is up to date. If you have no
objections, The API is now frozen (version 3) for the release 2.2.0 that
will come in december I hope. The points that remains to do before the
pre-release phase are :
- - documentation (API, user guide, etc.)
- - password/key from file
- - password/key from keyboard out of command-line
- - some few other strong encryption algorithms
- - LZO compression

the two password/key features do not have any impact on the API (these
are command-line related feature). The LZO and the new cypher support
only add some more values in the "enum compression" and "enum
crypto_algo" enumeration types.

The pre-release target date is the beginning of december. Until that
time, it is still time to fix API problem you could meet, so please give
your feedback before pre-release phase.

For short about API, waiting for an up to date documentation, all calls
you need are in libdar.hpp and archive.hpp. The comments in the theses
header files should help you understand the changes brought from API 2.

Cheers,
Denis.

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

iD8DBQFBiTqjpC5CI8gYGlIRAsV2AJ9wlNk64pXl0w8lOxRcAH2bqIUYLgCfQW7O
JlONqEWXWWBxFeg7hyKUnj8=
=a07r
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click