From a52d8c455caafff5bf4ae6f0b15219d3f0d38119 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 13 Apr 2019 12:11:26 +0200 Subject: Make clock unique to narrative window, and fix cleanup logic --- src/pr_clock.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/pr_clock.h') diff --git a/src/pr_clock.h b/src/pr_clock.h index 97d2d0d..3b971a9 100644 --- a/src/pr_clock.h +++ b/src/pr_clock.h @@ -1,7 +1,7 @@ /* * pr_clock.h * - * Copyright © 2013-2018 Thomas White + * Copyright © 2013-2019 Thomas White * * This file is part of Colloquium. * @@ -29,9 +29,11 @@ typedef struct pr_clock PRClock; -extern PRClock *pr_clock_new(void); +extern PRClock *pr_clock_new(PRClock **delete_ptr); extern void pr_clock_set_pos(PRClock *n, int pos, int end); +extern void pr_clock_destroy(PRClock *n); + #endif /* CLOCK_H */ -- cgit v1.2.3