Changeset 1644
- Timestamp:
- Aug 27, 2004, 1:17:54 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psList.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psList.h
r1580 r1644 42 42 ; 43 43 44 /** Destructor */45 void psListFree(psList *list, ///< list to destroy46 void (*elemFree)(void *)) ///< destructor for data on list47 ;48 49 44 /**** List maintainence functions ****/ 50 45 51 46 /** Add to list */ 52 47 bool *psListAdd(psList *list, ///< list to add to (may be NULL) 53 void *data, ///< data item to add54 int where) ///< index, PS_LIST_HEAD, or PS_LIST_TAIL48 int location, ///< index, PS_LIST_HEAD, or PS_LIST_TAIL 49 void *data) ///< data item to add 55 50 ; 56 51 57 52 /** Remove from a list */ 58 53 bool *psListRemove(psList *list, ///< list to remove element from 59 void *data, ///< data item to remove60 int which) ///< index of item, or PS_LIST_UNKNOWN, PS_LIST_NEXT, PS_LIST_PREV54 int location, ///< index of item, or PS_LIST_UNKNOWN, PS_LIST_NEXT, PS_LIST_PREV 55 void *data) ///< data item to remove 61 56 ; 62 57 63 58 /** Retrieve from a list */ 64 59 void *psListGet(const psList *list, ///< list to retrieve element from 65 int which) ///< index of item, or PS_LIST_NEXT, PS_LIST_PREV, PS_LIST_UNKNOWN60 int location) ///< index of item, or PS_LIST_NEXT, PS_LIST_PREV, PS_LIST_UNKNOWN 66 61 ; 67 62 … … 81 76 /** Set the iterator */ 82 77 void psListSetIterator(psList *list, ///< list to retrieve element from 83 int where, ///< index, PS_LIST_HEAD, or PS_LIST_TAIL84 int which) ///< the desired iterator78 int iterator, ///< the desired iterator 79 int location) ///< index, PS_LIST_HEAD, or PS_LIST_TAIL 85 80 ; 86 81 87 82 /** Get next element relative to iter */ 88 83 void *psListGetNext(psList *list, ///< list to retrieve element from 89 int which)///< the desired iterator84 int iterator) ///< the desired iterator 90 85 ; 91 86 92 87 /** Get prev element relative to iter */ 93 88 void *psListGetPrevious(psList *list, ///< list to retrieve element from 94 int which) ///< the desired iterator89 int iterator) ///< the desired iterator 95 90 ; 96 91
Note:
See TracChangeset
for help on using the changeset viewer.
