diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-11-13 18:13:11 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-11-18 14:03:50 +0100 |
commit | c68ba7d093e1fcf01fceb341438fc5dc95f93ac5 (patch) | |
tree | c823dff2a455da9635a4c669f0a7ea50fd91153a /sysdep/unix/unix.h | |
parent | d0b4597842ba1f65e5280529fca243ce5b5043fa (diff) |
Unix: Refactor tracked files
We need access to resource in order to free it.
Diffstat (limited to 'sysdep/unix/unix.h')
-rw-r--r-- | sysdep/unix/unix.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdep/unix/unix.h b/sysdep/unix/unix.h index cb12fad8..64b146ee 100644 --- a/sysdep/unix/unix.h +++ b/sysdep/unix/unix.h @@ -14,6 +14,7 @@ struct pool; struct iface; struct birdsock; +struct rfile; /* main.c */ @@ -102,7 +103,9 @@ void io_init(void); void io_loop(void); void io_log_dump(void); int sk_open_unix(struct birdsock *s, char *name); -void *tracked_fopen(struct pool *, char *name, char *mode); +struct rfile *rf_open(struct pool *, char *name, char *mode); +void *rf_file(struct rfile *f); +int rf_fileno(struct rfile *f); void test_old_bird(char *path); /* krt.c bits */ |