libifconfig icon indicating copy to clipboard operation
libifconfig copied to clipboard

Subnamespace libifconfig

Open asomers opened this issue 8 years ago • 1 comments

sbin/ifconfig is organized into a base/mixin model. Some basic functionality like setting an interface description is contained in ifconfig.c, but most functionality is contained in mixin files for each feature domain. Cramming all of ifconfig's features into a single file would make for an unmanageably large file, so I suggest that libifconfig organize itself the same way. Doing so will also make the conversion of ifconfig easier. Except for a few core functions, I suggest that most of libifconfig's public functions be named ifconfig_<DOMAIN>_<GET|SET>_<THING>, for example ifconfig_group_get_groups.

asomers avatar May 01 '17 15:05 asomers

This idea makes a lot of sense, and I'll give it further thought once IRL cools down a bit & I get my dev environment back up and running. :)

Savagedlight avatar May 04 '17 19:05 Savagedlight