From ec77a7037586864ece6505c448ab5c15bf8a57d9 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 10 May 2016 17:25:12 -0400 Subject: refactor how submodules are handled let them own their own memory, so that they can free themselves once they exit the loop. also split out the parts of the terminal that we only want to initialize once, even if we open multiple terminal windows --- src/loop.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/loop.h') diff --git a/src/loop.h b/src/loop.h index 6151033..a825fc5 100644 --- a/src/loop.h +++ b/src/loop.h @@ -7,13 +7,13 @@ struct runes_loop { uv_loop_t *loop; }; -void runes_loop_init(RunesLoop *loop); +RunesLoop *runes_loop_new(); void runes_loop_run(RunesLoop *loop); void runes_loop_start_work(RunesLoop *loop, void *t, void (*work_cb)(void*), int (*after_work_cb)(void*)); void runes_loop_timer_set(RunesLoop *loop, int timeout, int repeat, void *t, void (*cb)(void*)); -void runes_loop_cleanup(RunesLoop *loop); +void runes_loop_delete(RunesLoop *loop); #endif -- cgit v1.2.3-54-g00ecf