summaryrefslogtreecommitdiffstats
path: root/Vector.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-03-12 16:46:55 +0100
committerChristian Göttsche <cgzones@googlemail.com>2021-03-12 16:46:55 +0100
commitd37d66bb3a089b9e66c6629a4855560984ac720d (patch)
tree1bc77669da335f53eff7d64687809c748a36c34c /Vector.h
parent3f99c2de245e950b8004fde023e45a0dd6389381 (diff)
InfoScreen/ProcessList: do not access Vector internals
Use wrapper function to encapsulate the Vector structure
Diffstat (limited to 'Vector.h')
-rw-r--r--Vector.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Vector.h b/Vector.h
index 875f361d..dab94693 100644
--- a/Vector.h
+++ b/Vector.h
@@ -68,6 +68,10 @@ static inline int Vector_size(const Vector* this) {
#endif /* NDEBUG */
+static inline const ObjectClass* Vector_type(const Vector* this) {
+ return this->type;
+}
+
void Vector_add(Vector* this, void* data_);
int Vector_indexOf(const Vector* this, const void* search_, Object_Compare compare);

© 2014-2024 Faster IT GmbH | imprint | privacy policy