MSWSP: add two more Property Sets
[wireshark-wip.git] / epan / dissectors / packet-smb-common.h
blobb49a647f611c7038be052e98c530fabb098b362d
1 /* packet-smb-common.h
2 * Routines for SMB packet dissection
3 * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
5 * $Id$
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * Copied from packet-pop.c
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 #ifndef __PACKET_SMB_COMMON_H__
29 #define __PACKET_SMB_COMMON_H__
31 /* **data is allocated with ephemeral scope and will be automatically freed
32 * when packet dissection completes.
33 * You do NOT need to g_free() that string.
35 int display_unicode_string(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_index, char **data);
37 int display_ms_string(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_index, char **data);
39 int dissect_ms_compressed_string(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_index,
40 char **data);
42 const gchar *get_unicode_or_ascii_string(tvbuff_t *tvb, int *offsetp,
43 gboolean useunicode, int *len, gboolean nopad, gboolean exactlen,
44 guint16 *bcp);
46 extern const value_string share_type_vals[];
48 #endif