Find the quicklist node referenced by a named bookmark. * When the bookmarked node is deleted the bookmark is updated to the next node, * and if that's the last node, the bookmark is deleted (so find returns NULL). */
| 1473 | * When the bookmarked node is deleted the bookmark is updated to the next node, |
| 1474 | * and if that's the last node, the bookmark is deleted (so find returns NULL). */ |
| 1475 | quicklistNode *quicklistBookmarkFind(quicklist *ql, const char *name) { |
| 1476 | quicklistBookmark *bm = _quicklistBookmarkFindByName(ql, name); |
| 1477 | if (!bm) return NULL; |
| 1478 | return bm->node; |
| 1479 | } |
| 1480 | |
| 1481 | /* Delete a named bookmark. |
| 1482 | * returns 0 if bookmark was not found, and 1 if deleted. |
no test coverage detected