Include packet-dcerpc-witness.h, so it's in the source tarball.
[metze/wireshark/wip.git] / epan / tpg.c
1 /* tpg.c
2  * helper functions for TPG
3  *
4  *  (c) 2005, Luis E. Garcia Ontanon <luis@ontanon.org>
5  *
6  * Wireshark - Network traffic analyzer
7  * By Gerald Combs <gerald@wireshark.org>
8  * Copyright 1998 Gerald Combs
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23  */
24
25
26 #include "config.h"
27
28 #include "tpg.h"
29 #include <epan/wmem/wmem.h>
30 #include <epan/packet.h>
31
32 extern guint32 tpg_ipv4(tvbparse_elem_t* e _U_) {
33     /* XXX TO DO */
34     return 0;
35 }
36
37 extern guint8* tpg_ipv6(tvbparse_elem_t* e _U_) {
38     /* XXX TO DO */
39     return NULL;
40 }
41
42 extern tpg_parser_data_t* tpg_start(proto_tree* root_tree,
43                                     tvbuff_t* tvb,
44                                     int offset,
45                                     int len,
46                                     tvbparse_wanted_t* ignore,
47                                     void* private_data) {
48     tpg_parser_data_t* tpg = wmem_new(wmem_packet_scope(), tpg_parser_data_t);
49     tpg->private_data = private_data;
50     tpg->tt = tvbparse_init(tvb,offset,len,tpg,ignore);
51
52     tpg->stack = wmem_stack_new(wmem_packet_scope());
53     wmem_stack_push(tpg->stack, root_tree);
54
55     return tpg;
56 }
57
58 /*
59  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
60  *
61  * Local variables:
62  * c-basic-offset: 4
63  * tab-width: 8
64  * indent-tabs-mode: nil
65  * End:
66  *
67  * vi: set shiftwidth=4 tabstop=8 expandtab:
68  * :indentSize=4:tabSize=8:noTabs=true:
69  */