diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-03-28 00:19:02 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-03-28 00:19:02 +0000 |
commit | 1c7cca1f7d057fed12608439be600dbdec5abaf9 (patch) | |
tree | 90a04c9ab245c6b9b41edef1b1924368de92d42e /ringbuffer.c | |
parent | 929e3c87c5eee548a6afda26d37247e0c0e40dec (diff) |
major capture engine rework: use two task model for EVERY capture mode
rework of the -b command line parameter (for Ethereal and Tethereal)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13949 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'ringbuffer.c')
-rw-r--r-- | ringbuffer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ringbuffer.c b/ringbuffer.c index 1a89e6d4bb..4cfc637a3c 100644 --- a/ringbuffer.c +++ b/ringbuffer.c @@ -232,6 +232,12 @@ ringbuf_init(const char *capfile_name, guint num_files) return rb_data.fd; } + +const gchar *ringbuf_current_filename(void) +{ + return rb_data.files[rb_data.curr_file_num % rb_data.num_files].name; +} + /* * Calls wtap_dump_fdopen() for the current ringbuffer file */ |