[parted-devel] Utility functions

Otavio Salvador otavio at debian.org
Thu Nov 23 19:48:50 CET 2006


leslie.polzer at gmx.net writes:

> Hello,
>
>   most of you are by now already aware that Parted 2.0 should ship with
> a new header/impl pair util.h/util.c.  Those will consist of stuff from
> parted.c that is either redundant there or obviously useful to other
> programs using libparted.
>
>   I'd like to get this started very soon, and there's a central problem
> to it:
>
>   How shall requests to the users be handled.  Real code example:
>
>   do_mkfs and do_mkpartfs share one hell of a lot of code, and that's
> just because they mainly consist of "ask user"/"check and do" pairs.
>
>   I guess we will need a separate API that libparted-using programs will
> need to register their request handlers with.  Am I right or does
> anyone of you have a smarter idea?

So your idea is to implement something like getopt?

-- 
        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 gives you Windows ... Linux gives
 you the whole house."



More information about the parted-devel mailing list