summaryrefslogtreecommitdiff
path: root/src/shared/cap-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/cap-list.c')
-rw-r--r--src/shared/cap-list.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/cap-list.c b/src/shared/cap-list.c
index 56d1488f48..8033e8c7b2 100644
--- a/src/shared/cap-list.c
+++ b/src/shared/cap-list.c
@@ -60,3 +60,7 @@ int capability_from_name(const char *name) {
return sc->id;
}
+
+int capability_list_length(void) {
+ return (int) ELEMENTSOF(capability_names);
+}