2 * Interface for IrDA application dissectors
3 * By Jan Kiszka <jan.kiszka@web.de>
4 * Copyright 2003 Jan Kiszka
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@unicom.net>
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28 #ifndef __IRDA_APPL_H__
29 #define __IRDA_APPL_H__
32 * Prototypes, defines, and typedefs needed for implementing IrDA application
34 * There should be no need to modify this part.
37 /* LM-IAS Attribute types */
43 /* Maximum number of handled list entries of an IAP result */
44 #define MAX_IAP_ENTRIES 32
53 typedef gboolean (*ias_value_dissector_t)(tvbuff_t* tvb, unsigned offset, packet_info* pinfo, proto_tree* tree,
54 unsigned list_index, guint8 attr_type);
56 typedef const struct ias_attr_dissector {
57 const char* attr_name;
58 ias_value_dissector_t value_dissector;
59 } ias_attr_dissector_t;
61 typedef const struct ias_class_dissector {
62 const char* class_name;
63 ias_attr_dissector_t* pattr_dissector;
64 } ias_class_dissector_t;
67 extern gboolean check_iap_octet_result(tvbuff_t* tvb, proto_tree* tree, unsigned offset,
68 const char* attr_name, guint8 attr_type);
69 extern guint8 check_iap_lsap_result(tvbuff_t* tvb, proto_tree* tree, unsigned offset,
70 const char* attr_name, guint8 attr_type);
72 extern void add_lmp_conversation(packet_info* pinfo, guint8 dlsap, gboolean ttp, dissector_t proto_dissector);
74 extern unsigned dissect_param_tuple(tvbuff_t* tvb, proto_tree* tree, unsigned offset);
78 * Modify the lines below to add new protocols.
81 /* IrCOMM/IrLPT protocol */
82 extern void proto_register_ircomm(void);
83 extern ias_attr_dissector_t ircomm_attr_dissector[];
84 extern ias_attr_dissector_t irlpt_attr_dissector[];
86 /* Serial Infrared (SIR) */
87 extern void proto_register_irsir(void);
94 /* IAS class dissectors */
95 #define CLASS_DISSECTORS \
96 { "Device", device_attr_dissector }, \
97 { "IrDA:IrCOMM", ircomm_attr_dissector }, \
98 { "IrLPT", irlpt_attr_dissector }, \
101 #endif /* __IRDA_APPL_H__ */