chiark / gitweb /
shared/capability: go frugal on space for caps
[elogind.git] / src / shared / cap-list.c
index 56d1488f483df0c636c361c912af49c5b744db84..8033e8c7b2781d8a9a88e367581313bdbbc77595 100644 (file)
@@ -60,3 +60,7 @@ int capability_from_name(const char *name) {
 
         return sc->id;
 }
+
+int capability_list_length(void) {
+        return (int) ELEMENTSOF(capability_names);
+}