Fix some aclocal warnings during autogen.sh
[obnox/wireshark/wip.git] / packet-aim-chatnav.c
1 /* packet-aim.c
2  * Routines for AIM Instant Messenger (OSCAR) dissection
3  * Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
4  *
5  * $Id: packet-aim-chatnav.c,v 1.3 2004/03/24 06:36:32 ulfl Exp $
6  *
7  * Ethereal - Network traffic analyzer
8  * By Gerald Combs <gerald@ethereal.com>
9  * Copyright 1998 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24  */
25
26 #ifdef HAVE_CONFIG_H
27 # include "config.h"
28 #endif
29
30 #include <stdio.h>
31 #include <stdlib.h>
32 #include <string.h>
33 #include <ctype.h>
34
35 #include <glib.h>
36
37 #include <epan/packet.h>
38 #include <epan/strutil.h>
39
40 #include "packet-aim.h"
41
42 #define FAMILY_CHAT_NAV   0x000D
43
44 /* Family Chat Navigation */
45 #define FAMILY_CHATNAV_ERROR          0x0001
46 #define FAMILY_CHATNAV_LIMITS_REQ     0x0002
47 #define FAMILY_CHATNAV_EXCHANGE_REQ   0x0003
48 #define FAMILY_CHATNAV_ROOM_INFO_REQ  0x0004
49 #define FAMILY_CHATNAV_ROOMIF_EXT_REQ 0x0005
50 #define FAMILY_CHATNAV_MEMBERLIST_REQ 0x0006
51 #define FAMILY_CHATNAV_SEARCH_ROOM    0x0007
52 #define FAMILY_CHATNAV_CREATE_ROOM    0x0008
53 #define FAMILY_CHATNAV_INFO_REPLY     0x0009
54 #define FAMILY_CHATNAV_DEFAULT        0xffff
55
56 static const value_string aim_fnac_family_chatnav[] = {
57   { FAMILY_CHATNAV_ERROR, "Error" },
58   { FAMILY_CHATNAV_LIMITS_REQ, "Request Limits" },
59   { FAMILY_CHATNAV_EXCHANGE_REQ, "Request Exchange" },
60   { FAMILY_CHATNAV_ROOM_INFO_REQ, "Request Room Information" },
61   { FAMILY_CHATNAV_ROOMIF_EXT_REQ, "Request Extended Room Information" },
62   { FAMILY_CHATNAV_MEMBERLIST_REQ, "Request Member List" },
63   { FAMILY_CHATNAV_SEARCH_ROOM, "Search Room" },
64   { FAMILY_CHATNAV_CREATE_ROOM, "Create" },
65   { FAMILY_CHATNAV_INFO_REPLY, "Info" },
66   { FAMILY_CHATNAV_DEFAULT, "ChatNav Default" },
67   { 0, NULL }
68 };
69
70 /* Initialize the protocol and registered fields */
71 static int proto_aim_chatnav = -1;
72
73 int ett_aim_chatnav = -1;
74
75 /* Register the protocol with Ethereal */
76 void
77 proto_register_aim_chatnav(void)
78 {
79
80 /* Setup list of header fields */
81 /*FIXME
82   static hf_register_info hf[] = {
83   };*/
84
85 /* Setup protocol subtree array */
86   static gint *ett[] = {
87     &ett_aim_chatnav,
88   };
89 /* Register the protocol name and description */
90   proto_aim_chatnav = proto_register_protocol("AIM Chat Navigation", "AIM ChatNav", "aim_chatnav");
91
92 /* Required function calls to register the header fields and subtrees used */
93 /*FIXME
94   proto_register_field_array(proto_aim_chatnav, hf, array_length(hf));*/
95   proto_register_subtree_array(ett, array_length(ett));
96 }
97
98 void
99 proto_reg_handoff_aim_chatnav(void)
100 {
101   /*dissector_handle_t aim_handle;*/
102
103   /* FIXME: dissect
104    * aim_handle = new_create_dissector_handle(dissect_aim_chatnav, proto_aim_chatnav);
105    * dissector_add("aim.family", FAMILY_CHAT_NAV, aim_handle);
106    */
107   aim_init_family(FAMILY_CHAT_NAV, "Chat Navigation", aim_fnac_family_chatnav);
108 }