Le lundi 18 juin 2007, vous avez écrit :
[...]
> 
> Device API: http://wiki.zmanda.com/index.php/Device_API
> 

I've just had a look at this API. Why don't you use an API ala Linux VFS, ie, 
you insert your "methods" and data into a struct and then can do:

gboolean mydev->start_file(Device * /* must be mydev, that's the limit */, 
const dumpfile_t *);

instead of:

gboolean device_start_file(Device *, const dumpfile_t *);

?

I've used this technique quite a few times and found it to be very practical.

-- 
Francis Galiegue, [EMAIL PROTECTED]
12bis rue de la Pierre Levée, 75011 PARIS
+33143381980, +33683877875

Reply via email to