[parted-devel] History with undo redo

Otavio Salvador otavio at debian.org
Tue Jul 3 16:46:59 UTC 2007


"Matt Davis" <mattdavis9 at gmail.com> writes:

>> On 6/29/07, Otavio Salvador <otavio at debian.org> wrote:
> [-- Snip --]
>> disk.h, define it in disk.c (which makes a call to history.{c,h}).
>> Further, placing history as a library routine would make this easier.
> [-- Snip --]
>
> As suggested, I rolled history into libparted instead of just a set of
> routines solely for parted.  I like the idea, my question regards
> output.  I feel very unsettled about putting any printf/output calls
> in library routines.

Yes, output shouldn't be done on the library.

> I could make all of the routines that might need to inform the user
> via output return a special structure that each implementing
> application can handle (and display the information at their
> discretion)  Thoughts?  Should I check in what I have now?  I do
> prefer to checkin early/often

Or maybe just returns and exeptions that could be handled by the
application?

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio at debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."



More information about the parted-devel mailing list