summaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/lib/earray.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/lib/earray.h b/src/kernel/lib/earray.h
index b6d0a55..d3d7a9b 100644
--- a/src/kernel/lib/earray.h
+++ b/src/kernel/lib/earray.h
@@ -28,6 +28,8 @@ struct earray {
int add(T* ptr); // return element number or -1 if fail
T* at(int num); // returns 0 when nothing
void set(int num, T* ptr);
+
+ int count() { return elements; }
};