Abuse epan_t more: add callback to get interface name.
[metze/wireshark/wip.git] / epan / epan-int.h
1 /* epan-int.h
2  *
3  * $Id$
4  *
5  * Wireshark Protocol Analyzer Library
6  *
7  * Copyright (c) 2001 by Gerald Combs <gerald@wireshark.org>
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
23
24 #ifndef __EPAN_INT_H__
25 #define __EPAN_INT_H__
26
27 #include <wsutil/nstime.h>
28
29 struct epan_session {
30         void *data;
31
32         const nstime_t *(*get_frame_ts)(void *data, guint32 frame_num);
33         const char *(*get_interface_name)(void *data, guint32 interface_id);
34 };
35
36 #endif