Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_listbase.h
| Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
| /* Find forwards. */ | /* Find forwards. */ | ||||
| /** | /** | ||||
| * Returns the nth element of \a listbase, numbering from 0. | * Returns the nth element of \a listbase, numbering from 0. | ||||
| */ | */ | ||||
| void *BLI_findlink(const struct ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT | void *BLI_findlink(const struct ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT | ||||
| ATTR_NONNULL(1); | ATTR_NONNULL(1); | ||||
| /** | |||||
| * Returns the nth element after \a link, numbering from 0. | |||||
| */ | |||||
| void *BLI_findlinkfrom(struct Link *start, int number) ATTR_WARN_UNUSED_RESULT; | |||||
| /** | /** | ||||
| * Finds the first element of \a listbase which contains the null-terminated | * Finds the first element of \a listbase which contains the null-terminated | ||||
| * string \a id at the specified offset, returning NULL if not found. | * string \a id at the specified offset, returning NULL if not found. | ||||
| */ | */ | ||||
| void *BLI_findstring(const struct ListBase *listbase, | void *BLI_findstring(const struct ListBase *listbase, | ||||
| const char *id, | const char *id, | ||||
| int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1); | int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1); | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 316 Lines • Show Last 20 Lines | |||||