Create a header file for every packet-*.c file. Prune the packet.h file.
[obnox/wireshark/wip.git] / packet-yhoo.h
1 /* packet-yhoo.h
2  * Definitions for packet disassembly structures and routines
3  *
4  * $Id: packet-yhoo.h,v 1.5 2000/02/15 21:03:32 gram Exp $
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@zing.org>
8  * Copyright 1998 Gerald Combs
9  * Joerg Mayer <jmayer@telemation.de>
10  *
11  * 
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.
16  * 
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.
21  * 
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.
25  */
26
27 /* This is from yahoolib.h from gtkyahoo */
28
29 #ifndef YAHOO_LIB_H
30 #define YAHOO_LIB_H
31
32 void dissect_yhoo(const u_char *, int, frame_data *, proto_tree *);
33
34 /* Service constants */
35 #define YAHOO_SERVICE_LOGON             1
36 #define YAHOO_SERVICE_LOGOFF            2
37 #define YAHOO_SERVICE_ISAWAY            3
38 #define YAHOO_SERVICE_ISBACK            4
39 #define YAHOO_SERVICE_IDLE              5
40 #define YAHOO_SERVICE_MESSAGE           6
41 #define YAHOO_SERVICE_IDACT             7
42 #define YAHOO_SERVICE_IDDEACT           8
43 #define YAHOO_SERVICE_MAILSTAT  9
44 #define YAHOO_SERVICE_USERSTAT  10
45 #define YAHOO_SERVICE_NEWMAIL           11
46 #define YAHOO_SERVICE_CHATINVITE        12
47 #define YAHOO_SERVICE_CALENDAR  13
48 #define YAHOO_SERVICE_NEWPERSONALMAIL           14
49 #define YAHOO_SERVICE_NEWCONTACT        15
50 #define YAHOO_SERVICE_ADDIDENT  16
51 #define YAHOO_SERVICE_ADDIGNORE 17
52 #define YAHOO_SERVICE_PING              18
53 #define YAHOO_SERVICE_GROUPRENAME       19
54 #define YAHOO_SERVICE_SYSMESSAGE        20
55 #define YAHOO_SERVICE_PASSTHROUGH2      22
56 #define YAHOO_SERVICE_CONFINVITE 24
57 #define YAHOO_SERVICE_CONFLOGON 25
58 #define YAHOO_SERVICE_CONFDECLINE 26
59 #define YAHOO_SERVICE_CONFLOGOFF                27
60 #define YAHOO_SERVICE_CONFADDINVITE 28
61 #define YAHOO_SERVICE_CONFMSG 29
62 #define YAHOO_SERVICE_CHATLOGON 30
63 #define YAHOO_SERVICE_CHATLOGOFF        31
64 #define YAHOO_SERVICE_CHATMSG 32
65 #define YAHOO_SERVICE_FILETRANSFER 70
66
67 /* Message flags */
68 #define YAHOO_MSGTYPE_NONE 0
69 #define YAHOO_MSGTYPE_NORMAL 1
70 #define YAHOO_MSGTYPE_BOUNCE 2
71 #define YAHOO_MSGTYPE_STATUS 4
72 #define YAHOO_MSGTYPE_OFFLINE 1515563606        /* yuck! */
73
74 struct yahoo_rawpacket
75 {
76         char version[8];                        /* 7 chars and trailing null */
77         unsigned char len[4];           /* length - little endian */
78         unsigned char service[4];       /* service - little endian */
79         unsigned char connection_id[4];         /* connection number - little endian */
80         unsigned char magic_id[4];      /* magic number used for http session */
81         unsigned char unknown1[4];
82         unsigned char msgtype[4];
83         char nick1[36];
84         char nick2[36];
85         char content[1];                        /* was zero, had problems with aix xlc */
86 };
87
88 #endif