[Toybox] Making new library or adding functions to lib.c?

Gaurang Shastri gmshastri at gmail.com
Mon Apr 8 23:28:43 PDT 2013


Dear Kyungwan Han,

I think it would be better is we are creating any re-usable functions, it
should be kept in lib.c.

And if you are creating functions, which are useful and re-usable for
creating network related any binaries, then we can go ahead with
separate "network-functions.c" under "lib" directory.

This will make life easy :)

Just adding my 2 cents :)

Regards,
Gaurang Shastri

On Tue, Apr 9, 2013 at 1:01 AM, Kyungwan Han <asura321 at gmail.com> wrote:

> Hello,
>
>
> when I make new commands, sometimes I do not add functions to lib.c but
> make new library,
>
> because some functions can be categorized according to usage such as
> network or file system,
>
> and it makes maintenance easier.
>
> In my case, I made lib/inetutil.c library for ping, ping6, netstat,
> ifconfig and so on.
> (Now only ifconfig is contributed, but I'm ready to contribute other
> network features.)
>
> But making new library is likely to have an impact on toybox infra or
> structure.
>
> so I'd like to know which is better making new library or adding functions
> to lib.c?
>
>
> Thanks.
>
> Kyungwan Han.
>
>
>
>
> _______________________________________________
> Toybox mailing list
> Toybox at lists.landley.net
> http://lists.landley.net/listinfo.cgi/toybox-landley.net
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20130409/73ab3d9a/attachment-0003.htm>


More information about the Toybox mailing list