diff options
Diffstat (limited to 'src/bookmark.c')
-rw-r--r-- | src/bookmark.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/bookmark.c b/src/bookmark.c index fdb3992..0edac3e 100644 --- a/src/bookmark.c +++ b/src/bookmark.c @@ -192,6 +192,19 @@ char *bookmark_queue_pop(int *item_count) } return uri; } + +/** + * Removes all contents from the queue file. + */ +gboolean bookmark_queue_clear(void) +{ + FILE *f; + if ((f = fopen(vb.files[FILES_QUEUE], "w"))) { + fclose(f); + return true; + } + return false; +} #endif /* FEATURE_QUEUE */ static GList *load(const char *file) |