mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
InfoScreen/ProcessList: do not access Vector internals
Use wrapper function to encapsulate the Vector structure
This commit is contained in:
4
Vector.h
4
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);
|
||||
|
Reference in New Issue
Block a user