Delete a named bookmark. * returns 0 if bookmark was not found, and 1 if deleted. * Note that the bookmark memory is not freed yet, and is kept for future use. */
| 1482 | * returns 0 if bookmark was not found, and 1 if deleted. |
| 1483 | * Note that the bookmark memory is not freed yet, and is kept for future use. */ |
| 1484 | int quicklistBookmarkDelete(quicklist *ql, const char *name) { |
| 1485 | quicklistBookmark *bm = _quicklistBookmarkFindByName(ql, name); |
| 1486 | if (!bm) |
| 1487 | return 0; |
| 1488 | _quicklistBookmarkDelete(ql, bm); |
| 1489 | return 1; |
| 1490 | } |
| 1491 | |
| 1492 | quicklistBookmark *_quicklistBookmarkFindByName(quicklist *ql, const char *name) { |
| 1493 | unsigned i; |
no test coverage detected