diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:27 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:27 +0200 |
commit | 283707c5e5bc436b78ea23bf5500cb6b16a01148 (patch) | |
tree | b977131bbbb4c3bd8ade370aab2e4fc913440c04 /Vector.h | |
parent | bea9b4798717b6f4e31085506dfc179eeb8dc17c (diff) | |
download | debian_htop-283707c5e5bc436b78ea23bf5500cb6b16a01148.tar.gz debian_htop-283707c5e5bc436b78ea23bf5500cb6b16a01148.tar.bz2 debian_htop-283707c5e5bc436b78ea23bf5500cb6b16a01148.zip |
Imported Upstream version 0.9upstream/0.9
Diffstat (limited to 'Vector.h')
-rw-r--r-- | Vector.h | 22 |
1 files changed, 8 insertions, 14 deletions
@@ -4,7 +4,7 @@ #define HEADER_Vector /* htop -(C) 2004-2006 Hisham H. Muhammad +(C) 2004-2010 Hisham H. Muhammad Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ @@ -22,8 +22,6 @@ in the source distribution for its full text. #define DEFAULT_SIZE -1 #endif -typedef void(*Vector_procedure)(void*); - typedef struct Vector_ { Object **array; Object_Compare compare; @@ -49,19 +47,19 @@ void Vector_prune(Vector* this); void Vector_sort(Vector* this); -void Vector_insert(Vector* this, int index, void* data_); +void Vector_insert(Vector* this, int idx, void* data_); -Object* Vector_take(Vector* this, int index); +Object* Vector_take(Vector* this, int idx); -Object* Vector_remove(Vector* this, int index); +Object* Vector_remove(Vector* this, int idx); -void Vector_moveUp(Vector* this, int index); +void Vector_moveUp(Vector* this, int idx); -void Vector_moveDown(Vector* this, int index); +void Vector_moveDown(Vector* this, int idx); -void Vector_set(Vector* this, int index, void* data_); +void Vector_set(Vector* this, int idx, void* data_); -extern Object* Vector_get(Vector* this, int index); +extern Object* Vector_get(Vector* this, int idx); extern int Vector_size(Vector* this); @@ -73,8 +71,4 @@ void Vector_add(Vector* this, void* data_); extern int Vector_indexOf(Vector* this, void* search_, Object_Compare compare); -/* - -*/ - #endif |