diff options
Diffstat (limited to 'src/ui/buffer.c')
-rw-r--r-- | src/ui/buffer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/buffer.c b/src/ui/buffer.c index 0203c35c..553dc325 100644 --- a/src/ui/buffer.c +++ b/src/ui/buffer.c @@ -153,6 +153,14 @@ buffer_remove_entry_by_id(ProfBuff buffer, const char* const id) } } +void +buffer_remove_entry(ProfBuff buffer, int entry) +{ + GSList* node = g_slist_nth(buffer->entries, entry); + _free_entry(node->data); + buffer->entries = g_slist_delete_link(buffer->entries, node); +} + gboolean buffer_mark_received(ProfBuff buffer, const char* const id) { |