Revert "In get_unicode_or_ascii_string(), check if the length is odd/even, not the...
[wireshark-wip.git] / plugins / unistim / packet-unistim.h
blob0c873961bc1a6dd660f3b4a3b0e48071b8d89878
1 /* packet-unistim.h
2 * header field declarations, value_string definitions, true_false_string
3 * definitions and function prototypes for main dissectors
4 * Copyright 2007 Don Newton <dnewton@cypresscom.net>
6 * $Id$
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 #ifndef PACKET_UNISTIM_H
28 #define PACKET_UNISTIM_H
30 typedef struct _unistim_info_t
32 guint8 rudp_type; /* NAK, ACK, Payload */
33 guint8 payload_type; /* unistim payload type (aggregate, non-aggregate, encapsulated) */
34 guint32 sequence; /* rudp sequence number */
35 guint32 termid; /* termid if available */
36 address it_ip; /* IP addr of it, determined by who is sending termids */
37 guint32 it_port; /* port of it (phone) */
38 address ni_ip; /* IP addr of ni (server) as determined by who's sending termids */
39 gint key_val; /* actual key pressed (-1 if not used) */
40 gint key_state; /* Key state 1=down 0=up */
41 gint hook_state; /* Hook state 1=offhook 0=onhook */
42 gint stream_connect; /* Audio stream connect 1=connect 0=disconnect */
43 gint trans_connect; /* Transducer connect? 1=connect 0=disconnect */
44 gint set_termid; /* Set the termid 1=set termid */
45 guint8 *string_data; /* Any time a string is written to the display, this has the string */
46 gint call_state; /* Not used? */
47 guchar *key_buffer; /* Used in voip-calls.c tap, holds call keys pressed */
48 } unistim_info_t;
50 #endif