Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subnamespace libifconfig #47

Open
asomers opened this issue May 1, 2017 · 1 comment
Open

Subnamespace libifconfig #47

asomers opened this issue May 1, 2017 · 1 comment

Comments

@asomers
Copy link
Contributor

asomers commented May 1, 2017

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 added a commit to asomers/libifconfig that referenced this issue May 4, 2017
@Savagedlight
Copy link
Owner

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. :)

asomers added a commit to asomers/libifconfig that referenced this issue Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants