diff options
author | Jesse Luehrs <doy@tozt.net> | 2016-05-10 17:25:12 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2016-05-10 17:31:39 -0400 |
commit | ec77a7037586864ece6505c448ab5c15bf8a57d9 (patch) | |
tree | ad23ca8d2ded6ffc0a9d9c6c5320e457c37ece32 /src/pty-unix.h | |
parent | 9118ead5ae15548c8a5b96340f9a0a24b3104e32 (diff) | |
download | runes-ec77a7037586864ece6505c448ab5c15bf8a57d9.tar.gz runes-ec77a7037586864ece6505c448ab5c15bf8a57d9.zip |
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
Diffstat (limited to 'src/pty-unix.h')
-rw-r--r-- | src/pty-unix.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pty-unix.h b/src/pty-unix.h index ea131ca..364f9ad 100644 --- a/src/pty-unix.h +++ b/src/pty-unix.h @@ -13,13 +13,13 @@ struct runes_pty { int remaininglen; }; -void runes_pty_backend_init(RunesPtyBackend *pty); +RunesPtyBackend *runes_pty_backend_new(); void runes_pty_backend_spawn_subprocess(RunesTerm *t); void runes_pty_backend_init_loop(RunesTerm *t, RunesLoop *loop); void runes_pty_backend_set_window_size(RunesTerm *t, int row, int col, int xpixel, int ypixel); void runes_pty_backend_write(RunesTerm *t, char *buf, size_t len); void runes_pty_backend_request_close(RunesTerm *t); -void runes_pty_backend_cleanup(RunesPtyBackend *pty); +void runes_pty_backend_delete(RunesPtyBackend *pty); #endif |