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 <[email protected]> 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 > [email protected] > http://lists.landley.net/listinfo.cgi/toybox-landley.net > >
_______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
