0b86f124873a7e01a92f2bfb731401c695353c28
[tpg/acess2.git] / Usermode / Applications / irc_src / message.h
1 /*
2  */
3 #ifndef _MESSAGE_H_
4 #define _MESSAGE_H_
5
6 enum eMessageTypes
7 {
8         MSG_TYPE_NULL,
9         MSG_TYPE_SERVER,        // Server message
10         
11         MSG_TYPE_NOTICE,        // NOTICE command
12         MSG_TYPE_JOIN,  // JOIN command
13         MSG_TYPE_PART,  // PART command
14         MSG_TYPE_QUIT,  // QUIT command
15         
16         MSG_TYPE_STANDARD,      // Standard line
17         MSG_TYPE_ACTION,        // /me
18         
19         MSG_TYPE_UNK
20 };
21
22 enum eMessageClass
23 {
24         MSG_CLASS_BARE, // source is unused, just gets timestamped
25         MSG_CLASS_CLIENT,       // source optional, prefixed by '-!-'
26         MSG_CLASS_WALL,         // [SOURCE] MSG         -- Server-provided message
27         MSG_CLASS_MESSAGE,      // <SOURCE> MSG
28         MSG_CLASS_ACTION,       // * SOURCE MSG
29 };
30
31 typedef struct sMessage tMessage;
32
33 //extern tMessage       *Message_AppendF(tServer *Server, int Type, const char *Src, const char *Dst, const char *Fmt, ...) __attribute__((format(__printf__,5,6)));
34 //extern tMessage       *Message_Append(tServer *Server, int Type, const char *Source, const char *Dest, const char *Message);
35
36 #endif
37

UCC git Repository :: git.ucc.asn.au