MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / quicklistBookmarkFind

Function quicklistBookmarkFind

src/quicklist.c:1475–1479  ·  view source on GitHub ↗

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). */

Source from the content-addressed store, hash-verified

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). */
1475quicklistNode *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.

Callers 2

scanLaterListFunction · 0.85
quicklistTestFunction · 0.85

Calls 1

Tested by

no test coverage detected