-
Notifications
You must be signed in to change notification settings - Fork 1
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
Constants as Capability Enum #1
Comments
Agree. I can't remember why I switched to const new types, but it doesn't seem that it was necessary / or really worth it. Let me know what you think of this commit ae09955. Do you think I should move to camel case for the Capability Enum? |
Much better, but having a |
That's what the change did. It removed the Capability struct. There is a Capabilities struct which represents a set of Capabilities for a process etc if that's what you mean? Anyway this change is now in 0.2.0. |
Sorry, yes I meant about replacing the |
That struct exists to hold the libcap handle and ensure it is released properly etc. Originally I added it as I basically just wanted to wrap the libcap capi calls. But I'll look into how I could ditch it as it should provide a nicer interface. |
In terms of naming, the |
Capabilities are bit flags in the C API, would it make sense to actually use the bitflags crate? |
It would seem like having capabilities as part of a general 'Cabability' enum type - instead of having a large list of constants. Thoughts?
The text was updated successfully, but these errors were encountered: