[Toybox] Making new library or adding functions to lib.c?
Kyungwan Han
asura321 at gmail.com
Mon Apr 8 12:31:58 PDT 2013
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20130409/a72a4b27/attachment-0002.htm>
More information about the Toybox
mailing list